> Hi all!
> 
> We have a project producing an ear artifact. The contents of the ear
> file are configured with the maven-ear-plugin. In profiles we want to
> be able to flexibly add more artifacts to the ear file as shown in the
> example below. Our tests so far revealed a different behaviour than
> expected. When adding a jar file with the jarModule element, all other
> entries corresponding to jarModules disappear in the application.xml
> and even some other jar files disappear completely from the ear.
> Moreover, when adding a second profile adding jars, the first is
> eclipsed. Is this a bug in the maven-ear-plugin implementation?
> 
> Regards, Paul
> 
> 
>     <profile>
>       <id>my_test</id>
>       <activation>
>         <property>
>           <name>my_switch</name>
>           <value>true</value>
>         </property>
>       </activation>
>       <build>
>         <plugins>
>           <plugin>
>             <artifactId>maven-ear-plugin</artifactId>
>             <configuration>
>               <modules>
>                 <jarModule>
>                   <groupId>quartz</groupId>
>                   <artifactId>quartz</artifactId>
>  
> <includeInApplicationXml>true</includeInApplicationXml>
>                 </jarModule>
>               </modules>
>             </configuration>
>           </plugin>
>         </plugins>
>       </build>
>       <dependencies>
>         <dependency>
>               <groupId>quartz</groupId>
>       <artifactId>quartz</artifactId>
>       <type>jar</type>
>       <version>1.5.2</version>
>         </dependency>
>       </dependencies>
>     </profile> 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. If you receive this message in 
error, please notify the sender urgently and then immediately delete the 
message and any copies of it from your system. Please also immediately destroy 
any hardcopies of the message. 
The sender's company reserves the right to monitor all e-mail communications 
through their networks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to