Pascal Le Goff created MNG-5283:
-----------------------------------
Summary: Pom import doesn't work with plugin snapshot
Key: MNG-5283
URL: https://jira.codehaus.org/browse/MNG-5283
Project: Maven 2 & 3
Issue Type: Bug
Components: Profiles
Affects Versions: 2.2.x (to be reviewed)
Environment: windows
Reporter: Pascal Le Goff
To develop one plugin maven in few branch (dev0, dev1....) I have some
dependencies in dev0 and other dependencies in dev1
I have a super pom dev-snapshot with profiles (profile-dev0, profile-dev1)
for each profile, I have a dependencymanagment with import pom file
<groupId>com.pom</groupId>
<artifactId>dynamic-parent</artifactId>
<version>1.0.000.000-SNAPSHOT</version>
<packaging>pom</packaging>
<profiles>
<profile>
<id>profile-dev0</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.pom</groupId>
<artifactId>dynamic-profile</artifactId>
<type>pom</type>
<version>dev0-SNAPSHOT</version>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>profile-dev1</id>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.pom</groupId>
<artifactId>dynamic-profile</artifactId>
<type>pom</type>
<version>dev1-SNAPSHOT</version>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
by default, profile-dev0 is activate
in the pom com.pom:dynamic-profile:pom:dev0-SNAPSHOT , I have dependencies
version for dev0 and in com.pom:dynamic-profile:pom:dev0-SNAPSHOT, I have
dependencies for dev1
When I compile mvn clean deploy -Pprofile-dev0, my plugin is deploy on nexus
repository
if I use my plugin maven on an other component, the pom
com.pom:dynamic-profile:pom:dev0-SNAPSHOT
my parent is
<parent>
<groupId>com.pom</groupId>
<artifactId>dynamic-parent</artifactId>
<version>1.0.000.000-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>my;groupid</groupId>
<artifactId>my.plugin</artifactId>
if I do a clean install -P!profile-dev0,profile-dev1
it download the parent com.pom:dynamic-parent:1.0.000.000-SNAPSHOT but not the
import file
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: com.pom:dynamic-profile
Reason: POM 'com.pom:dynamic-profile' not found in repository: Unable to
download the artifact from any repository
com.pom:dynamic-profile:pom:dev0-SNAPSHOT
from the specified remote repositories:
reference-central
(http://repository.all.alcatel-lucent.com/nexus/content/groups/reference-cache/)
for project com.pom:dynamic-profile
Thanks
Pascal
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira