[
http://jira.codehaus.org/browse/MNG-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170595#action_170595
]
Clement Denis commented on MNG-4101:
------------------------------------
I have attached the debug logs ('mvn -o -X -e -DskipTests clean install') for
both 2.0.10 (build ok) and 2.1.0 (build failing).
Actually the problem is at the line 6392 of build-2.1.0.log (corresponds to
line 6354 of build-2.0.10.log) : the artifact type is resolved as jar, but its
declared as <type>ejb</type> in the pom.
2.0.10 : [DEBUG] com.test.core:core:ejb:shaded:1.0.0-SNAPSHOT:runtime
(selected for runtime)
2.1.0 : [DEBUG] com.test.core:core:jar:shaded:1.0.0-SNAPSHOT:runtime
(selected for runtime)
This is the configuration for the shade plugin.
{code:xml}
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<artifactSet>
<includes>
<include>com.test.core:utils</include>
<include>com.test.core:entities</include>
<include>com.test.core:users</include>
<include>com.test.core:controllers</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer"
/>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
{code}
> Cannot build an ear submodule with an ejb dependency with a classifier
> ----------------------------------------------------------------------
>
> Key: MNG-4101
> URL: http://jira.codehaus.org/browse/MNG-4101
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.1.0
> Environment: Linux 64 bits, Sun JDK 1.6
> Reporter: Clement Denis
>
> I have an ear artifact with a dependant ejb module that has a classifier (i
> use the shade plugin to generate my ejb artifact).
> This is my dependency :
> {code:xml}
> <dependency>
> <groupId>com.test.core</groupId>
> <artifactId>core</artifactId>
> <classifier>shaded</classifier>
> <type>ejb</type>
> <version>1.0.0-SNAPSHOT</version>
> <scope>runtime</scope>
> </dependency>
> {code}
> There is my ear plugin configuration :
> {code:xml}
> <plugin>
> <artifactId>maven-ear-plugin</artifactId>
> <configuration>
> <version>5</version>
> <generateApplicationXml>true</generateApplicationXml>
> <displayName>${parent.artifactId}</displayName>
> <defaultLibBundleDir>lib</defaultLibBundleDir>
> <modules>
> <webModule>
> <groupId>com.test.core</groupId>
> <artifactId>webapp</artifactId>
> <contextRoot>/test</contextRoot>
> </webModule>
> <ejbModule>
> <groupId>com.test.core</groupId>
> <artifactId>core</artifactId>
> <classifier>shaded</classifier>
> </ejbModule>
> </modules>
> </configuration>
> </plugin>
> {code}
> When i build the ear directly (clean package on the ear module), the build
> works fine.
> But when i build the root module (the ear module is a submodule), i get the
> following error :
> "Artifact[ejb:com.test.core:core:shaded] is not a dependency of the project."
> If i remove the classifier, the build from the root module is ok.
> This is a regression for 2.1.0 (it worked with 2.0.10 and 2.1.0-M1).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira