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.

eholsinger (2) [Avatar] Offline
#1
Just bought the book and downloaded the source, while going through the install, I encountered ...

[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Compilation failure

CsmilieOJOs in Actionpia-1.0-SNAPSHOTpia-ch-13-offline-locking-hibernatesrc estjava
etchrisrichardsonfoodToGochapter13 estsChapter1
3OfflineLockingHibernateAllTests.java:[30,30] cannot find symbol
symbol : variable ModifyOrderServiceSpringHibernateAllTests
location: class net.chrisrichardson.foodToGo.chapter13.tests.Chapter13OfflineLockingHibernateAllTests

CsmilieOJOs in Actionpia-1.0-SNAPSHOTpia-ch-13-offline-locking-hibernatesrc estjava
etchrisrichardsonfoodToGoacknowledgeOrderService\r
hibernateHibernateAcknowledgeOrderServiceAllTests.java:[29,46] cannot find symbol
symbol : class SpringHibernateDetachingAcknowledgeOrderServiceTests
location: class net.chrisrichardson.foodToGo.acknowledgeOrderService.hibernate.HibernateAcknowledgeOrderServiceAllTests

CsmilieOJOs in Actionpia-1.0-SNAPSHOTpia-ch-13-offline-locking-hibernatesrc estjava
etchrisrichardsonfoodToGoacknowledgeOrderService\r
hibernateHibernateAcknowledgeOrderServiceAllTests.java:[31,46] cannot find symbol
symbol : class SpringHibernateDetachingAcknowledgeOrderServiceWithLockTests
location: class net.chrisrichardson.foodToGo.acknowledgeOrderService.hibernate.HibernateAcknowledgeOrderServiceAllTests

Is this a known issue? Am I just missing a jar or something?
eholsinger (2) [Avatar] Offline
#2
Re: mvn install fails on ch 13
Here is a little more information

[INFO] ----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:552)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:429)
at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:9smilie
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
... 16 more
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 2 minutes 32 seconds
[INFO] Finished at: Sat Mar 04 08:34:35 EST 2006
[INFO] Final Memory: 36M/64M
[INFO] ----------------------------------------------------------------------------

I'm using Maven 2.0.2 and Java 1.5.0_06-b05
ceracm (113) [Avatar] Offline
#3
Re: mvn install fails on ch 13
Everything should compile without a problem.
I downloaded the 20060114 zip - "mvn install" completed successfully.
I assume that's the same command you used.

I am not sure what the problem is.
Does ModifyOrderServiceSpringHibernateAllTests.java exist?

What OS are you running on?

Chris