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.

DaveL (1) [Avatar] Offline
#1
Hi,

I love the book, but I'm new to maven. I have trouble to run the examples both on DOS and STS.

1.

On Dos, I'm using Maven 3.0.4, Java 1.6.0_35(64-bit) on Win7 Pro.


CsmilieLiaoJavapia-1.0-SNAPSHOT>mvn clean install
[INFO] Scanning for projects...
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-09-transaction-scripts:1.0-SNAP
SHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-09-transaction-scriptspom.xml) has
1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibat
is:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHO
T and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shar
ed-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibat
ispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-11-queries-ibatis:1.0-SNAPSHOT
(CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-11-queries-ibatispom.xml) has 1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibat
is:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHO
T and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shar
ed-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibat
ispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-12-concurrency-transaction-scri
pt:1.0-SNAPSHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-12-concurrency-transactio
n-scriptpom.xml) has 1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibat
is:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHO
T and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shar
ed-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibat
ispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT (C:\r
DLiaoJavapia-1.0-SNAPSHOTshared-spring-ibatispom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact net.chrisrichards
on:pia:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ li
ne 4, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
CsmilieLiaoJavapia-1.0-SNAPSHOT>

2.

On STS3.3.0(64-bit), run 'mav install' from pia/pom.xml:

[INFO] Scanning for projects...
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-09-transaction-scripts:1.0-SNAPSHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-09-transaction-scriptspom.xml) has 1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibatispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-11-queries-ibatis:1.0-SNAPSHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-11-queries-ibatispom.xml) has 1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibatispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:pia-ch-12-concurrency-transaction-script:1.0-SNAPSHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTpia-ch-12-concurrency-transaction-scriptpom.xml) has 1 error
[ERROR] Non-resolvable parent POM for net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT, CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibatispom.xml, line 4, column 10 -> [Help 2]
[ERROR]
[ERROR] The project net.chrisrichardson:shared-spring-ibatis:1.0-SNAPSHOT (CsmilieLiaoJavapia-1.0-SNAPSHOTshared-spring-ibatispom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact net.chrisrichardson:pia:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
[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.


Please advise.

Thanks
Dave