jira-importer commented on issue #431: URL: https://github.com/apache/maven-ear-plugin/issues/431#issuecomment-2955291527
**[Marat Abrarov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=abrarovm)** commented I added integration test deploying WildFly 20.0.1.Final (the latest version of WildFly ex JBoss AS) and EAR into that WildFly instance here (is based on [my master branch](https://github.com/lrozenblyum/MEAR-267-issue-demo/pull/1) with [workaround](https://issues.apache.org/jira/browse/MEAR-267?focusedCommentId=17202439&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17202439)): https://github.com/mabrarov/MEAR-267-issue-demo/compare/master...mabrarov:feature/wildfly-managed-it Test can be executed with simple (tested on JDK 11 and 1.8): ```bash $ mvn clean verify ``` I added integration test deploying JBoss AS 7.1.1.Final (the oldest version of JBoss AS I was able to run on Oracle JDK 1.7) and EAR into that JBoss AS instance here (is based on my master branch with workaround): https://github.com/mabrarov/MEAR-267-issue-demo/compare/master...mabrarov:feature/jboss-managed-it Test can be executed with this command (tested on OpenJDK 1.8 + Oracle JDK 1.7 as `jboss.java.home` maven property and on Oracle JDK 1.7): ```bash $ mvn clean verify -Djboss.java.home=${JAVA7_HOME} ``` where `${JAVA7_HOME`} is location of Oracle JDK 1.7. `jboss.java.home` maven property may be omitted if Maven runs on Oracle JDK 1.7. Without [workaround](https://issues.apache.org/jira/browse/MEAR-267?focusedCommentId=17202439&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17202439) I get just **warning** and **no errors** on WildFly 20.0.1.Final: ``` 00:38:03,488 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0059: Class Path entry guava-19.0.jar in XXX/MEAR-267-issue-demo/MEAR-267-ear/content/MEAR-267.ear/com.leokom-MEAR-267-ejb-1.0-SNAPSHOT.jar does not point to a valid jar for a Class-Path reference. ``` and on JBoss AS 7.1.1.Final: ``` 00:50:33,947 WARN [org.jboss.as.server.deployment] (MSC service thread 1-5) Class Path entry guava-19.0.jar in "XXX/MEAR-267-issue-demo/MEAR-267-ear/content/MEAR-267.ear/com.leokom-MEAR-267-ejb-1.0-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference. ``` I believe we can decrease priority of this bug, because: 1. this bug doesn't cause error / deployment failure on semi-modern and modern Java EE application servers 2. [workaround](https://issues.apache.org/jira/browse/MEAR-267?focusedCommentId=17202439&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17202439) exists One more thing I found with JBoss AS/ WildFly is that this Maven EAR Plugin configuration ```xml <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> ``` is not sufficient to solve these warnings - we need to provide "lib/" prefix for class-path entries to make JBoss AS / WildFly happy. -- 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]
