Maven Petals Plugin

The plugin does not support maven relocations

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1.3
  • Fix Version/s: 2.1.4
  • Component/s: jbi-package
  • Security Level: Public
  • Description:
    Hide

    It seems that if the component have some dependencies which have been relocated using maven relocation rules, the plugin does not try to get the new dependency from its relocation properties. For example, with saaj (just an example since saaj is available in some JRE):

    compil@ns306320:~/.m2/repository/javax/xml/soap/saaj-impl/1.3$ more saaj-impl-1.3.pom
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>javax.xml.soap</groupId>
      <artifactId>saaj-impl</artifactId>
      <version>1.3</version>
    
      <distributionManagement>
        <relocation>
          <groupId>com.sun.xml.messaging.saaj</groupId>
        </relocation>
      </distributionManagement>
    
    </project>
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Unable to download the artifact from any repository
    
    Try downloading the file manually from the project website.
    
    Then, install it using the command: 
        mvn install:install-file -DgroupId=javax.xml.soap -DartifactId=saaj-impl -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file
    
    Alternatively, if you host your own repository you can deploy the file there: 
        mvn deploy:deploy-file -DgroupId=javax.xml.soap -DartifactId=saaj-impl -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
    
      javax.xml.soap:saaj-impl:jar:1.3

    The plugin does not try to look at the new location provided in the pom file.

    Show
    It seems that if the component have some dependencies which have been relocated using maven relocation rules, the plugin does not try to get the new dependency from its relocation properties. For example, with saaj (just an example since saaj is available in some JRE):
    compil@ns306320:~/.m2/repository/javax/xml/soap/saaj-impl/1.3$ more saaj-impl-1.3.pom
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>javax.xml.soap</groupId>
      <artifactId>saaj-impl</artifactId>
      <version>1.3</version>
    
      <distributionManagement>
        <relocation>
          <groupId>com.sun.xml.messaging.saaj</groupId>
        </relocation>
      </distributionManagement>
    
    </project>
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Unable to download the artifact from any repository
    
    Try downloading the file manually from the project website.
    
    Then, install it using the command: 
        mvn install:install-file -DgroupId=javax.xml.soap -DartifactId=saaj-impl -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file
    
    Alternatively, if you host your own repository you can deploy the file there: 
        mvn deploy:deploy-file -DgroupId=javax.xml.soap -DartifactId=saaj-impl -Dversion=1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
    
      javax.xml.soap:saaj-impl:jar:1.3
    The plugin does not try to look at the new location provided in the pom file.
  • Environment:
    *

People

Dates

  • Created:
    Tue, 6 Sep 2011 - 10:57:43 +0200
    Updated:
    Tue, 20 Sep 2011 - 09:43:38 +0200
    Resolved:
    Tue, 20 Sep 2011 - 09:43:11 +0200