[
https://jira.codehaus.org/browse/MEAR-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MEAR-142.
-------------------------------
Resolution: Cannot Reproduce
Assignee: Robert Scholte
This looks more like a Maven Core issue rather then a maven-ear-plugin issue.
However, when running the example project I get the results as expected.
I'd suggest to use a more recent version of Maven.
My system:
{noformat}
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
14:51:28+0100)
Maven home: D:\apache-maven-3.0.5\bin\..
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
{noformat}
> bundleFileName ignored when plugin used with multiple profile
> -------------------------------------------------------------
>
> Key: MEAR-142
> URL: https://jira.codehaus.org/browse/MEAR-142
> Project: Maven Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.6
> Environment: linux, or windows same behaviour
> maven 2, jdk 1.5
> Reporter: Stefano Ghezzi
> Assignee: Robert Scholte
> Attachments: ear-bundle-file-name.zip
>
>
> I want to build ear with different sets of modules based on the profiles
> activated
> In every profile i have a configuration like this
> {code:xml}
> <profile>
> <id>profile1</id>
> <dependencies>
> <dependency>
> ......
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.6</version>
> <configuration>
> <modules>
> <ejbModule>
> <groupId>xxxx</groupId>
> <artifactId>xxx-yyy</artifactId>
> <bundleFileName>xxx-yyy.jar</bundleFileName>
> </ejbModule>
> </modules>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </profile>
> {code}
> As soon as i use two different profiles the bundleFileName attribute is
> ignored and ejb/jar/war are packaged with the original filename
> Only workaround possibile at the moment:
> have only two profiles
> replicate all the ejb/jar/war in the two profiles
> but obviously this is less than optimal
> bye
--
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