[ 
https://issues.apache.org/jira/browse/MEAR-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959016#comment-17959016
 ] 

Matthias Bünger commented on MEAR-142:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-ear-plugin#155|https://github.com/apache/maven-ear-plugin/issues/155].
 

> bundleFileName ignored when plugin used with multiple profile
> -------------------------------------------------------------
>
>                 Key: MEAR-142
>                 URL: https://issues.apache.org/jira/browse/MEAR-142
>             Project: Maven EAR Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.6
>         Environment: linux, or windows same behaviour
> maven 2, jdk 1.5
>            Reporter: Stefano Ghezzi
>            Assignee: Robert Scholte
>            Priority: Major
>         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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to