nikgoodley-ibboost / maven-external-dependency-plugin

Automatically exported from code.google.com/p/maven-external-dependency-plugin
0 stars 0 forks source link

Doesn't work with Maven 3.0-beta-1 #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The maven-external-dependency-plugin does work with Maven 2.2, but fails
with 3.0-beta-1: It doesn't get a chance to resolve or install an external
dependency if it is declared as a project dependency under <dependencies>;
you get a MultipleArtifactsNotFoundException first.

Original issue reported on code.google.com by sro...@gmail.com on 27 May 2010 at 2:18

GoogleCodeExporter commented 9 years ago
Thanks for the heads up.  I have not had a chance to learn and play with Maven 
3 yet.

Original comment by savage7....@gmail.com on 26 Sep 2010 at 4:10

GoogleCodeExporter commented 9 years ago
I'm using it ok with maven 3.0 final, could you confirm if that still being a 
problem?

Original comment by velo...@gmail.com on 12 Oct 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Yes, this is still a problem. Maven 3.0 seems to attempt to resolve 
dependencies *before* it executes any lifecycle phases. Of course, it then 
isn't able to find any external dependencies, even if 
external-dependency:resolve-external and :install-external are bound to the 
earliest phase available, namely "validate".

The only workaround I have found so far is to bind 
external-dependency:resolve-external and :install-external in the *parent* POM: 
As the parent project has to be build before the child, all external 
dependencies are already in the local repository when Maven starts to build the 
child project.

Original comment by s...@st.informatik.tu-darmstadt.de on 14 Oct 2010 at 8:15

GoogleCodeExporter commented 9 years ago
I have been looking into this issue over the past couple of days and it seems 
that there is a fundamental change in Maven 3 that is causing project 
dependencies to be resolved prior to the plugin (mojo) executing its tasks 
(goals) while using the default lifecycle phases.  In Maven 2, this plugin 
would attempt to download and install the external dependencies prior to maven 
dependency resolution, but now with Maven 3, there is this chicken-and-egg 
problem.  I'm looking into other possible solutions, but at this time I am not 
sure if this can be solved using the default lifecycle phases.   

You can decouple this plugin's execution goals from the default lifecycle 
phases and manually execute this plugin's goals prior to running each from 
command line.   Not ideal, but a workaround.

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
mvn com.savage7.maven.plugins:maven-external-dependency-plugin:install-external
mvn package

Original comment by savage7....@gmail.com on 1 May 2011 at 3:41

GoogleCodeExporter commented 9 years ago
Does this mean that maven-external-dependency-plugin (0.4) doesn't work in 
Maven 3.X at all? I'm trying to use it with Maven 3.0.3 and manually executing 
the plugin's resolve-external goal first and I get:

[ERROR] Failed to execute goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.4:resolve-external 
(default-cli) on project PhotoTag_Parent: The parameters 'artifactItems' for 
goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.4:resolve-external 
are missing or invalid -> [Help 1]

I wanted to try with 0.5-SNAPSHOT but it seems it's no longer available in the 
Sonatype repo

Original comment by germanvi...@gmail.com on 12 Feb 2012 at 7:19

GoogleCodeExporter commented 9 years ago
0.5-SNAPSHOT has been re-deployed to the repository.  Please test with this 
snapshot version using Maven 3.x.   Please post back if everything is working 
correctly with 0.5-SNAPSHOT.  It it is, then I can deploy 0.5 as a release 
instead of a snapshot.  
Thanks, Robert

Original comment by savage7....@gmail.com on 13 Feb 2012 at 6:05

GoogleCodeExporter commented 9 years ago
Hi. I can confirm 0.5-SNAPSHOT is now accessible but I still get the same 
error. I believe my "artifactItems" parameters are correct because they are no 
different than the examples that you show on the web. Here's a full log (I can 
send you the POM file if you want):

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external 
-X

Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/germanviscuso/.m2/settings.xml
[DEBUG] Using local repository at /Users/germanviscuso/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for 
/Users/germanviscuso/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project 
com.androidstartup.imagetagger:PhotoTag_Parent:pom:1.0.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from 
ClassRealm[plexus.core, parent: null]
[DEBUG] 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:jar:3.1.1:
[DEBUG]    com.android.ddmlib:ddmlib:jar:r16:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:3.0.3:compile
[DEBUG]    org.apache.maven:maven-model:jar:3.0.3:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.0.3:compile
[DEBUG]       org.sonatype.sisu:sisu-inject-plexus:jar:2.1.1:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-bean:jar:2.1.1:compile
[DEBUG]             org.sonatype.sisu:sisu-guice:jar:no_aop:2.9.4:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-aether-provider:jar:3.0.3:compile
[DEBUG]          org.sonatype.aether:aether-spi:jar:1.11:compile
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.11:compile
[DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-archiver:jar:2.4.2:compile
[DEBUG]    org.codehaus.plexus:plexus-archiver:jar:2.0.1:compile
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit:jar:3.8.1:compile
[DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]       org.codehaus.plexus:plexus-io:jar:2.0.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0:compile
[DEBUG]    commons-jxpath:commons-jxpath:jar:1.3:compile
[DEBUG]    commons-io:commons-io:jar:2.0.1:compile
[DEBUG]    org.ow2.asm:asm:jar:4.0:compile
[DEBUG]    commons-lang:commons-lang:jar:2.6:compile
[DEBUG]    org.sonatype.aether:aether-api:jar:1.12:compile
[DEBUG]    org.sonatype.aether:aether-util:jar:1.12:compile
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.sonatype.aether.collection < plexus.core
[DEBUG]   Imported: org.sonatype.aether.version < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.sonatype.aether.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG]   Imported: org.sonatype.aether.spi < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < 
plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.sonatype.aether.graph < plexus.core
[DEBUG]   Imported: org.sonatype.aether.* < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.sonatype.aether.impl < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < 
plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < 
plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.sonatype.aether.installation < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] Created new class realm 
extension>com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.
1
[DEBUG] Importing foreign packages into class realm 
extension>com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.
1
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm 
extension>com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.
1
[DEBUG]   Included: 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:jar:3.1.1
[DEBUG]   Included: com.android.ddmlib:ddmlib:jar:r16
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:2.1.1
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:no_aop:2.9.4
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.14
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.apache.maven:maven-archiver:jar:2.4.2
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:2.0.1
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.0.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0
[DEBUG]   Included: commons-jxpath:commons-jxpath:jar:1.3
[DEBUG]   Included: commons-io:commons-io:jar:2.0.1
[DEBUG]   Included: org.ow2.asm:asm:jar:4.0
[DEBUG]   Included: commons-lang:commons-lang:jar:2.6
[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.12
[DEBUG] Extension realms for project 
com.androidstartup.imagetagger:PhotoTag_App:apk:1.0.0-SNAPSHOT: 
[ClassRealm[extension>com.jayway.maven.plugins.android.generation2:android-maven
-plugin:3.1.1, parent: sun.misc.Launcher$AppClassLoader@20cf2c80]]
[DEBUG] Created new class realm 
project>com.androidstartup.imagetagger:PhotoTag_App:1.0.0-SNAPSHOT
[DEBUG] Populating class realm 
project>com.androidstartup.imagetagger:PhotoTag_App:1.0.0-SNAPSHOT
[DEBUG] Looking up lifecyle mappings for packaging apk from 
ClassRealm[project>com.androidstartup.imagetagger:PhotoTag_App:1.0.0-SNAPSHOT, 
parent: ClassRealm[maven.api, parent: null]]
[DEBUG] 
com.jayway.maven.plugins.android.generation2:android-maven-plugin:jar:3.1.1:
[DEBUG]    com.android.ddmlib:ddmlib:jar:r16:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:3.0.3:compile
[DEBUG]    org.apache.maven:maven-model:jar:3.0.3:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.0.3:compile
[DEBUG]       org.sonatype.sisu:sisu-inject-plexus:jar:2.1.1:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-bean:jar:2.1.1:compile
[DEBUG]             org.sonatype.sisu:sisu-guice:jar:no_aop:2.9.4:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.0.3:compile
[DEBUG]       org.apache.maven:maven-aether-provider:jar:3.0.3:compile
[DEBUG]          org.sonatype.aether:aether-spi:jar:1.11:compile
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.11:compile
[DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-archiver:jar:2.4.2:compile
[DEBUG]    org.codehaus.plexus:plexus-archiver:jar:2.0.1:compile
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          junit:junit:jar:3.8.1:compile
[DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]       org.codehaus.plexus:plexus-io:jar:2.0.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0:compile
[DEBUG]    commons-jxpath:commons-jxpath:jar:1.3:compile
[DEBUG]    commons-io:commons-io:jar:2.0.1:compile
[DEBUG]    org.ow2.asm:asm:jar:4.0:compile
[DEBUG]    commons-lang:commons-lang:jar:2.6:compile
[DEBUG]    org.sonatype.aether:aether-api:jar:1.12:compile
[DEBUG]    org.sonatype.aether:aether-util:jar:1.12:compile
[DEBUG] Extension realms for project 
com.androidstartup.imagetagger.test:PhotoTag_Test:apk:1.0.0-SNAPSHOT: 
[ClassRealm[extension>com.jayway.maven.plugins.android.generation2:android-maven
-plugin:3.1.1, parent: sun.misc.Launcher$AppClassLoader@20cf2c80]]
[DEBUG] Looking up lifecyle mappings for packaging apk from 
ClassRealm[project>com.androidstartup.imagetagger:PhotoTag_App:1.0.0-SNAPSHOT, 
parent: ClassRealm[maven.api, parent: null]]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] PhotoTag - Parent
[INFO] PhotoTag - App
[INFO] PhotoTag - Test
[DEBUG] Could not find metadata 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT/maven-me
tadata.xml in local (/Users/germanviscuso/.m2/repository)
[DEBUG] Could not find metadata 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT/maven-me
tadata.xml in local (/Users/germanviscuso/.m2/repository)
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: 
com.androidstartup.imagetagger:PhotoTag_Parent:pom:1.0.0-SNAPSHOT
[DEBUG] Tasks:   
[com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external]
[DEBUG] Style:   Regular
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Project: com.androidstartup.imagetagger:PhotoTag_App:apk:1.0.0-SNAPSHOT
[DEBUG] Tasks:   
[com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external]
[DEBUG] Style:   Regular
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Project: 
com.androidstartup.imagetagger.test:PhotoTag_Test:apk:1.0.0-SNAPSHOT
[DEBUG] Tasks:   
[com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building PhotoTag - Parent 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, 
process-sources, generate-resources, process-resources, compile, 
process-classes, generate-test-sources, process-test-sources, 
generate-test-resources, process-test-resources, test-compile, 
process-test-classes, test, prepare-package, package, pre-integration-test, 
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       
com.androidstartup.imagetagger:PhotoTag_Parent:1.0.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (http://repo1.maven.org/maven2, 
releases)]
[DEBUG] Repositories (plugins)     : [central (http://repo1.maven.org/maven2, 
releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <force default-value="false"/>
  <localRepository>${localRepository}</localRepository>
  <project default-value="${project}"/>
  <remoteRepositories>${project.remoteArtifactRepositories}</remoteRepositories>
  <skipChecksumVerification default-value="false"/>
  <stagingDirectory default-value="${project.build.directory}"/>
</configuration>
[DEBUG] =======================================================================
[INFO] 
[INFO] --- maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-external 
(default-cli) @ PhotoTag_Parent ---
[DEBUG] 
com.savage7.maven.plugins:maven-external-dependency-plugin:jar:0.5-SNAPSHOT:
[DEBUG]    commons-logging:commons-logging:jar:1.1:compile
[DEBUG]       log4j:log4j:jar:1.2.12:compile
[DEBUG]       logkit:logkit:jar:1.0.1:compile
[DEBUG]       avalon-framework:avalon-framework:jar:4.1.3:compile
[DEBUG]       javax.servlet:servlet-api:jar:2.3:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
[DEBUG]    org.codehaus.plexus:plexus-digest:jar:1.0:compile
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile
[DEBUG]          junit:junit:jar:3.8.1:compile
[DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]    org.apache.maven.plugins:maven-install-plugin:jar:2.3:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG]    org.apache.maven.plugins:maven-deploy-plugin:jar:2.3:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0:compile
[DEBUG]          
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:compile
[DEBUG]          org.apache.maven.reporting:maven-reporting-api:jar:2.0:compile
[DEBUG]             doxia:doxia-sink-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0:compile
[DEBUG]          
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0:compile
[DEBUG]    org.codehaus.plexus:plexus-archiver:jar:1.1:compile
[DEBUG]       org.codehaus.plexus:plexus-io:jar:1.0.1:compile
[DEBUG] Created new class realm 
plugin>com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT
[DEBUG] Importing foreign packages into class realm 
plugin>com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm 
plugin>com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT
[DEBUG]   Included: 
com.savage7.maven.plugins:maven-external-dependency-plugin:jar:0.5-SNAPSHOT
[DEBUG]   Included: commons-logging:commons-logging:jar:1.1
[DEBUG]   Included: log4j:log4j:jar:1.2.12
[DEBUG]   Included: logkit:logkit:jar:1.0.1
[DEBUG]   Included: avalon-framework:avalon-framework:jar:4.1.3
[DEBUG]   Included: javax.servlet:servlet-api:jar:2.3
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.5.6
[DEBUG]   Included: org.codehaus.plexus:plexus-digest:jar:1.0
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: org.apache.maven.plugins:maven-install-plugin:jar:2.3
[DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:2.3
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0
[DEBUG]   Included: doxia:doxia-sink-api:jar:1.0-alpha-4
[DEBUG]   Included: commons-cli:commons-cli:jar:1.0
[DEBUG]   Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:1.1
[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:1.0.1
[DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
[DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG]   Excluded: org.apache.maven:maven-core:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-monitor:jar:2.0
[DEBUG] Configuring mojo 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external from plugin realm 
ClassRealm[plugin>com.savage7.maven.plugins:maven-external-dependency-plugin:0.5
-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@20cf2c80]
[DEBUG] Configuring mojo 
'com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve
-external' with basic configurator -->
[DEBUG]   (f) force = false
[DEBUG]   (f) localRepository =        id: local
      url: file:///Users/germanviscuso/.m2/repository/
   layout: none

[DEBUG]   (f) project = MavenProject: 
com.androidstartup.imagetagger:PhotoTag_Parent:1.0.0-SNAPSHOT @ 
/Users/germanviscuso/Projects/asrepogit/PhotoTag/pom.xml
[DEBUG]   (f) remoteRepositories = [       id: central
      url: http://repo1.maven.org/maven2
   layout: default
snapshots: [enabled => false, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) skipChecksumVerification = false
[DEBUG]   (f) stagingDirectory = 
/Users/germanviscuso/Projects/asrepogit/PhotoTag/target
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] PhotoTag - Parent ................................. FAILURE [0.195s]
[INFO] PhotoTag - App .................................... SKIPPED
[INFO] PhotoTag - Test ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.878s
[INFO] Finished at: Mon Feb 13 20:59:00 CET 2012
[INFO] Final Memory: 5M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external (default-cli) on project PhotoTag_Parent: The parameters 
'artifactItems' for goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external are missing or invalid -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external (default-cli) on project PhotoTag_Parent: The parameters 
'artifactItems' for goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external are missing or invalid
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:221)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 
'artifactItems' for goal 
com.savage7.maven.plugins:maven-external-dependency-plugin:0.5-SNAPSHOT:resolve-
external are missing or invalid
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:576)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:529)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

Original comment by germanvi...@gmail.com on 13 Feb 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Yes, please attach the POM file and I'll review later tonight.

Original comment by savage7....@gmail.com on 13 Feb 2012 at 8:14

GoogleCodeExporter commented 9 years ago
I can confirm that 0.5-SNAPSHOT works exactly like 0.4 here, running the 
workaround commands mentioned above.

The issue with Maven 3.0.3 remains, though.
I replayed it with the source from 
https://github.com/ps3mediaserver/ps3mediaserver

Original comment by Patrick....@gmail.com on 13 Feb 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Hi. Sorry savage7, maybe this was my mistake but (in Maven 3.0.3) the 
resolve-external goal DOES run correctly when I execute the POM in the child 
project directory like this:

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external

(I was trying to run it from a parent POM where artifactItems are not 
available).

The issue remains though that a "mvn clean install" does not trigger the goals 
before dependency resolution hence the external dependencies can't be resolved 
causing build failure.

This means that for Maven 3.0.3 and maven-external-dependency-plugin 
0.5-SNAPSHOT you still need to go with the workaround in comment #4 of this 
issue.

Best (thanks for your attention)

German

Original comment by germanvi...@gmail.com on 13 Feb 2012 at 11:24

GoogleCodeExporter commented 9 years ago
Please note that comment #3 also offers a workaround, which allows you to use a 
simple "mvn clean install", albeit at the price of pushing the 
maven-external-dependency-plugin configuration into the parent POM, where it 
may or may not logically belong.

Original comment by s...@st.informatik.tu-darmstadt.de on 14 Feb 2012 at 8:39