The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

walrus (14) [Avatar] Offline
#1
Following instructions in book from Appendix A at "A.2.1 Downloading the Travel application",
after command . . .

mvn

I ultimately receive . . .

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
org.codehaus.classworlds.NoSuchRealmException: plexus.core
at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:12smilie
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Anybody have any idea on this?

I'm able to run and build Tuscany samples from the Tuscany site from both the command line and Eclipse. So, up to this point everything seems fine.

I'm using . . .

linux ubuntu 9.10 64bit
java '1.6.0_15'
maven2 '2.2.2-1'
tuscany-sca-1.6

more complete message received . . .

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA Tours Payment Groovy Contribution
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [build-helper:add-source {execution: add-source}]
[INFO] Source directory: /home/jack/tuscany-scatours-1.0-SNAPSHOT-src/contributions/payment-groovy/target/jaxws-source added.
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-script:1.6-SNAPSHOT: checking for updates from apache.snapshot
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-script:1.6-SNAPSHOT: checking for updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-extension-helper:1.6-SNAPSHOT: checking for updates from apache.snapshot
[INFO] snapshot org.apache.tuscany.sca:tuscany-extension-helper:1.6-SNAPSHOT: checking for updates from apache.snapshots
Downloading: http://repo2.maven.org/maven2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository maven.central (http://repo2.maven.org/maven2)
Downloading: http://download.java.net/maven/1/org.jruby/poms/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository java.net (http://download.java.net/maven/1)
Downloading: http://download.java.net/maven/2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository java.net2 (http://download.java.net/maven/2)
Downloading: http://people.apache.org/repo/m2-incubating-repository/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository apache.incubator (http://people.apache.org/repo/m2-incubating-repository)
Downloading: http://ws.zones.apache.org/repository2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository apache.ws.zone (http://ws.zones.apache.org/repository2)
Downloading: http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository indiana (http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/)
Downloading: http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository osuosl.org (http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2)
Downloading: http://repo1.maven.org/maven2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[INFO] Unable to find resource 'org.jruby:jruby-complete:pom:1.1.3' in repository central (http://repo1.maven.org/maven2)
[INFO] [jaxws:wsimport {execution: payment}]
[INFO] Processing: /home/jack/tuscany-scatours-1.0-SNAPSHOT-src/contributions/payment-groovy/src/main/resources/Payment.wsdl
[INFO] jaxws:wsimport args: [-s, /home/jack/tuscany-scatours-1.0-SNAPSHOT-src/contributions/payment-groovy/target/jaxws-source, -d, /home/jack/tuscany-scatours-1.0-SNAPSHOT-src/contributions/payment-groovy/target/classes, -p, com.tuscanyscatours.payment, -Xnocompile, /home/jack/tuscany-scatours-1.0-SNAPSHOT-src/contributions/payment-groovy/src/main/resources/Payment.wsdl]
parsing WSDL...


[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
org.codehaus.classworlds.NoSuchRealmException: plexus.core
at org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:12smilie
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Also, I get a lot of the "[INFO] Unable to find resource . . ." messages.
walrus (14) [Avatar] Offline
#2
Re: A.2.1 Downloading the Travel application
This problem has either been corrected or resolved on its own.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26 minutes 13 seconds
[INFO] Finished at: Sat Apr 03 13:00:04 PDT 2010
[INFO] Final Memory: 158M/378M
[INFO] ------------------------------------------------------------------------

Thanks
walrus (14) [Avatar] Offline
#3
Re: A.2.1 Downloading the Travel application
Appears that not all of the repositories are available again. It is currently failing to load all on a different machine for me.
walrus (14) [Avatar] Offline
#4
Re: A.2.1 Downloading the Travel application
mvn command continues to fail. Lots of . . .

Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/santuario/xmlsec/1.4.
1/xmlsec-1.4.1.pom
[INFO] Unable to find resource 'org.apache.santuariosmiliemlsec:pom:1.4.1' in repository apache.incubato
r (http://people.apache.org/repo/m2-incubating-repository)
Downloading: http://ws.zones.apache.org/repository2/org/apache/santuario/xmlsec/1.4.1/xmlsec-1.4.1.p
om
simon.nash (37) [Avatar] Offline
#5
Re: A.2.1 Downloading the Travel application
I see these messages as well. They are annoying but they don't stop the build from working. I normally build with "mvn -o" to avoid them. There must be a proper fix but I don't have enough deep Maven skills to figure out what it is.
walrus (14) [Avatar] Offline
#6
Re: A.2.1 Downloading the Travel application
Thank you for replying Simon.

Today, I tried again and it completed successfully. In the future, if I have this same issue, I will utilize your suggestion and build with "mvn -o".

Thanks again.
walrus (14) [Avatar] Offline
#7
Re: A.2.1 Downloading the Travel application
My latest attempt succeeded. I guess you just have to periodically retry.