maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MEAR-163) Weird result in multi-profile build
Date Thu, 14 Nov 2013 20:57:20 GMT

     [ https://jira.codehaus.org/browse/MEAR-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MEAR-163:
--------------------------------

    Description: 
I configured my pom to create 2 separate EAR-files (with 2 different classifiers) when a certain
profile is active and get 2 weird things:

1.) I get a third 'normal' EAR-File too. 
2.) I use <excluded>true</excluded> which has no effect, so at the end, I get
3 files with the same content and different names.


The config looks like:
{code:xml}
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-ear-plugin</artifactId>
   <executions>
      <execution>
         <id>web</id>
         <phase>package</phase>
         <goals>					
            <goal>ear</goal>
         </goals>
         <configuration>
            <version>5</version>
            <classifier>web-${zps.build.identifier}</classifier>
            <generateApplicationXml>true</generateApplicationXml>
            <applicationName>ZPSWEB</applicationName>								   
            <modules>									   
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-gwt</artifactId>
                  <contextRoot>/${zps.web.contextRoot}</contextRoot>
               </webModule>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-integration</artifactId>
                  <excluded>true</excluded>
               </webModule>
            </modules>
         </configuration>
      </execution>
      <execution>
         <id>srv</id>
         <phase>package</phase>
         <goals>
            <goal>ear</goal>
         </goals>
         <configuration>
            <version>5</version>
            <classifier>srv-${zps.build.identifier}</classifier>
            <generateApplicationXml>true</generateApplicationXml>
            <applicationName>ZPSSRV</applicationName>
            <modules>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-gwt</artifactId>
                  <excluded>true</excluded>
               </webModule>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-integration</artifactId>
                  <contextRoot>/${zps.srv.contextRoot}</contextRoot>
               </webModule>
            </modules>
         </configuration>
      </execution>
   </executions>
</plugin>
{code}
Regards,

Wolfgang


  was:
I configured my pom to create 2 separate EAR-files (with 2 different classifiers) when a certain
profile is active and get 2 weird things:

1.) I get a third 'normal' EAR-File too. 
2.) I use <excluded>true</excluded> which has no effect, so at the end, I get
3 files with the same content and different names.


The config looks like:

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-ear-plugin</artifactId>
   <executions>
      <execution>
         <id>web</id>
         <phase>package</phase>
         <goals>					
            <goal>ear</goal>
         </goals>
         <configuration>
            <version>5</version>
            <classifier>web-${zps.build.identifier}</classifier>
            <generateApplicationXml>true</generateApplicationXml>
            <applicationName>ZPSWEB</applicationName>								   
            <modules>									   
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-gwt</artifactId>
                  <contextRoot>/${zps.web.contextRoot}</contextRoot>
               </webModule>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-integration</artifactId>
                  <excluded>true</excluded>
               </webModule>
            </modules>
         </configuration>
      </execution>
      <execution>
         <id>srv</id>
         <phase>package</phase>
         <goals>
            <goal>ear</goal>
         </goals>
         <configuration>
            <version>5</version>
            <classifier>srv-${zps.build.identifier}</classifier>
            <generateApplicationXml>true</generateApplicationXml>
            <applicationName>ZPSSRV</applicationName>
            <modules>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-gwt</artifactId>
                  <excluded>true</excluded>
               </webModule>
               <webModule>
                  <groupId>at.gv.bmi</groupId>
                  <artifactId>zps-integration</artifactId>
                  <contextRoot>/${zps.srv.contextRoot}</contextRoot>
               </webModule>
            </modules>
         </configuration>
      </execution>
   </executions>
</plugin>

Regards,

Wolfgang


    
> Weird result in multi-profile build
> -----------------------------------
>
>                 Key: MEAR-163
>                 URL: https://jira.codehaus.org/browse/MEAR-163
>             Project: Maven Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>         Environment: Windows 7 64Bit; Java 6 / 32 Bit
>            Reporter: Wolfgang Grossinger
>
> I configured my pom to create 2 separate EAR-files (with 2 different classifiers) when
a certain profile is active and get 2 weird things:
> 1.) I get a third 'normal' EAR-File too. 
> 2.) I use <excluded>true</excluded> which has no effect, so at the end, I
get 3 files with the same content and different names.
> The config looks like:
> {code:xml}
> <plugin>
>    <groupId>org.apache.maven.plugins</groupId>
>    <artifactId>maven-ear-plugin</artifactId>
>    <executions>
>       <execution>
>          <id>web</id>
>          <phase>package</phase>
>          <goals>					
>             <goal>ear</goal>
>          </goals>
>          <configuration>
>             <version>5</version>
>             <classifier>web-${zps.build.identifier}</classifier>
>             <generateApplicationXml>true</generateApplicationXml>
>             <applicationName>ZPSWEB</applicationName>								   
>             <modules>									   
>                <webModule>
>                   <groupId>at.gv.bmi</groupId>
>                   <artifactId>zps-gwt</artifactId>
>                   <contextRoot>/${zps.web.contextRoot}</contextRoot>
>                </webModule>
>                <webModule>
>                   <groupId>at.gv.bmi</groupId>
>                   <artifactId>zps-integration</artifactId>
>                   <excluded>true</excluded>
>                </webModule>
>             </modules>
>          </configuration>
>       </execution>
>       <execution>
>          <id>srv</id>
>          <phase>package</phase>
>          <goals>
>             <goal>ear</goal>
>          </goals>
>          <configuration>
>             <version>5</version>
>             <classifier>srv-${zps.build.identifier}</classifier>
>             <generateApplicationXml>true</generateApplicationXml>
>             <applicationName>ZPSSRV</applicationName>
>             <modules>
>                <webModule>
>                   <groupId>at.gv.bmi</groupId>
>                   <artifactId>zps-gwt</artifactId>
>                   <excluded>true</excluded>
>                </webModule>
>                <webModule>
>                   <groupId>at.gv.bmi</groupId>
>                   <artifactId>zps-integration</artifactId>
>                   <contextRoot>/${zps.srv.contextRoot}</contextRoot>
>                </webModule>
>             </modules>
>          </configuration>
>       </execution>
>    </executions>
> </plugin>
> {code}
> Regards,
> Wolfgang

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message