Maven Issues for v4.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven Issues for v4.0

goffinf
First it seemed unusually difficult to successfully download the set of dependencies for version 4 from Maven Central per the docs :-

From POM :-

                <dependency>
                    <groupId>com.cognifide.slice</groupId>
                    <artifactId>slice-core</artifactId>
                    <version>4.0.0</version>
                </dependency>
               
                <dependency>
                    <groupId>com.cognifide.slice</groupId>
                    <artifactId>slice-mapper</artifactId>
                    <version>4.0.0</version>
                </dependency>
               
                <dependency>
                    <groupId>com.cognifide.slice</groupId>
                    <artifactId>slice-core-api</artifactId>
                    <version>4.0.0</version>
                </dependency>

                <dependency>
                    <groupId>com.cognifide.slice</groupId>
                    <artifactId>slice-mapper-api</artifactId>
                    <version>4.0.0</version>
                </dependency>

Eventually I managed to get all of the associated JARs/POM to download into the local repo, and they show up in the Maven dependencies. HOWEVER ... I now also have bunch of errors. If I remove the slice dependencies, they all disappear. Are there other dependencies that also need to be included ?

To keep things simple I removed ALL other dependencies from this module (leaving just the Slice ones) and this is what is reported in the 'Problems' view :

ArtifactDescriptorException: Failed to read artifact descriptor for javax.inject:com.springsource.javax.inject:jar:1.0.0: ArtifactResolutionException: Failure to transfer javax.inject:com.springsource.javax.inject:pom:1.0.0 from http://repo.adobe.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of adobe-public-releases has elapsed or updates are forced. Original error: Could not transfer artifact javax.inject:com.springsource.javax.inject:pom:1.0.0 from/to adobe-public-releases (http://repo.adobe.com/nexus/content/groups/public): null to http://repo.adobe.com/nexus/content/groups/public/javax/inject/com.springsource.javax.inject/1.0.0/com.springsource.javax.inject-1.0.0.pom        pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact com.cognifide.slice:slice-core:jar:4.0.0 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact com.google.inject:guice:jar:3.0 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact org.ops4j:peaberry:jar:1.1.1 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact com.cognifide.slice:slice-mapper:jar:4.0.0 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact com.cognifide.slice:slice-core-api:jar:4.0.0 pom.xml /di-google-guice line 1 Maven Dependency Problem
Missing artifact com.cognifide.slice:slice-mapper-api:jar:4.0.0 pom.xml /di-google-guice line 1 Maven Dependency Problem

Kind Regards

Fraser.
Reply | Threaded
Open this post in threaded view
|

Re: Maven Issues for v4.0

CptBartender
Hi Fraser,

I've deleted my local Maven repository and Maven's settings.xml, generated a new Maven project and added just those four dependencies you've mentioned and a simple Maven install goes without any problems - maybe there is a problem with something else in your local repository, or some other unusual configuration?

Regarding this:
    Failure to transfer javax.inject:com.springsource.javax.inject:pom:1.0.0 from http://repo.adobe.com/nexus/content/groups/public
What Maven repositories are you using? It looks like Maven is trying to contact only Adobe ones.

To answer your question, no, Slice does not require any additional dependencies.

Regards,
FW