Hi, i'm using Artifactory 2.3.2 (also tested in 2.2.1) and when
deploying snapshot plugins they are not resolved correctly. This problem
is not present when working with release plugins (not snapshot).
Using the 2.1-SNAPSHOT version of maven-archetype-plugin [1] as example,
i deploy it in a local repo in Artifactory but when clients tries to use
it, it is not resolved throwing errors. The meta-data seems to be ok:
*org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml*
<metadata>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<versioning>
<latest>2.1-SNAPSHOT</latest>
<release>2.0</release>
<versions>
<version>1.0-alpha-3</version>
<version>1.0-alpha-4</version>
<version>1.0-alpha-7</version>
<version>2.0-alpha-1</version>
<version>2.0-alpha-2</version>
<version>2.0-alpha-3</version>
<version>2.0-alpha-4</version>
<version>2.0-alpha-5</version>
<version>2.0</version>
<version>2.1-SNAPSHOT</version>
</versions>
<lastUpdated>20110420113107</lastUpdated>
</versioning>
</metadata>
*org/apache/maven/plugins/maven-archetype-plugin/2.1-SNAPSHOT/maven-metadata.xml*
<metadata>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20110420.112731</timestamp>
<buildNumber>1</buildNumber>
</snapshot>
<lastUpdated>20110420111844</lastUpdated>
</versioning>
</metadata>
Note: test-repo is a virtual repository holding the local repository and
a apache's repo1 remote repositorio for resolving any additional dependency.
+ Error stacktraces are turned on.
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.5.0
Java home: /opt/IBMJava2-i386-50-SR4/jre
Default locale: es_AR, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-28-generic-pae" arch: "x86" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from:
'/home/murbieta/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/share/maven2/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Skipping disabled repository central
[INFO] snapshot
org.apache.maven.plugins:maven-archetype-plugin:2.1-SNAPSHOT: checking
for updates from local.artifactory
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[INFO] snapshot
org.apache.maven.plugins:maven-archetype-plugin:2.1-SNAPSHOT: checking
for updates from fluxit
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Skipping disabled repository central
[DEBUG] maven-archetype-plugin: resolved to version
2.1-20110420.123055-3 from repository fluxit
[DEBUG] Trying repository fluxit
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
Downloading:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot/org/apache/maven/plugins/maven-archetype-plugin/2.1-SNAPSHOT/maven-archetype-plugin-2.1-20110420.123055-3.pom
[DEBUG] attempting to create parent directories for destination:
maven-archetype-plugin-2.1-20110420.123055-3.pom.tmp
3/5K 5/5K 5K downloaded (maven-archetype-plugin-2.1-20110420.123055-3.pom)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Artifact resolved
[DEBUG] Retrieving parent-POM:
org.apache.maven.archetype:maven-archetype:pom:2.1-SNAPSHOT for project:
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:null from
the repository.
[DEBUG] Skipping disabled repository central
[INFO] snapshot org.apache.maven.archetype:maven-archetype:2.1-SNAPSHOT:
checking for updates from local.artifactory
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[INFO] snapshot org.apache.maven.archetype:maven-archetype:2.1-SNAPSHOT:
checking for updates from fluxit
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Skipping disabled repository central
[DEBUG] maven-archetype: resolved to version 2.1-20110420.123055-3 from
repository fluxit
[DEBUG] Trying repository fluxit
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
Downloading:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot/org/apache/maven/archetype/maven-archetype/2.1-SNAPSHOT/maven-archetype-2.1-20110420.123055-3.pom
[DEBUG] attempting to create parent directories for destination:
maven-archetype-2.1-20110420.123055-3.pom.tmp
3/9K 7/9K 9/9K 9K downloaded (maven-archetype-2.1-20110420.123055-3.pom)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Artifact resolved
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:18 for
project: org.apache.maven.archetype:maven-archetype:pom:2.1-SNAPSHOT
from the repository.
[DEBUG] Trying repository central
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
Downloading:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot/org/apache/maven/maven-parent/18/maven-parent-18.pom
[DEBUG] attempting to create parent directories for destination:
maven-parent-18.pom.tmp
4/23K 8/23K 12/23K 16/23K 20/23K 23/23K 23K downloaded
(maven-parent-18.pom)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Artifact resolved
[DEBUG] Retrieving parent-POM: org.apache:apache:pom:8 for project:
org.apache.maven:maven-parent:pom:18 from the repository.
[DEBUG] Trying repository central
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'local.artifactory' with url:
'http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot'.
Downloading:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot/org/apache/apache/8/apache-8.pom
[DEBUG] attempting to create parent directories for destination:
apache-8.pom.tmp
4/13K 8/13K 11/13K 13/13K 13K downloaded (apache-8.pom)
[DEBUG] Using Wagon implementation lightweight from default mapping for
protocol http
[DEBUG] Artifact resolved
[DEBUG] Adding managed dependencies for
org.apache.maven.plugins:maven-archetype-plugin
[DEBUG] org.apache.maven.archetype:archetype-catalog:jar:2.1-SNAPSHOT
[DEBUG] org.apache.maven.archetype:archetype-descriptor:jar:2.1-SNAPSHOT
[DEBUG] org.apache.maven.archetype:archetype-registry:jar:2.1-SNAPSHOT
[DEBUG] org.apache.maven.archetype:archetype-common:jar:2.1-SNAPSHOT
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8
[DEBUG] org.apache.maven:maven-model:jar:2.0.8
[DEBUG] org.apache.maven:maven-project:jar:2.0.8
[DEBUG] org.apache.maven:maven-core:jar:2.0.8
[DEBUG] org.apache.maven.shared:maven-invoker:jar:2.0.10
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.8
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.8
[DEBUG] commons-io:commons-io:jar:1.4
[DEBUG] dom4j:dom4j:jar:1.6.1
[DEBUG] jdom:jdom:jar:1.0
[DEBUG] org.apache.velocity:velocity:jar:1.5
[DEBUG] net.sourceforge.jchardet:jchardet:jar:1.0
[DEBUG] commons-collections:commons-collections:jar:3.2.1
[DEBUG] junit:junit:jar:3.8.2:test
[DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1:test
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:test
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Skipping disabled repository central
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[INFO] Cannot find mojo descriptor for:
'org.apache.maven.plugins:maven-archetype-plugin:2.1-SNAPSHOT:generate'
- Treating as non-aggregator.
[DEBUG]
org.apache.maven.plugin.PluginNotFoundException: Plugin could not be
found - check that the goal name is correct: 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=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:253)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at
org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:212)
... 18 more
[DEBUG] Wagons could not be registered as the extension container was
never created
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment:
[org.apache.maven.plugins:maven-archetype-plugin:2.1-SNAPSHOT:generate]
[INFO]
------------------------------------------------------------------------
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Skipping disabled repository central
[DEBUG] Using mirror:
http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot (id:
local.artifactory)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found -
check that the goal name is correct: 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=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: A required plugin was not found:
Plugin could not be found - check that the goal name is correct: 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=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginNotFoundException: Plugin could
not be found - check that the goal name is correct: 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=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-archetype-plugin -Dversion=2.1-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.1-SNAPSHOT
from the specified remote repositories:
local.artifactory
(http://tstlnxrepo.datacenter:8180/artifactory/test-snapshot)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:253)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at
org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:568)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
... 15 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:212)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Apr 20 09:36:56 GMT-03:00 2011
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
[1] http://svn.apache.org/repos/asf/maven/archetype/trunk/
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users