Red Hat Bugzilla – Bug 831250
Seam examples deployment instructions wrong in readme files
Last modified: 2012-06-22 04:16:36 EDT
Description of problem:
The instructions in Seam distribution's readme.txt and the examples' readme.txt files are wrong:
e.g. from the seam distribution readme.txt:
3. In the "examples-ee6/booking" directory, type "mvn clean package" and check
for any error messages.
4. In the booking-ear directory run:
This would fail with
[ERROR] Failed to execute goal on project booking-ear: Could not resolve dependencies for project org.jboss.seam.examples.booking:booking-ear:ear:2.3.0.Beta2-redhat-1: The following artifacts could not be resolved: org.jboss.seam.examples.booking:booking-web:war:2.3.0.Beta2-redhat-1, org.jboss.seam.examples.booking:booking-ejb:jar:2.3.0.Beta2-redhat-1: Could not find artifact org.jboss.seam.examples.booking:booking-web:war:2.3.0.Beta2-redhat-1 in jboss-wfk-repository (file:///home/maschmid/.m2/jboss-wfk-2.0.0.ER8-maven-repository) -> [Help 1]
An additional steps would be to run "mvn install -N" in the examples/ root to install the example's parent and run "mvn clean install" instead of the "mvn clean package" in the specific example folder.
Alternatively, we could change the instructions to just say to deploy the "booking-ear/target/seam-booking.ear" archive with $JBOSS_HOME/bin/jboss-cli.sh --connect "deploy booking-ear/target/seam-booking.ear"
Or just say to deploy the "booking-ear/target/seam-booking.ear" archive and let the EAP6 docs explain how to do it.
(also note that we should probably mention setting up the WFK repository somewhere in the readme files)
The affected files are:
and all the readme.txt files in
I will replace goal package with install then.
Alternative deploy option could be in readme.txt, but maven wa is much easier I think.