4 Replies Latest reply on Feb 4, 2011 11:30 AM by sebastianovide

    maven and seam-faces

    sebastianovide Newbie

      Hi All,


      I've created a mvn project with weld-jsf-jee archetype. Now I'm trying to add Seam-faces so I've followed the instructions from

      http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html_single/


      With NetBeans autocompletion the latest version that I find is:


             <repository>
                <id>repository.jboss.org</id>
                <name>JBoss Repository</name>
                <url>http://repository.jboss.org/maven2</url>
             </repository>
      
              <dependency>
                  <groupId>org.jboss.seam.faces</groupId>
                  <artifactId>seam-faces</artifactId>
                  <version>3.0.0.Alpha3</version>
              </dependency>




      building I'm getting this error:


       Failed to read artifact descriptor for org.jboss.seam.faces:seam-faces:jar:3.0.0.Alpha3: Could not find artifact org.jboss.spec:jboss-javaee6-specs-bom:pom:1.0.0.Beta1 in repository.jboss.org (http://repository.jboss.org/maven2) -> [Help 1]



      any ideas ?

        • 1. Re: maven and seam-faces
          Sebastian Sachtleben Novice
          Could not find artifact org.jboss.spec:jboss-javaee6-specs-bom:pom:1.0.0.Beta1 in repository.jboss.org (http://repository.jboss.org/maven2)



          Change the repository to:


             <repositories>
                <repository>
                   <id>jboss-public-repository</id>
                   <name>JBoss Repository</name>
                   <url>https://repository.jboss.org/nexus/content/groups/public</url>
                   <releases>
                      <enabled>true</enabled>
                   </releases>
                   <snapshots>
                      <enabled>true</enabled>
                      <updatePolicy>never</updatePolicy>
                   </snapshots>
                </repository>
             </repositories>
          
             <pluginRepositories>
                <pluginRepository>
                   <id>jboss-public-repository</id>
                   <name>JBoss Repository</name>
                   <url>https://repository.jboss.org/nexus/content/groups/public</url>
                   <releases>
                      <enabled>true</enabled>
                   </releases>
                   <snapshots>
                      <enabled>true</enabled>
                      <updatePolicy>never</updatePolicy>
                   </snapshots>
                </pluginRepository>
             </pluginRepositories>



          Well i'm using another version of that spec:


          <jboss-javaee6-spec.version>1.0.0.Beta7</jboss-javaee6-spec.version>



          I would prefer to start with a working pom xml and modify that: pom.xml

          • 2. Re: maven and seam-faces
            sebastianovide Newbie

            yes, that worked fine...


            By the way, with the groupID org.jboss.seam.faces there are three different artifacts: seam-faces, seam-faces-api and seam-faces-parent.


            In http://seamframework.org/Seam3/MavenArtifacts it is suggested to use seam-faces. Do you know what seam-faces-api and seam-faces-parent are for ?

            • 3. Re: maven and seam-faces
              Sebastian Sachtleben Novice

              There should be also seam-faces-impl!


              seam-faces is combined jar from seam-faces-api and seam-faces-impl


              seam-faces-parent is just for building the jar file!

              • 4. Re: maven and seam-faces
                sebastianovide Newbie

                yep.. you are right. Also impl is there. thanks