You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/06/17 21:40:10 UTC

[jira] (MNG-5283) Pom import doesn't work with plugin snapshot

     [ https://jira.codehaus.org/browse/MNG-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov updated MNG-5283:
--------------------------------

    Affects Version/s:     (was: 2.2.x (to be reviewed))

> 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
>         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 was sent by Atlassian JIRA
(v6.1.6#6162)