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:
    *

Activity

Hide
Christophe DENEUX added a comment - Thu, 8 Sep 2011 - 16:58:56 +0200

Could you try with the last released version 2.1.4 integrating the fix of MAVPETALSPLUG-5

Show
Christophe DENEUX added a comment - Thu, 8 Sep 2011 - 16:58:56 +0200 Could you try with the last released version 2.1.4 integrating the fix of MAVPETALSPLUG-5
Hide
Christophe Hamerling added a comment - Mon, 19 Sep 2011 - 17:37:26 +0200

Works with plugin 2.1.4

Show
Christophe Hamerling added a comment - Mon, 19 Sep 2011 - 17:37:26 +0200 Works with plugin 2.1.4
Christophe DENEUX made changes - Tue, 20 Sep 2011 - 09:35:27 +0200
Field Original Value New Value
Resolution Duplicate [ 3 ]
Status New [ 10000 ] Resolved [ 10004 ]
Christophe DENEUX made changes - Tue, 20 Sep 2011 - 09:35:51 +0200
Fix Version/s 2.1.4 [ 10266 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Tue, 20 Sep 2011 - 09:42:45 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Duplicate [ 3 ]
Christophe DENEUX made changes - Tue, 20 Sep 2011 - 09:42:48 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Tue, 20 Sep 2011 - 09:43:11 +0200 - edited

Already fixed by MAVPETALSPLUG-5 fixed in release 2.1.4

Show
Christophe DENEUX added a comment - Tue, 20 Sep 2011 - 09:43:11 +0200 - edited Already fixed by MAVPETALSPLUG-5 fixed in release 2.1.4
Christophe DENEUX made changes - Tue, 20 Sep 2011 - 09:43:11 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Resolved Resolved
13d 22h 37m
1
Christophe DENEUX
Tue, 20 Sep 2011 - 09:35:27 +0200
Resolved Resolved Open Open
7m 18s
1
Christophe DENEUX
Tue, 20 Sep 2011 - 09:42:45 +0200
Open Open In Progress In Progress
3s
1
Christophe DENEUX
Tue, 20 Sep 2011 - 09:42:48 +0200
In Progress In Progress Resolved Resolved
23s
1
Christophe DENEUX
Tue, 20 Sep 2011 - 09:43:11 +0200

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