|
53 | 53 | <source>mvn package</source> |
54 | 54 | If you build jWebUnit for the first time and you configured Maven as described |
55 | 55 | earlier, you will see the following text: |
56 | | -<source><![CDATA[ |
57 | | -[INFO] Scanning for projects... |
58 | | -[INFO] ---------------------------------------------------------------------------- |
59 | | -[INFO] Building jWebUnit |
60 | | -[INFO] task-segment: [package] |
61 | | -[INFO] ---------------------------------------------------------------------------- |
62 | | -[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from Maven CodeHaus Snapshots |
63 | | -[INFO] snapshot org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT: checking for updates from Maven CodeHaus Snapshots |
64 | | -[INFO] [resources:resources] |
65 | | -[INFO] Using default encoding to copy filtered resources. |
66 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/jacobie/jacobie/1.3/jacobie-1.3.pom |
67 | | -612b downloaded |
68 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/jacobie/jacobie/1.3/jacobie-1.3.pom - IGNORING |
69 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/jacob-project/jacob/1.7/jacob-1.7.pom |
70 | | -423b downloaded |
71 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/jacob-project/jacob/1.7/jacob-1.7.pom - IGNORING |
72 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.pom |
73 | | -8K downloaded |
74 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.pom - IGNORING |
75 | | -[WARNING] |
76 | | - Artifact commons-logging:commons-logging:jar:1.0.4:test retains local scope 'test' overriding broader scope 'compile' |
77 | | - given by a dependency. If this is not intended, modify or remove the local scope. |
78 | | -
|
79 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/httpunit/httpunit/1.6.1-20060101/httpunit-1.6.1-20060101.pom |
80 | | -1K downloaded |
81 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/httpunit/httpunit/1.6.1-20060101/httpunit-1.6.1-20060101.pom - IGNORING |
82 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/httpunit/httpunit/1.6.1-20060101/httpunit-1.6.1-20060101.jar |
83 | | -397K downloaded |
84 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/httpunit/httpunit/1.6.1-20060101/httpunit-1.6.1-20060101.jar - IGNORING |
85 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/jacobie/jacobie/1.3/jacobie-1.3.jar |
86 | | -32K downloaded |
87 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/jacobie/jacobie/1.3/jacobie-1.3.jar - IGNORING |
88 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar |
89 | | -356K downloaded |
90 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/htmlunit/htmlunit/1.9-prerelease/htmlunit-1.9-prerelease.jar - IGNORING |
91 | | -Downloading: file:D:\jhenry\jwebunit\jWebUnit/private-repository/net/sourceforge/jacob-project/jacob/1.7/jacob-1.7.jar |
92 | | -16K downloaded |
93 | | -[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for net/sourceforge/jacob-project/jacob/1.7/jacob-1.7.jar - IGNORING |
94 | | -[INFO] [compiler:compile] |
95 | | -Compiling 21 source files to D:\jhenry\jwebunit\jWebUnit\target\classes |
96 | | -[INFO] [resources:testResources] |
97 | | -[INFO] Using default encoding to copy filtered resources. |
98 | | -[INFO] [compiler:testCompile] |
99 | | -Compiling 25 source files to D:\jhenry\jwebunit\jWebUnit\target\test-classes |
100 | | -[INFO] [surefire:test] |
101 | | -[INFO] Setting reports dir: D:\jhenry\jwebunit\jWebUnit\target/surefire-reports |
102 | | -
|
103 | | -------------------------------------------------------- |
104 | | - T E S T S |
105 | | -------------------------------------------------------- |
106 | | -[surefire] Running net.sourceforge.jwebunit.AllTests |
107 | | -log4j:WARN No appenders could be found for logger (org.mortbay.xml.XmlParser). |
108 | | -log4j:WARN Please initialize the log4j system properly. |
109 | | -[surefire] Tests run: 151, Failures: 2, Errors: 20, Time elapsed: 15,907 sec <<<<<<<< FAILURE !! |
110 | | -[ERROR] There are test failures. |
111 | | -[INFO] [jar:jar] |
112 | | -[INFO] Building jar: D:\jhenry\jwebunit\jWebUnit\target\jwebunit-1.3-SNAPSHOT.jar |
113 | | -[INFO] ------------------------------------------------------------------------ |
114 | | -[INFO] BUILD SUCCESSFUL |
115 | | -[INFO] ------------------------------------------------------------------------ |
116 | | -[INFO] Total time: 27 seconds |
117 | | -[INFO] Finished at: Mon Apr 24 14:14:52 CEST 2006 |
118 | | -[INFO] Final Memory: 7M/24M |
119 | | -[INFO] ------------------------------------------------------------------------ |
120 | | -]]></source></p> |
| 56 | +<source><![CDATA[NEED UPDATE]]></source></p> |
121 | 57 | <p> |
122 | | - You now have successfully built the <tt>jwebunit-1.3-SNAPSHOT.jar</tt>. |
123 | | - </p> |
124 | | -</subsection> |
125 | | -<subsection name="Building the site"> |
126 | | - <p> |
127 | | - Generating the jWebUnit website with Maven is also not difficult: |
128 | | - <source>mvn site</source> |
129 | | - is all there's to it. |
130 | | - After downloading lots and lots of jar files, Maven will build the website which |
131 | | - contains junit results, checkstyle results, and the like, just like the website |
132 | | - you're now looking at. You can find the website in the |
133 | | - <source>target/site</source> directory. |
134 | | - </p> |
135 | | - <p> |
136 | | - Just open the index.html in your browser. |
| 58 | + You now have successfully built the <tt>jwebunit-1.3.jar</tt>. |
137 | 59 | </p> |
138 | 60 | </subsection> |
139 | 61 | <subsection name="Building an assembly"> |
140 | | - <p> An assembly is a package for final users. |
| 62 | + <p> An assembly is a package for final users, including eventually all dependencies. |
141 | 63 | Building an assembly with Maven consists of executing Maven like this: |
142 | 64 | <source>mvn assembly:assembly -DdescriptorId=XXX</source> |
143 | | - Where XXX is: |
| 65 | + Where XXX is one of : |
144 | 66 | <ul> |
145 | 67 | <li>bin : Package jwebunit-xx.jar in 3 formats (zip, tar.gz and tar.bz2)</li> |
146 | 68 | <li>jar-with-dependencies : Create jwebunit-xx-with-dependencies.jar, a big jar with all |
|
0 commit comments