0 Replies Latest reply on Feb 12, 2012 9:04 AM by Tanya Ruttenberg

    Help with maven build of booking example

    Tanya Ruttenberg Expert

      I am trying to learn how to migrate my apps from AS5 to AS7. I'd like to be able to follow Marek Novotny's instructions on this, but I can't figure out how to build the booking example app with maven.  I am fairly new to maven so perhaps there is something basic here I am totally missing.

       

      I am behind a firewall and use our own local Nexus respository.

      I downloaded Seam-2.2.2.Final and have imported the booking example into eclipse.

       

      My pom.xml looks this

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project xmlns="http://maven.apache.org/POM/4.0.0"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

      <modelVersion>4.0.0</modelVersion>

      <groupId>org.jboss.seam.examples</groupId>

      <artifactId>jboss-seam-booking</artifactId>

         <parent>

            <groupId>org.jboss.seam</groupId>

            <artifactId>seam-parent</artifactId>

            <version>19</version>

         </parent>

          <packaging>ear</packaging>

      </project>

       

      "19" is the most recent version of seam-parent I found in nexus repository.  The original had an artifiactID of "parent" which I changed to "seam-parent". I couldn't find an artifactId of "parent".

       

      I cleaned up some of the html (couple of end tag's missing, ampersand causing a problem).

       

      I ran builds with both the standard maven structure (had to move some things around) AND with the out-of-box structure.

       

      mvn clean install runs without an error, but the resulting ear is empty except for the pom.xml and pom.properties.

       

      What am I missing?

       

      TDR