Chapter 6 - Compiling and packaging the jar file

Type "mvn package" to create the jar.

C:\JavaEE6\Chapter06>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Chapter 06 - EJB
[INFO]    task-segment: [package]
[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 1 resource
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[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] [surefire:test]
[INFO] Surefire report directory: C:\JavaEE6\Chapter06\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.apress.javaee6.chapter06.BookEJBTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.032 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 1

[INFO] [jar:jar]
[INFO] Building jar: C:\JavaEE6\Chapter06\target\chapter06-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Mon Sep 28 20:21:31 PDT 2009
[INFO] Final Memory: 15M/27M
[INFO] ------------------------------------------------------------------------
C:\JavaEE6\Chapter06>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License