Cpt 2 Compile

The updated source code of 7/25/09 works but produces some warnings. Do "mvn compile" from the C:\Javaee6\Chapter02 folder.
If there are too many "Not a v4.0.0 POM" errors, blow away the repository and start over.
Maven will create the repository shown below:

c2_compile.jpg

I still get some of the "Not a v4.0.0 POM" errors, but the class files are created anyway:

C:\JavaEE6\Chapter02>mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Chapter 02 - JPA
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'commons-cli:commons-cli:pom:1.0:runtime' is invalid. It will
be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project common
s-cli:commons-cli at C:\Documents and Settings\Walt\.m2\repository\commons-cli\c
ommons-cli\1.0\commons-cli-1.0.pom
[WARNING] POM for 'commons-cli:commons-cli:pom:1.0:runtime' is invalid. It will
be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project common
s-cli:commons-cli at C:\Documents and Settings\Walt\.m2\repository\commons-cli\c
ommons-cli\1.0\commons-cli-1.0.pom
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 2 resources
[WARNING] POM for 'org.apache.derby:derbyclient:pom:10.5.1.1:compile' is invalid
. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for proj
ect org.apache.derby:derbyclient at C:\Documents and Settings\Walt\.m2\repositor
y\org\apache\derby\derbyclient\10.5.1.1\derbyclient-10.5.1.1.pom
[WARNING] POM for 'org.apache.derby:derbyclient:pom:10.5.1.1:compile' is invalid
. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for proj
ect org.apache.derby:derbyclient at C:\Documents and Settings\Walt\.m2\repositor
y\org\apache\derby\derbyclient\10.5.1.1\derbyclient-10.5.1.1.pom
[WARNING] POM for 'org.apache.derby:derby:pom:10.5.1.1:test' is invalid. It will
 be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.a
pache.derby:derby at C:\Documents and Settings\Walt\.m2\repository\org\apache\de
rby\derby\10.5.1.1\derby-10.5.1.1.pom
[WARNING] POM for 'org.apache.derby:derby:pom:10.5.1.1:test' is invalid. It will
 be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.a
pache.derby:derby at C:\Documents and Settings\Walt\.m2\repository\org\apache\de
rby\derby\10.5.1.1\derby-10.5.1.1.pom
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to C:\JavaEE6\Chapter02\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sat Sep 26 12:19:24 PDT 2009
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License