Problems resolving some jackrabbit components from maven central [message #487161] |
Tue, 22 September 2009 08:36 |
Johannes Utzig Messages: 329 Registered: July 2009 |
Senior Member |
|
|
Hi,
I'm having some issues with projects that have dependencies to apache
jackrabbit components. I am trying to fetch them from the central maven
repository. Now I'm not sure if the jackrabbit artifacts in the maven
repo are really broken, or if this is a buckminster bug. The wrong
digest? Ok, might be, but what's with the 'CSpec
org.apache.jackrabbit/jackrabbit-spi2jcr, attribute java.binaries
already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries'?
Here's a simple query to reproduce:
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap=" http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rm ap">
<cq:rootRequest name="org.apache.jackrabbit/jackrabbit-spi2jcr"
componentType="maven"/>
</cq:componentQuery>
Here's the debug output I get:
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Using resolver rmap
Found two entries for component junit:maven. Version
raw:3.8.1.M/format(n[.n=0;[.n=0;]][d?S=M;]):3.8.1 located at
D:/Workspaces/BicMDNGnewWorkspace/.buckminster/maven2/junit/ junit/3.8.1/junit-3.8.1.jar
and version raw:3.7.0.M/format(n[.n=0;[.n=0;]][d?S=M;]):3.7 at
D:/Workspaces/BicMDNGnewWorkspace/.buckminster/maven2/junit/ junit/3.7/junit-3.7.jar
Downloading http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rm ap
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Using resource map
http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rm ap
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Using search path default
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Trying provider
eclipse.import( http://download.eclipse.org/tools/orbit/downloads/drops/S200 90426201227/updateSite?importType=binary)
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Rejecting provider
eclipse.import( http://download.eclipse.org/tools/orbit/downloads/drops/S200 90426201227/updateSite?importType=binary):
Components of type maven are not supported
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Trying provider
maven2(http://repo1.maven.org/maven2)
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Match 1.5.0#Triplet was
rejected: 1.6.0#Triplet is a better match
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Found match 1.6.0#Triplet
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Using provider
maven2(http://repo1.maven.org/maven2)
Downloading
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-spi2jcr/1.6.0/jackrabbit-spi2jcr-1.6.0.pom.md5
Downloading
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-spi2jcr/1.6.0/jackrabbit-spi2jcr-1.6.0.pom.sha1
Digest for
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-spi2jcr/1.6.0/jackrabbit-spi2jcr-1.6.0.pom
still doesn't match after 2 download attempts. Corrupt repo?
Getting POM information for parent: org.apache.jackrabbit -
jackrabbit-parent at path
org/apache/jackrabbit/jackrabbit-parent/1.6.0/jackrabbit-par ent-1.6.0.pom
Downloading
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-parent/1.6.0/jackrabbit-parent-1.6.0.pom.md5
Downloading
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-parent/1.6.0/jackrabbit-parent-1.6.0.pom.sha1
Digest for
http://repo1.maven.org/maven2/org/apache/jackrabbit/jackrabb it-parent/1.6.0/jackrabbit-parent-1.6.0.pom
still doesn't match after 2 download attempts. Corrupt repo?
Getting POM information for parent: org.apache.jackrabbit - parent at
path org/apache/jackrabbit/parent/3/parent-3.pom
Downloading
http://repo1.maven.org/maven2/org/apache/jackrabbit/parent/3 /parent-3.pom.md5
Getting POM information for parent: org.apache - apache at path
org/apache/apache/6/apache-6.pom
Downloading
http://repo1.maven.org/maven2/org/apache/apache/6/apache-6.p om.md5
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: Resolution attempt ended
with exception: CSpec org.apache.jackrabbit/jackrabbit-spi2jcr,
attribute java.binaries already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries
org.apache.jackrabbit/jackrabbit-spi2jcr:maven: No provider was found
that could resolve the request
ERROR [0001] : No suitable provider for component
org.apache.jackrabbit/jackrabbit-spi2jcr:maven was found in resourceMap
http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rm ap
ERROR [0001] : No suitable provider for component
org.apache.jackrabbit/jackrabbit-spi2jcr:maven was found in searchPath
default
ERROR [0001] : Rejecting provider
eclipse.import( http://download.eclipse.org/tools/orbit/downloads/drops/S200 90426201227/updateSite?importType=binary):
Components of type maven are not supported
ERROR [0001] : Resolution attempt ended with exception: CSpec
org.apache.jackrabbit/jackrabbit-spi2jcr, attribute java.binaries
already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries
ERROR CSpec org.apache.jackrabbit/jackrabbit-spi2jcr, attribute
java.binaries already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries
Errors and Warnings
E [0001] : No suitable provider for component
org.apache.jackrabbit/jackrabbit-spi2jcr:maven was found in resourceMap
http://www.eclipse.org/buckminster/samples/rmaps/dogfood2.rm ap
E [0001] : No suitable provider for component
org.apache.jackrabbit/jackrabbit-spi2jcr:maven was found in searchPath
default
E [0001] : Rejecting provider
eclipse.import( http://download.eclipse.org/tools/orbit/downloads/drops/S200 90426201227/updateSite?importType=binary):
Components of type maven are not supported
E [0001] : Resolution attempt ended with exception: CSpec
org.apache.jackrabbit/jackrabbit-spi2jcr, attribute java.binaries
already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries: CSpec
org.apache.jackrabbit/jackrabbit-spi2jcr, attribute java.binaries
already has a prerequisite named
org.apache.jackrabbit/jackrabbit-spi:maven#java.binaries
TAG-ID 0001 = Query for org.apache.jackrabbit/jackrabbit-spi2jcr:maven
Thanks and best regards,
Johannes
|
|
|
|
Re: Problems resolving some jackrabbit components from maven central [message #487464 is a reply to message #487428] |
Wed, 23 September 2009 10:57 |
|
Hi Johannes,
I agree, Buckminster should handle this. Please file a bugzilla.
Regards,
Thomas Hallgren
On 09/23/2009 10:47 AM, Johannes Utzig wrote:
> Ok, I investigated some more on this.
>
> This is what's causing the error in Buckminster:
>
> <dependency>
> <groupId>org.apache.jackrabbit</groupId>
> <artifactId>jackrabbit-spi</artifactId>
> <version>1.6.0</version>
> <classifier />
> </dependency>
>
> <dependency>
> <groupId>org.apache.jackrabbit</groupId>
> <artifactId>jackrabbit-spi</artifactId>
> <version>1.6.0</version>
> <classifier>tests</classifier>
> <scope>test</scope>
> </dependency>
>
>
> The dependency is declared twice, once in the compile scope and once in
> the test scope. Now I'm not an Maven expert, but from my understanding
> everything in the compile scope is automatically available in the test
> scope, so this is in deep a duplicate.
> However, if Maven can handle this, buckminster should too in my opinion.
> That also raises the question why the test scope is added to the cspec
> dependencies by default? Isn't the more common scenario that I want to
> use a maven artifact for compile- or run-time and without its test
> dependencies?
>
> Should I file a bug for this, or is it the intended behavior?
>
> Best regards,
> Johannes
|
|
|
Powered by
FUDForum. Page generated in 0.03475 seconds