2 Replies Latest reply on Oct 14, 2013 4:23 AM by TOMO IKEA

    Just want to build jboss-seam-2.3.0.CR1 sample but mvn can not.

    TOMO IKEA Newbie

      I just started test jboss-seam-2.3.0.CR1, following readme.txt bellow.

      first I just want to know "What is Seam"

       

      ------ readme.txt -----------------------------------------------------------------

      1. Install JBoss AS 7.1.1.Final 

      2. Start JBoss AS by typing "bin/standalone.sh" in the JBoss home directory

      3. In the "examples-ee6/booking" directory, type "mvn clean package" and check

         for any error messages.

      -----------------------------------------------------------------------------------------

       

      but "mvn clean package"  result are bellows.  This pom may be incorrect ?

       

      ----------------------------------------------------------------------------------------

      les\booking>mvn clean package

      [INFO] Scanning for projects...

      [ERROR] The build could not read 1 project -> [Help 1]

      [ERROR]

      [ERROR]   The project org.jboss.seam.examples-ee6:booking:2.3.0.CR1 (C:\Documents and Settings\bono\My Documents\Downloads\jboss-seam-2.3.0.CR1\examples\booking

      \pom.xml) has 1 error

      [ERROR]     Non-resolvable import POM: Failure to find org.jboss.seam:bom:pom:2.3.0.CR1 in http://repo.maven.apache.org/maven2 was cached in the local repositor

      y, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ org.jboss.seam:examples-ee6:2.3.0.CR1, C:\Documen

      ts and Settings\bono\My Documents\Downloads\jboss-seam-2.3.0.CR1\examples\pom.xml, line 229, column 25 -> [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 read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

        • 1. Re: Just want to build jboss-seam-2.3.0.CR1 sample but mvn can not.
          Tomas Remes Expert

          Hi!

          Why CR1? I would go with Final or even 2.3.1.Final, anyway you need to add JBoss repository to your settings.xml (described here Maven Getting Started - Users).

          • 2. Re: Just want to build jboss-seam-2.3.0.CR1 sample but mvn can not.
            TOMO IKEA Newbie

            Thank you.

             

            DL jboss-seam-2.3.1.Final-dist.zip.

            following bellows complete example

              https://community.jboss.org/wiki/MavenSettingsExample-Users

             

            defining bellows between <profiles> and </profiles>

            ////////////////////////////////////

                <profile> 

                  <id>jboss-public-repository</id> 

                  <repositories> 

                    <repository> 

                      <id>jboss-public-repository-group</id> 

                      <name>JBoss Public Maven Repository Group</name> 

                      <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> 

                      <layout>default</layout> 

                      <releases> 

                        <enabled>true</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </releases> 

                      <snapshots> 

                        <enabled>true</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </snapshots> 

                    </repository> 

                  </repositories> 

                  <pluginRepositories> 

                    <pluginRepository> 

                      <id>jboss-public-repository-group</id> 

                      <name>JBoss Public Maven Repository Group</name> 

                      <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> 

                      <layout>default</layout> 

                      <releases> 

                        <enabled>true</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </releases> 

                      <snapshots> 

                        <enabled>true</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </snapshots> 

                    </pluginRepository> 

                  </pluginRepositories> 

                </profile> 

                <profile> 

                  <id>jboss-deprecated-repository</id> 

                  <repositories> 

                    <repository> 

                      <id>jboss-deprecated-repository</id> 

                      <name>JBoss Deprecated Maven Repository</name> 

                      <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url> 

                      <layout>default</layout> 

                      <releases> 

                        <enabled>true</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </releases> 

                      <snapshots> 

                        <enabled>false</enabled> 

                        <updatePolicy>never</updatePolicy> 

                      </snapshots> 

                    </repository> 

                  </repositories> 

                </profile>

            </profiles>

             

            AND after </profiles> define

            ////////////////////////////////////

              <!-- jboss.org config start --> 

              <activeProfiles> 

                <activeProfile>jboss-public-repository</activeProfile> 

              </activeProfiles> 

              <!-- jboss.org config end -->

            ////////////////////////////////////

            At last pom downloading process was strared !

             

            3. In the "examples/booking" directory  :  mvn clean package" => OK

            4. In the booking-ear directory run     :  mvn jboss-as:deploy => BUILD SUCCESS

             

            can accress http://localhost:8080/seam-booking/

             

            My first JBoss experience is just starting.