Hi,

poroto20 wrote:

> Using the EAR plugin, if I specify the context root in the EAR's pom it
> works. But if I specify the contextRoot in a profile (in its parent pom),
> it sets the contextRoot by default (articleId).
> 
> Am I doing something wrong?

And what do you do to activate the profile?

> 
> This is a piece of code for the EAR's pom:
> 
> 
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.9</version>
> <configuration>
> .........
>                                 <modules>
>                         <webModule>
> <groupId>fuseim</groupId>
> <artifactId>xstreamline3-webservice</artifactId>
> <contextRoot>/data</contextRoot>
> <bundleDir>/</bundleDir>
> </webModule>
>                     </modules>
> <version>5</version>
> </configuration>
> 
> </plugin>
> 
> 
> And this is a piece of code in the EAR's parent pom:
> 
> 
> <profile>
> <id>jboss6</id>
> <properties>
> <jboss.version>6</jboss.version>
>                 <packagingExcludes.data>**/*.jar</packagingExcludes.data>
> </properties>
>             <build>
>             <plugins>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-ear-plugin</artifactId>
>                     <version>2.9</version>
>                     <configuration>
>                     <modules>
>                         <webModule>
> <groupId>fuseim</groupId>
> <artifactId>xstreamline3-webservice</artifactId>
> <contextRoot>/data</contextRoot>
> <bundleDir>/</bundleDir>
> </webModule>
>                     </modules>
>                     </configuration>
>                 </plugin>
>             </plugins>
>             </build>
> </profile>
> 
> 
> Please help me.
> Thx
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/contextRoot-is-set-by-default-when-specified-in-profile-tp5788934.html
> Sent from the Maven - Users mailing list archive at Nabble.com.



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

Reply via email to