jira-importer commented on issue #431:
URL: 
https://github.com/apache/maven-ear-plugin/issues/431#issuecomment-2955291517

   **[Marat 
Abrarov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=abrarovm)**
 commented
   
   Hi [Leonid 
Rozenblyum](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=leokom),
   
   Won't workaround in [pull request 
#1](https://github.com/lrozenblyum/MEAR-267-issue-demo/pull/1) of 
lrozenblyum/MEAR-267-issue-demo project work for you? I understand that it's 
not solution, e.g. the same EJB JAR may be included into different EARs each 
having different 
[outputFileNameMapping](https://maven.apache.org/plugins/maven-ear-plugin/examples/customize-file-name-mapping.html)
 and the workaround doesn't work in this case.
   
   It looks like with 3.0 version of Maven EAR Plugin default 
outputFileNameMapping was changed to include group ID. I explicitly defined 
outputFileNameMapping to look like:
   
   ```
   <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-ear-plugin</artifactId>
       <version>3.0.2</version>
       <configuration>
           ...
           
<outputFileNameMapping>@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>
       </configuration>
   </plugin>
   ```
   
   when migrated one of my projects from Maven EAR Plugin 2.10.1 to 3.0.2. May 
be the same solution is more applicable to your needs.
   
   Thank you for detecting and describing this bug.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to