[
http://jira.codehaus.org/browse/MEAR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204610#action_204610
]
Mikhail Olifirenko commented on MEAR-119:
-----------------------------------------
It seems the issue is related to maven-ear-plugin, because transitive
dependencies and expanding of properties in classifier tags work properly for
building of wars or jars. So the issue takes place only for ear building.
What other examples could I provide to demonstrate the issue? Is this problem
not related to maven-ear-plugin?
Thanks.
> Maven-ear-plugin seems not to expand/filter properties in classifiers
> ---------------------------------------------------------------------
>
> Key: MEAR-119
> URL: http://jira.codehaus.org/browse/MEAR-119
> Project: Maven 2.x Ear Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Mikhail Olifirenko
>
> The probable issue deals with using of classified transitive dependencies,
> where classifiers are specified by profiles.
> There are 3 modules: ear-application, ejb1 and ejb2 is used by ejb1 module.
> Ear application ear-application includes EJB modules ejb1 and ejb2. ejb1
> depends on ejb2.
> Let's ear-application pom.xml contains:
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-ear-plugin</artifactId>
> <version>2.4</version>
> <configuration>
> <classifier>${var}</classifier>
> <version>5</version>
> <modules>
> <ejbModule>
> <groupId>com.softcomputer</groupId>
> <artifactId>ejb1</artifactId>
> <classifier>${var}</classifier>
> </ejbModule>
> <ejbModule>
> <groupId>com.softcomputer</groupId>
> <artifactId>ejb2</artifactId>
> <classifier>${var}</classifier>
> </ejbModule>
> ...
> Pom.xml of ejb1 contains:
> ...
> <artifactId>ejb1</artifactId>
> <groupId>com.softcomputer</groupId>
> <name>First EJB module</name>
> <packaging>ejb</packaging>
> <dependencies>
> <dependency>
> <groupId>com.softcomputer</groupId>
> <artifactId>ejb2</artifactId>
> <type>ejb</type>
> <classifier>${var}</classifier>
> </dependency>
> ...
> Attempt to build specified enterprise application leads to:
> ...
> INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) com.softcomputer:ejb2:ejb:${var}:1.0.0-05-01
> ...
> Path to dependency:
> 1) com.softcomputer:ear-application:ear:1.0.0-07-05
> 2) com.softcomputer:ejb1:ejb:expandedVar:1.0.0-05-01
> 3) com.softcomputer:ejb2:ejb:${var}:1.0.0-05-01
> ...
> Where ${var} should be expanded with expandedVar value.
--
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