Side note, I use following command to detect artifacts broken this way in a repo:
grep -cisRI -m 1 "^<head>$" . 2>&1 | grep ":1" would return false positives for artifacts that really are html page, but that should be pretty uncommon. J. 2012/8/24 Fernando Ferreira <[email protected]>: > Thank you both! > > I found another one broken at > http://nexus.xwiki.org/nexus/content/groups/public/uk/ac/ed/ph/snuggletex/snuggletex-jeuclid/1.1.0/snuggletex-jeuclid-1.1.0.pom > . > > Also, I could get past building this by deleting the artifacts from my > local repository and adding snuggletex's repository to my settings.xml: > > <repository> > <id>www2.ph.ed.ac.uk-releases</id> > <url>http://www2.ph.ed.ac.uk/maven2</url> > </repository> > > Thanks again, > Fernando > > On Wed, Aug 22, 2012 at 12:49 PM, Sergiu Dumitriu <[email protected]> wrote: > >> On 08/22/2012 07:47 AM, Jeremie BOUSQUET wrote: >> >>> hello, >>> >>> not an answer for you sorry, but an advice for xwiki nexus config: you >>> should set "File content Validation" option on all proxy repositories >>> in Nexus IMHO. Happened to me recently, and the result is not nice. >>> >> >> Yes, I did that a few days ago when I noticed another broken jar. >> >> >> you could try adding the restlet repo before xwiki repo, and also >>> clear locally cached artifacts. >>> >> >> A different order might still break when another repo has problems. >> >> >> To solve that on nexus side would need to remove corrupted artifacts >>> and expire cache (or maybe only expire cache ?). >>> >> >> Expire cache didn't seem to fix it, I also removed the broken artifacts >> that I could find. >> >> >> Br, >>> Jeremie >>> >>> >>> 2012/8/22 Fernando Ferreira <[email protected]>: >>> >>>> Hi all! >>>> >>>> I was trying to build XWiki from sources (xwiki-commons) with a fresh new >>>> Maven installation (empty local repository) and found a problem with the >>>> * >>>> org.restlet.ext.jaxrs* artifact (2.0.14). >>>> >>>> This was the build error: >>>> [ERROR] Failed to execute goal >>>> org.apache.maven.plugins:**maven-compiler-plugin:2.5.1:**compile >>>> (default-compile) on project xwiki-commons-extension-**repository-xwiki: >>>> Compilation failure: Compilation failure: >>>> [ERROR] >>>> /data/Repository/XWiki/xwiki-**commons/xwiki-commons-core/** >>>> xwiki-commons-extension/xwiki-**commons-extension-** >>>> repositories/xwiki-commons-**extension-repository-xwiki/** >>>> src/main/java/org/xwiki/**extension/repository/xwiki/**internal/** >>>> XWikiExtensionRepository.java:**[38,23] >>>> package org.restlet.data does not exist >>>> [ERROR] >>>> /data/Repository/XWiki/xwiki-**commons/xwiki-commons-core/** >>>> xwiki-commons-extension/xwiki-**commons-extension-** >>>> repositories/xwiki-commons-**extension-repository-xwiki/** >>>> src/main/java/org/xwiki/**extension/repository/xwiki/**internal/** >>>> XWikiExtensionRepository.java:**[116,47] >>>> package MediaType does not exist >>>> >>>> A little above it i saw this: >>>> Downloading: >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.pom<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.pom> >>>> [WARNING] Checksum validation failed, expected <!DOCTYPE but is >>>> 97d021087f5852baf8cc9deca20825**b1bf42bbaf for >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.pom<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.pom> >>>> [WARNING] Checksum validation failed, expected <!DOCTYPE but is >>>> 97d021087f5852baf8cc9deca20825**b1bf42bbaf for >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.pom<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.pom> >>>> Downloaded: >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.pom(3<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.pom%283> >>>> KB at 1.6 KB/sec) >>>> [WARNING] The POM for org.restlet.jse:org.restlet.**ext.jaxrs:jar:2.0.14 >>>> is >>>> invalid, transitive dependencies (if any) will not be available, enable >>>> debug logging for more details >>>> Downloading: >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.jar<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.jar> >>>> Downloaded: >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.jar(294<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.jar%28294> >>>> KB at 47.0 KB/sec) >>>> >>>> It seems the org.restlet's repository was down for maintenance at the >>>> time >>>> Nexus fetched the files. >>>> The POM ( >>>> http://nexus.xwiki.org/nexus/**content/groups/public/org/** >>>> restlet/jse/org.restlet.ext.**jaxrs/2.0.14/org.restlet.ext.** >>>> jaxrs-2.0.14.pom<http://nexus.xwiki.org/nexus/content/groups/public/org/restlet/jse/org.restlet.ext.jaxrs/2.0.14/org.restlet.ext.jaxrs-2.0.14.pom> >>>> ) >>>> has this inside: >>>> You caught us doing a little maintenance. We're sorry that you can't >>>> access your community right now. >>>> ... >>>> >>>> With a problem like this, would something like adding the org.restlet's >>>> repository to my settings.xml do the work? >>>> I'm in no hurry anyway, i can wait for the repository... ;) >>>> >>>> If there's anything else i can do, just drop me a message! >>>> >>>> Thanks, >>>> >>> >> >> -- >> Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> >> ______________________________**_________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/**mailman/listinfo/devs<http://lists.xwiki.org/mailman/listinfo/devs> >> > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

