Maven can't find jar file

208 views
Skip to first unread message

Lee

unread,
Apr 6, 2012, 3:20:33 PM4/6/12
to brix-cms-discuss
Hello:
I have got the demo to run.
I'm trying to get the project into eclipse. When I run this:

mvn eclipse:eclipse -DdownloadSources=true

it runs until here about here....

[INFO] Building Unnamed - org.brixcms:brix-jackrabbit-testdeps:jar:
1.3.0-SNAPSHOT
[INFO] task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [enforcer:enforce {execution: enforce-maven}]
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Using source status cache: /home/lchalupa/workspace/brix/target/
mvn-eclipse-cache.properties
Downloading: http://184.187.8.248:8081/nexus/content/groups/public/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2-sources.jar
[INFO] Unable to find resource 'commons-dbcp:commons-dbcp:java-
source:sources:1.2.2' in repository central (http://central)
Downloading: http://184.187.8.248:8081/nexus/content/groups/public/org/apache/derby/derby/10.5.3.0_1/derby-10.5.3.0_1-sources.jar
[INFO] Unable to find resource 'org.apache.derby:derby:java-
source:sources:10.5.3.0_1' in repository central (http://central)
Downloading: http://184.187.8.248:8081/nexus/content/groups/public/commons-codec/commons-codec/1.2/commons-codec-1.2-sources.jar
[INFO] Unable to find resource 'commons-codec:commons-codec:java-
source:sources:1.2' in repository central (http://central)
[INFO] File /home/lchalupa/workspace/brix/brix-jackrabbit-
testdeps/.project already exists.
Additional settings will be preserved, run mvn eclipse:clean if
you want old settings to be removed.
[INFO] Wrote Eclipse project for "brix-jackrabbit-testdeps" to /home/
lchalupa/workspace/brix/brix-jackrabbit-testdeps.
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Brix JCR API Wrapper
[INFO] task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading:
http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/brix-jackrabbit-testdeps/1.3.0-SNAPSHOT/brix-jackrabbit-testdeps-1.3.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.brixcms:brix-jackrabbit-
testdeps:jar:1.3.0-SNAPSHOT' in repository central (http://central)
Downloading:
http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/brix-jackrabbit-testdeps/1.3.0-SNAPSHOT/brix-jackrabbit-testdeps-1.3.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.brixcms:brix-jackrabbit-
testdeps:jar:1.3.0-SNAPSHOT' in repository apache-snapshots (https://
repository.apache.org/content/repositories/snapshots)
Downloading:
http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/brix-jackrabbit-testdeps/1.3.0-SNAPSHOT/brix-jackrabbit-testdeps-1.3.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.brixcms:brix-jackrabbit-
testdeps:jar:1.3.0-SNAPSHOT' in repository sonatype-nexus-snapshots
(https://oss.sonatype.org/content/repositories/snapshots)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.brixcms:brix-jackrabbit-testdeps:jar:1.3.0-SNAPSHOT

Try downloading the file manually from the project website.

************ end of listing *****************

It looks to me like it finds the directory but there is no jar at the
location.

Anyone have any ideas?

Thanks

Korbinian

unread,
Apr 7, 2012, 8:37:29 AM4/7/12
to brix-cms-discuss
Hello Lee,

I'm no eclipse guru, but IMHO eclipse has problems with resolving the
maven pom's. It would need to create the jars itself, but seems to
fail. You could do a

"mvn clean install" on command line first, and then hope it pulls the
one from your "installed" dir - that may work.

Best,

Korbinian


On 6 Apr., 21:20, Lee <lee.chal...@gmail.com> wrote:
> Hello:
> I have got the demo to run.
> I'm trying to get the project into eclipse. When I run this:
>
>  mvn eclipse:eclipse -DdownloadSources=true
>
> it runs until here about here....
>
> [INFO] Building Unnamed - org.brixcms:brix-jackrabbit-testdeps:jar:
> 1.3.0-SNAPSHOT
> [INFO]    task-segment: [eclipse:eclipse]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> [INFO] [enforcer:enforce {execution: enforce-maven}]
> [INFO] [eclipse:eclipse {execution: default-cli}]
> [INFO] Using source status cache: /home/lchalupa/workspace/brix/target/
> mvn-eclipse-cache.properties
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/commons-dbcp/co...
> [INFO] Unable to find resource 'commons-dbcp:commons-dbcp:java-
> source:sources:1.2.2' in repository central (http://central)
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/org/apache/derb...
> [INFO] Unable to find resource 'org.apache.derby:derby:java-
> source:sources:10.5.3.0_1' in repository central (http://central)
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/commons-codec/c...
> [INFO] Unable to find resource 'commons-codec:commons-codec:java-
> source:sources:1.2' in repository central (http://central)
> [INFO] File /home/lchalupa/workspace/brix/brix-jackrabbit-
> testdeps/.project already exists.
>        Additional settings will be preserved, run mvn eclipse:clean if
> you want old settings to be removed.
> [INFO] Wrote Eclipse project for "brix-jackrabbit-testdeps" to /home/
> lchalupa/workspace/brix/brix-jackrabbit-testdeps.
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Brix JCR API Wrapper
> [INFO]    task-segment: [eclipse:eclipse]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/bri...
> [INFO] Unable to find resource 'org.brixcms:brix-jackrabbit-
> testdeps:jar:1.3.0-SNAPSHOT' in repository central (http://central)
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/bri...
> [INFO] Unable to find resource 'org.brixcms:brix-jackrabbit-
> testdeps:jar:1.3.0-SNAPSHOT' in repository apache-snapshots (https://
> repository.apache.org/content/repositories/snapshots)
> Downloading:http://184.187.8.248:8081/nexus/content/groups/public/org/brixcms/bri...

Zsombor

unread,
Apr 7, 2012, 8:40:47 AM4/7/12
to brix-cms...@googlegroups.com
It seems, that you are using nexus, to intercept all the maven downloads, and you probably haven't added all the required repositories to nexus. So either, disable nexus, run a clean maven build, to download everything, or you should add a repository which contains the missing dependencies to your nexus server.

BR
 Zsombor


--
You received this message because you are subscribed to the Google Groups "brix-cms-discuss" group.
To post to this group, send email to brix-cms...@googlegroups.com.
To unsubscribe from this group, send email to brix-cms-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/brix-cms-discuss?hl=en.


Reply all
Reply to author
Forward
0 new messages