Sum of profiles not maven?

4

Scenery:

I have 10 clients, 3 of them use websphere, 10 use tomcat, 7 use jboss. no pom.xml

<profile>
    <id>cliente01</id>
    <dependencies>
        <!-- depencias para tomcat-->
    </dependencies>
</profile>
<profile>
    <id>cliente02</id>
    <dependencies>
        <!-- depencias para tomcat-->
    </dependencies>
</profile>  
<profile>
    <id>cliente03</id>
    <dependencies>
        <!-- depencias para tomcat-->
    </dependencies>
</profile>
<profile>
    <id>cliente04</id>
    <dependencies>
        <!-- depencias para jboss-->
    </dependencies>
</profile>
<profile>
    <id>cliente04</id>
    <dependencies>
        <!-- depencias para jboss-->
    </dependencies>
</profile>      

...

That way it works, but for all clients that use tomcat , the dependencies keep repeating themselves (the same for jboss and websphere).

Is there a more efficient way to do this?

I was expecting something like:

<profile>
    <id>jboss</id>
    <dependencies>
        <!-- depencias para jboss-->
    </dependencies>
</profile>
<profile>
    <id>tomcat</id>
    <dependencies>
        <!-- depencias para tomcat-->
    </dependencies>
</profile>  
<profile>
    <id>websphere</id>
    <dependencies>
        <!-- depencias para websphere-->
    </dependencies>
</profile>


<profile>
    <id>cliente01</id>
    <useProfile>jboss</useProfile>
</profile>


<profile>
    <id>cliente02</id>
    <useProfile>tomcat</useProfile>
</profile>      

...
    
asked by anonymous 07.01.2016 / 14:39

0 answers