qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Conway <acon...@redhat.com>
Subject [java][dumb question] How do you build the qpid java tree?
Date Mon, 23 Jun 2014 18:52:54 GMT
So I found
 https://cwiki.apache.org/confluence/display/qpid/Qpid+Java+Build+How+To
(a README would be nice, I will to write one when I figure this out.)

My Java and Maven versions are good:

[aconway@gonzo java (trunk *%)]$ java -version
java version "1.7.0_55"
[aconway@gonzo java (trunk *%)]$ mvn --version
Apache Maven 3.1.1 (NON-ClsANONICAL_2013-11-08_14-32_mockbuild; 

I went to the top level qpid/java direcotry and did:

  mvn compile

Which compiled a bunch of stuff and then stopped with:

[ERROR] Failed to execute goal on project
qpid-broker-plugins-access-control: Could not resolve dependencies for
project
org.apache.qpid:qpid-broker-plugins-access-control:jar:0.30-SNAPSHOT:
Failure to find org.apache.qpid:qpid-broker-core:jar:tests:0.30-SNAPSHOT
in http://repository.apache.org/snapshots was cached in the local
repository, resolution will not be reattempted until the update interval
of apache.snapshots has elapsed or updates are forced -> [Help 1]

I really only need the client and it says the projects have indepenent
POMS, so I tried 
  cd client; mvn compile

That gave me:

mvn compile
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building Qpid AMQP 0-x JMS Client 0.30-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for org.apache.qpid:qpid-test-utils:jar:0.30-SNAPSHOT
is missing, no dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.526s
[INFO] Finished at: Mon Jun 23 14:23:49 EDT 2014
[INFO] Final Memory: 6M/107M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project qpid-client: Could not resolve
dependencies for project org.apache.qpid:qpid-client:jar:0.30-SNAPSHOT:
Failure to find org.apache.qpid:qpid-test-utils:jar:0.30-SNAPSHOT in
http://repository.apache.org/snapshots was cached in the local
repository, resolution will not be reattempted until the update interval
of apache.snapshots has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I tried "rm -rf ~/.m2" but that just did more downloading before falling
over as before.

I followed the "help" link which suggested maybe some network problem
connecting to the repository. I was able to open this in my browser:

http://repository.apache.org/content/groups/snapshots/org/apache/qpid/qpid-broker-plugins-access-control/0.30-SNAPSHOT/

There's a bunch of substitutions of / for . etc. but that sure looks
like the resource maven says it can't download. So I don't think I have
a network problem.

Please, just tell me how to make it work!!! And then please put it in a
README in the top level Java directory so others can learn too!!

[ARRGH! I swore there would be no maven-baiting in this email but I am
weak!!! Please don't read what follows: I think  it's great that maven
can find dependencies for us. I think it's totally insane that maven
refuses to build source code that _I have checked out locally_ because
it can't download a pre-compiled snapshot _of source code that *I have
checked out locally*_!!!]


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message