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.

Elvin Hau (1) [Avatar] Offline
#1
I am new to maven. I purchased the book and downloaded the 'crichardson_src_20060114.zip' file. Next, I have both environment variable configure 'JAVA_HOME' and 'M2_HOME'. However, when I try to run 'mvn install', errors appears half-way and terminated. I do the same on a different pc, the same problem still occur. Can someone please give me a hint if I miss out any step ?


C:pia-1.0-SNAPSHOT>mvn --version
Maven version: 2.0.4

C:pia-1.0-SNAPSHOT>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

C:pia-1.0-SNAPSHOT>mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] POJOs in Action
[INFO] POJOs In Action - Util
[INFO] POJOs in Action - Utils Spring
[INFO] POJOs in Action - shared spring hibernate
[INFO] POJOs in Action - Chapters 4 and 6, ORMUnit for Hibernate
[INFO] POJOs in Action - Chapter 1, Hibernate Banking Example
[INFO] POJOs in Action - Chapter 3, Domain model
[INFO] POJOs in Action - Chapter 9, ORMUnit for iBATIS
[INFO] POJOs in Action - Chapter 13, iBATIS Lock Manager
[INFO] POJOs in Action - Chapter 6, Hibernate domain model
[INFO] POJOs in Action - chapter 7, POJO facade
[INFO] POJOs in Action - Chapter 7, POJO facade, Hibernate
[INFO] POJOs in Action - Chapter 8, Exposed Hibernate Web Application
[INFO] POJOs in Action - shared spring ibatis
[INFO] POJOs in Action - Chapter 9, Transaction Script examples
[INFO] POJOs in Action - Chapter 11, Dynamic queries domain model
[INFO] POJOs in Action - Chapter 11, Hibernate Dynamic Paged Queries
[INFO] POJOs in Action - Chapter 11, Dynamic queries, iBATIS
[INFO] POJOs in Action - Chapter 12, Concurrency, domain model
[INFO] POJOs in Action - Chapter 12, Hibernate concurrency
[INFO] POJOs in Action - Chapter 12, Concurrency, transaction script
[INFO] POJOs in Action - Chapter 13, Offline locking, domain model
[INFO] POJOs in Action - Chapter 13, Hibernate Offline Locking
[INFO] -------------------------------------------------------------------------
---
[INFO] Building POJOs in Action
[INFO] task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for updates
from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0-beta-5/maven-site-plugin-2.0-beta-5.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0-beta-5/maven-site-plugin-2.0-beta-5.jar
52K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0/m
aven-settings-2.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/c
lassworlds-1.1-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
145b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/mave
n-model-2.0.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.2
/maven-artifact-2.0.2.pom
765b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.2/maven-2.
0.2.pom
12K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.pom
767b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plex
us-1.0.4.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/j
etty-6.0.0beta12.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/project/6.0.0beta12
/project-6.0.0beta12.pom
7K downloaded
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0
.0beta12/servlet-api-2.5-6.0.0beta12.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-site-ren
derer/1.0-alpha-8/doxia-site-renderer-1.0-alpha-8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alph
a-8/doxia-1.0-alpha-8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-i18n/1.0-b
eta-6/plexus-i18n-1.0-beta-6.pom
771b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.4/plexus-components-1.1.4.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.pom
976b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.5/plexus-components-1.1.5.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plex
us-1.0.5.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.po
m
2K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/2.0/commons-collections-2.0.pom
171b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-core/1.0
-alpha-8/doxia-core-1.0-alpha-8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.pom
141b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-sink-api
/1.0-alpha-8/doxia-sink-api-1.0-alpha-8.pom
424b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-decorati
on-model/1.0-alpha-8/doxia-decoration-model-1.0-alpha-8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting-api/2.0.2/maven-reporting-api-2.0.2.pom
902b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting/2.0.2/maven-reporting-2.0.2.pom
738b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-sink-api
/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom
424b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alph
a-7/doxia-1.0-alpha-7.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0/ma
ven-project-2.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/m
aven-artifact-2.0.pom
723b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-met
adata/2.0/maven-repository-metadata-2.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0/ma
ven-profile-2.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
/maven-plugin-api-2.0.pom
601b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-i18n/1.0-b
eta-6/plexus-i18n-1.0-beta-6.jar
11K downloaded
Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0
.0beta12.jar
[WARNING] Unable to get resource from repository codehaus (http://dist.codehaus.
org)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.0
.0beta12/servlet-api-2.5-6.0.0beta12.jar
157K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-core/1.0
-alpha-8/doxia-core-1.0-alpha-8.jar
199K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-site-ren
derer/1.0-alpha-8/doxia-site-renderer-1.0-alpha-8.jar
33K downloaded
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.0.0beta12/j
etty-6.0.0beta12.jar
463K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.jar
7K downloaded
Downloading: http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.jar
63K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.jar
505K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-decorati
on-model/1.0-alpha-8/doxia-decoration-model-1.0-alpha-8.jar
39K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/2.0/commons-collections-2.0.jar
88K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.ja
r
352K downloaded
[INFO] [site:attach-descriptor]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error parsing site descriptor

Embedded error: expected START_TAG or END_TAG not TEXT (position: TEXT seen ...=
"By module" href="byModule.html" />
</menu>

...
</... @34 >
:5)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 minutes 10 seconds
[INFO] Finished at: Tue Jun 13 22:12:22 SGT 2006
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------

C:pia-1.0-SNAPSHOT>
ceracm (113) [Avatar] Offline
#2
Re: mvn install error .. ?
Sorry for the delay in replying.

There is a typo in the file src/site/site.xml that was ignored by old versions of maven/maven plugins.

Line 33 consists of "..." - delete that line and things should build without a problem.

Sorry about that. I will post a new zip shortly.

Chris
DGadd (24) [Avatar] Offline
#3
Re: mvn install error .. ?
Hi,

I just downloaded the zip yesterday from the manning page for the book and encountered this same error. I have now fixed it.

Is it possible the code zip was updated at pojosinaction.com but not on the manning website?

Cheers,

David Gadd
Vancouver, BC