I have attached log excerpts.

I should note that I am starting my build with an empty Artifactory 2.3.2 and 
an empty .m2, to cause everything to get pulled down, so that everything gets 
populated (this artifactory will become our production install – our current 
one runs version 1.2.5!). When I do that with maven2, it works. When I do it 
with maven3, it fails on this particular artifact, which apparently is NOT 
getting into my Artifactory (just the directory tree up to it). From looking at 
the logs, I suspect there is something wrong with the artifact’s pom file which 
maven2 apparently can cope with, but maven3 chokes on. That’s just my guess 
anyway. I’ll leave it to you experts to tell me. ☺

Thank you, in advance, for your time and help. I’m reading and learning, as 
fast as I can, about both Artifactory and Maven. With any luck, I won’t remain 
clueless long. ☺

-ste

From: Yoav Landman [mailto:[email protected]]
Sent: Friday, March 04, 2011 5:27 PM
To: [email protected]
Subject: Re: [Artifactory-users] plugin dependency exists, but not found

Hi,

Can you attach the log from your Maven 3 build that includes the Maven requests 
for the unfound dependency?
Do you manage to download it from a browser by specifying the same URL?

On Fri, Mar 4, 2011 at 10:58 PM, 
<[email protected]<mailto:[email protected]>> wrote:
My end-users (I’m their SysAdmin) are trying to move from Maven2 to Maven3.


A plugin that builds fine under maven2 can't find a dependency under maven3, 
yet I see it cached under repo1-cache where it's always been. Maven3 only 
appears to look in:



plugins-release

plugins-snapshot

plugins-release-local
plugins-snapshot-local

That it only looks there, makes sense, as I’ve read on the maven list that:


> In Maven 3, dependencies for plugins are only retrieved from

> pluginRepositories. This was not the case in Maven 2.

What I don’t understand is why the artifact isn’t found, as both the 
plugins-release and plugins-snapshot virtual repositories include the 
remote-repos virtual repository, and it includes the remote repository repo1.

Please forgive my newbie questions – I only started dealing with Artifactory 
(2.3.2) and Maven (2.2.1 & now 3.0.2) four days ago or so. ☺

This works fine with Maven2, so I assume I need to tweak my Artifactory 
configuration to make Maven3 happy, somehow …

-ste

________________________________
This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Artifactory-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/artifactory-users


From my build log:

...
Downloading: 
http://vm-svn2.navisys.com:8081/artifactory/plugins-release/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom
Downloading: 
http://vm-svn2.navisys.com:8081/artifactory/plugins-snapshot/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom
Downloading: 
http://vm-svn2.navisys.com:8081/artifactory/plugins-release-local/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom
Downloading: 
http://vm-svn2.navisys.com:8081/artifactory/plugins-snapshot-local/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom
...
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-shade-plugin:1.4:shade (package-composite-jar) 
on project maven-nep-orchestrator-plugin: Execution package-composite-jar of 
goal org.apache.maven.plugins:maven-shade-plugin:1.4:shade failed: Plugin 
org.apache.maven.plugins:maven-shade-plugin:1.4 or one of its dependencies 
could not be resolved: Failed to collect dependencies for 
org.apache.maven.plugins:maven-shade-plugin:jar:1.4 (): Failed to read artifact 
descriptor for org.apache.commons:commons-io:jar:1.3.2: Could not transfer 
artifact org.apache.commons:commons-io:pom:1.3.2 from/to 
alip-artifactory-plugins-snapshots 
(http://vm-svn2.navisys.com:8081/artifactory/plugins-snapshot-local): Error 
transferring file: Server returned HTTP response code: 409 for URL: 
http://vm-svn2.navisys.com:8081/artifactory/plugins-snapshot-local/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom
 -> [Help 1]

From artifactory.log:

2011-03-04 17:22:54,147 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'...
2011-03-04 17:22:54,249 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.sha1'...
2011-03-04 17:22:54,250 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.sha1'
 with return code: 200.
2011-03-04 17:22:54,910 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.md5'...
2011-03-04 17:22:54,911 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.md5'
 with return code: 200.
2011-03-04 17:22:54,914 [pool-1-thread-20] [WARN ] 
(o.a.r.j.StoringRepoMixin:627) - IO error while trying to save resource 
repo1:org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'': The target 
deployment path 'org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom' does 
not match the POM's expected path prefix 'commons-io/commons-io/1.3.2'. Please 
verify your POM content for correctness and make sure the source path is a 
valid Maven repository root path.
2011-03-04 17:22:54,915 [pool-1-thread-20] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'
 with return code: 200.
2011-03-04 17:22:54,915 [pool-1-thread-20] [ERROR] 
(o.a.r.v.i.PomInterceptor:77) - Failed to transform pom file:The target 
deployment path 'org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom' does 
not match the POM's expected path prefix 'commons-io/commons-io/1.3.2'. Please 
verify your POM content for correctness and make sure the source path is a 
valid Maven repository root path.
2011-03-04 17:22:55,863 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'...
2011-03-04 17:22:55,916 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.sha1'...
2011-03-04 17:22:55,917 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.sha1'
 with return code: 200.
2011-03-04 17:22:56,745 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :196) - 
repo1: Downloading content from 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.md5'...
2011-03-04 17:22:56,746 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom.md5'
 with return code: 200.
2011-03-04 17:22:56,749 [pool-1-thread-11] [WARN ] 
(o.a.r.j.StoringRepoMixin:627) - IO error while trying to save resource 
repo1:org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'': The target 
deployment path 'org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom' does 
not match the POM's expected path prefix 'commons-io/commons-io/1.3.2'. Please 
verify your POM content for correctness and make sure the source path is a 
valid Maven repository root path.
2011-03-04 17:22:56,750 [pool-1-thread-11] [INFO ] (o.a.r.HttpRepo :214) - 
repo1: Downloaded 
'http://repo1.maven.org/maven2/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'
 with return code: 200.
2011-03-04 17:22:56,751 [pool-1-thread-11] [ERROR] 
(o.a.r.v.i.PomInterceptor:77) - Failed to transform pom file:The target 
deployment path 'org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom' does 
not match the POM's expected path prefix 'commons-io/commons-io/1.3.2'. Please 
verify your POM content for correctness and make sure the source path is a 
valid Maven repository root path.
2011-03-04 17:22:56,771 [pool-1-thread-22] [WARN ] 
(o.a.e.DownloadServiceImpl:323) - Sending HTTP error code 409: The repository 
'plugins-snapshot-local' rejected the artifact 
'plugins-snapshot-local:org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.pom'
 due to its snapshot/release handling policy..
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to