Hi Tomer!
Thanks for advice!
Unfortunately the dependency is a transitive one, out of my reach.
I could only trick it with exclude + extra dependency, which could break the
consistency on long run.
I checked the "Suppress POM Consistency Checks" without a success. Accessing
it from browser (
http://maven/repo/org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom)
produces (excerpt):
----------------- cut -----------------
java.lang.RuntimeException: Failed to save resource
'xwiki-externals:org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom'.
org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:469)
...
org.artifactory.api.repo.exception.RepositoryRuntimeException: Could
not create file node resource at
'/repositories/xwiki-externals-cache/org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom'.
org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:145)
...
javax.jcr.RepositoryException: Could not store POM file.: The target
deployment path
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom'
does not match the POM's expected path prefix
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419-xwiki'. Please
verify your POM content for correctness and make sure the source path
is a valid Maven 2 repository root path.: The target deployment path
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom'
does not match the POM's expected path prefix
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419-xwiki'. Please
verify your POM content for correctness and make sure the source path
is a valid Maven 2 repository root path.
org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:531)
...
org.artifactory.api.repo.exception.maven.BadPomException: The target
deployment path
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom'
does not match the POM's expected path prefix
'org/codehaus/swizzle/swizzle-confluence/1.2-20080419-xwiki'. Please
verify your POM content for correctness and make sure the source path
is a valid Maven 2 repository root path.
org.artifactory.maven.MavenModelUtils.validatePomTargetPath(MavenModelUtils.java:94)
...
----------------- cut -----------------
I try to exclude+extra dep. as a workaround.
Regards,
Lóránd Somogyi
http://lorands.com
http://photols.com
On Thu, Oct 22, 2009 at 9:51 AM, tomerc <[email protected]> wrote:
>
> Hi Lóránd
>
> I checked the error that you were getting.
> The problem arises from a bad path prefix.
> Artifactory checks for pom consistency and blocks out bad poms.
>
> You can use the "Suppress POM Consistency Checks" in the remote repository
> panel.
> THIS IS HIGHLY NOT RECOMMENDED
>
> The best way would be to re-deploy the artifact to your own instance of
> Artifactory.
>
> Tomer Cohen
> JFrog
>
>
> Lorand wrote:
> >
> > Hi!
> >
> > I have the next error from maven (within Hudson):
> >
> > -------------------------------------------------------------------------
> > cut
> > -------------------------------------------------------------------------
> >
> >
> > Downloading:
> >
> http://maven/repo/org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom
> >
> > [WARNING] Unable to get resource
> > 'org.codehaus.swizzle:swizzle-confluence:pom:1.2-20080419' from
> > repository central (http://maven/repo):
> > Failed to transfer file:
> >
> http://maven/repo/org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom
> .
> >
> > Return code is: 500
> >
> > -------------------------------------------------------------------------
> > cut
> > -------------------------------------------------------------------------
> >
> > When in Artifactory log I see:
> > -------------------------------------------------------------------------
> > cut
> > -------------------------------------------------------------------------
> > 2009-10-21 10:54:58,990 [TP-Processor21] [WARN ]
> > (o.a.c.h.HttpMethodDirector:288) - Required credentials not available for
> > BASIC <any realm>@maven.xwiki.org:80
> > 2009-10-21 10:54:58,991 [TP-Processor21] [WARN ]
> > (o.a.c.h.HttpMethodDirector:290) - Preemptive authentication requested
> but
> > no default credentials available
> > 2009-10-21 10:54:59,033 [TP-Processor21] [INFO ] (o.a.r.HttpRepo
> > :224)
> > - xwiki-externals: Retrieving '
> >
> http://maven.xwiki.org/externals//org/codehaus/swizzle/swizzle-confluence/1.2-20080419/swizzle-confluence-1.2-20080419.pom.md5
> '.
> > ..
> > -------------------------------------------------------------------------
> > cut
> > -------------------------------------------------------------------------
> >
> > xwiki-externals points to: http://maven.xwiki.org/externals/
> > (handles snapshot and releases)
> >
> >>From UI: there is artifact fetched into xwiki-externals, just a path:
> > org/codehaus/swizzle/swizzle-confluence/1.2-20080419
> >
> > The strange is I get no exception in artifactory.log at all.
> >
> > How can I resolve this?
> >
> > Regards,
> >
> > Lóránd Somogyi
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Artifactory-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/artifactory-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/artifact-requested-through-remote-repository-failing-with-500-tp25988950p26006276.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users