Maven
  1. Maven
  2. MNG-1928

ignores pluginRepository in settings.xml, honors in POM

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
      None
    • Environment:
      mvn 2.0.1, jvm 1.5.0_05, OSX 10.4.3
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      if specified in the POM as a plugin repo, maven can use the team.andromda.org/maven2 repo for finding, downloading, and installing plugins.
      however, settings.xml ignores plugin repos and only checks central if the plugin has never been downloaded before.

      for instance. if settings.xml has a pluginRepository entry for team.andromda.org/maven2 then:
      mvn andromdapp:generate
      should download the andromdapp plugin from our repo. but it doesn't. only central is checked and it fails to find the plugin.

        Issue Links

          Activity

          Hide
          Todd Nine added a comment -

          This was marked as closed in the first beta, is there a unit test to check this?

          Show
          Todd Nine added a comment - This was marked as closed in the first beta, is there a unit test to check this?
          Hide
          Kenney Westerhof added a comment -

          The duplicated issue is solved; verify and close.

          Show
          Kenney Westerhof added a comment - The duplicated issue is solved; verify and close.
          Hide
          Carlos Sanchez added a comment -

          Ryan, can you verify this with latest build in http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ ?

          Show
          Carlos Sanchez added a comment - Ryan, can you verify this with latest build in http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ ?
          Hide
          Ryan Marsh added a comment -

          nope, try this:

          ~/Desktop/maven-2.0.5-SNAPSHOT/bin/mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate

          you get this:

          [INFO] Scanning for projects...
          Downloading: http://repo1.maven.org/maven2/org/andromda/maven/plugins/andromda-maven-plugins/3.2/andromda-maven-plugins-3.2.pom
          [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO] Failed to resolve artifact.

          GroupId: org.andromda.maven.plugins
          ArtifactId: andromda-maven-plugins
          Version: 3.2

          Reason: Unable to download the artifact from any repository

          org.andromda.maven.plugins:andromda-maven-plugins:pom:3.2

          from the specified remote repositories:
          central (http://repo1.maven.org/maven2)

          [INFO] ------------------------------------------------------------------------
          [INFO] For more information, run Maven with the -e switch
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: < 1 second
          [INFO] Finished at: Fri Dec 15 17:26:37 CST 2006
          [INFO] Final Memory: 1M/3M
          [INFO] ------------------------------------------------------------------------

          with settings.xml like this:

          <?xml version="1.0"?>
          <settings>
          <pluginGroups>
          <pluginGroup>org.andromda.maven.plugins</pluginGroup>
          </pluginGroups>
          <profiles>
          <profile>
          <id>default</id>
          <activation>
          <activeByDefault>true</activeByDefault>
          </activation>
          <repositories>
          <repository>
          <id>snapshot-andromda</id>
          <name>AndroMDA Repository</name>
          <url>http://team.andromda.org/maven2/</url>
          <snapshots>
          <enabled>true</enabled>
          </snapshots>
          <releases>
          <enabled>enabled</enabled>
          </releases>
          </repository>
          </repositories>
          <pluginRepositories>
          <pluginRepository>
          <id>andromda</id>
          <name>AndroMDA Repository</name>
          <url>http://team.andromda.org/maven2/</url>
          <snapshots>
          <enabled>true</enabled>
          <updatePolicy>always</updatePolicy>
          </snapshots>
          <releases>
          <enabled>true</enabled>
          <updatePolicy>always</updatePolicy>
          </releases>
          </pluginRepository>
          </pluginRepositories>
          </profile>
          </profiles>
          <activeProfiles>
          <activeProfile>default</activeProfile>
          </activeProfiles>
          </settings>

          Show
          Ryan Marsh added a comment - nope, try this: ~/Desktop/maven-2.0.5-SNAPSHOT/bin/mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate you get this: [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/andromda/maven/plugins/andromda-maven-plugins/3.2/andromda-maven-plugins-3.2.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2 ) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.andromda.maven.plugins ArtifactId: andromda-maven-plugins Version: 3.2 Reason: Unable to download the artifact from any repository org.andromda.maven.plugins:andromda-maven-plugins:pom:3.2 from the specified remote repositories: central ( http://repo1.maven.org/maven2 ) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Fri Dec 15 17:26:37 CST 2006 [INFO] Final Memory: 1M/3M [INFO] ------------------------------------------------------------------------ with settings.xml like this: <?xml version="1.0"?> <settings> <pluginGroups> <pluginGroup>org.andromda.maven.plugins</pluginGroup> </pluginGroups> <profiles> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>snapshot-andromda</id> <name>AndroMDA Repository</name> <url> http://team.andromda.org/maven2/ </url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>enabled</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>andromda</id> <name>AndroMDA Repository</name> <url> http://team.andromda.org/maven2/ </url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>default</activeProfile> </activeProfiles> </settings>

            People

            • Assignee:
              Brett Porter
              Reporter:
              Ryan Marsh
            • Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: