6 Replies Latest reply on Mar 30, 2011 3:54 AM by Paweł Ryszawa

    maven could not download richfaces 4.0.0.20110227-CR1 libraries

    Abdulkerim İnanmış Novice

      can you help. my pom.xml is below.

       

      <

      <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>com.hascode.jsf</groupId>

        <artifactId>registration-demo</artifactId>

        <packaging>war</packaging>

        <version>1.0-SNAPSHOT</version>

        <name>registration-demo Maven Webapp</name>

        <url>http://maven.apache.org</url>

      <repositories>

      <repository>

        <id>maven2-repository.dev.java.net</id>

        <name>Java.net Repository for Maven</name>

        <url>http://download.java.net/maven/2</url>

      </repository>

      <repository>

        <id>JBoss repository</id>

        <url>http://repository.jboss.com/maven2/</url>

      </repository>

        <repository>

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

            <name>JBoss Public Repository Group</name>

            <url>http://repository.jboss.org/nexus/content/groups/public/</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 Repository Group</name>

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

            <releases>

              <enabled>true</enabled>

            </releases>

            <snapshots>

              <enabled>true</enabled>

            </snapshots>

          </pluginRepository>

        </pluginRepositories>

      <properties>

              <!-- for Alhpa versions it was just 'ALPHA2' --> 

              <org.richfaces.bom.version>4.0.0.20110227-CR1</org.richfaces.bom.version>

       

          </properties>

       

       

          <dependencyManagement>

              <dependencies>

                  <dependency>

                      <groupId>org.richfaces</groupId>

                      <artifactId>richfaces-bom</artifactId>

                      <version>${org.richfaces.bom.version}</version>

                      <scope>import</scope>

                      <type>pom</type>

                  </dependency>

                <dependency>

                                  <groupId>org.richfaces.ui</groupId>

                                  <artifactId>richfaces-components-ui</artifactId>

                                  <version>${org.richfaces.bom.version}</version>

                              </dependency>

                              <dependency>

                                  <groupId>org.richfaces.core</groupId>

                                  <artifactId>richfaces-core-impl</artifactId>

                                  <version>${org.richfaces.bom.version}</version>

                             </dependency>

                              <dependency>

                               <groupId>org.richfaces.cdk</groupId>

                               <artifactId>annotations</artifactId>

                               <version>${org.richfaces.bom.version}</version>

                               <scope>provided</scope>

                                    </dependency>

              </dependencies>

          </dependencyManagement>

       

        <dependencies>

           <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>3.8.1</version>

            <scope>test</scope>

          </dependency>

       

         <dependency>

              <groupId>com.sun.faces</groupId>

              <artifactId>jsf-api</artifactId>

              <version>2.0.2</version>

              <scope>compile</scope>

          </dependency>

          <dependency>

              <groupId>com.sun.faces</groupId>

              <artifactId>jsf-impl</artifactId>

              <version>2.0.2</version>

              <scope>compile</scope>

          </dependency>

          <dependency>

                                    <groupId>jstl</groupId>

                                    <artifactId>jstl</artifactId>

                                    <version>1.2</version>

                          </dependency>

        </dependencies>

        <build>

          <finalName>registration-demo</finalName>

          <plugins>

                <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-compiler-plugin</artifactId>

                          <version>2.0.2</version>

                          <configuration>

                                    <source>1.6</source>

                                    <target>1.6</target>

                          </configuration>

                </plugin>

                <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-war-plugin</artifactId>

                      <version>2.1-beta-1</version>

                      <configuration>

                          <failOnMissingWebXml>false</failOnMissingWebXml>

                      </configuration>

                  </plugin>

      </plugins>

        </build>

      </project>

      </project>

        • 1. maven could not download richfaces 4.0.0.20110227-CR1 libraries
          Jay Balunas Master

          Please take a look at our wiki page on How to add RichFaces 4.x to maven based project

           

          You are using a depricated maven repo - http://repository.jboss.org/maven2/ and the wiki has details on that and other settings.

           

          -Jay

          1 of 1 people found this helpful
          • 2. Re: maven could not download richfaces 4.0.0.20110227-CR1 libraries
            Abdulkerim İnanmış Novice

            I changed maven repo settings according to

            ı added below dependency to pom.xml. however It could not download any jar. It downloaded bom and parent folder to my local maven repo.

            <properties>

             

                    <!-- for Alhpa versions it was just 'ALPHA2' -->

             

                    <org.richfaces.bom.version>4.0.0.20110227-CR1</org.richfaces.bom.version>

             

             

             

                </properties>

             

                <dependencyManagement>

             

                    <dependencies>

             

                        <dependency>

             

                            <groupId>org.richfaces</groupId>

             

                            <artifactId>richfaces-bom</artifactId>

             

                            <version>${org.richfaces.bom.version}</version>

             

                            <scope>import</scope>

             

                            <type>pom</type>

             

                        </dependency>

             

                      <dependency>

             

                                        <groupId>org.richfaces.ui</groupId>

             

                                        <artifactId>richfaces-components-ui</artifactId>

             

                                        <version>${org.richfaces.bom.version}</version>

             

                                    </dependency>

             

                                    <dependency>

             

                                        <groupId>org.richfaces.core</groupId>

             

                                        <artifactId>richfaces-core-impl</artifactId>

             

                                        <version>${org.richfaces.bom.version}</version>

             

                                   </dependency>

             

                                    <dependency>

             

                                     <groupId>org.richfaces.cdk</groupId>

             

                                     <artifactId>annotations</artifactId>

             

                                     <version>${org.richfaces.bom.version}</version>

             

                                     <scope>provided</scope>

             

                                          </dependency>

             

                    </dependencies>

             

                </dependencyManagement>

            • 3. maven could not download richfaces 4.0.0.20110227-CR1 libraries
              Nick Belaevski Master

              Try removing this: <version>${org.richfaces.bom.version}</version> for all artifacts except BoM.

               

              P.S. Please do not create duplicate threads for the same problem: http://community.jboss.org/thread/164290

              • 4. Re: maven could not download richfaces 4.0.0.20110227-CR1 libraries
                Abdulkerim İnanmış Novice

                Thanks for your advice. When I removed the version, It give error related with cdk dependecy. I removed cdk dependency. I assume that this library is new  in richfaces 4.0. is it optional?

                • 5. Re: maven could not download richfaces 4.0.0.20110227-CR1 libraries
                  Nick Belaevski Master

                  Yes, it is optional and can be removed in most cases.

                  1 of 1 people found this helpful
                  • 6. Re: maven could not download richfaces 4.0.0.20110227-CR1 libraries
                    Paweł Ryszawa Newbie

                    Hi,

                     

                    I think you should move all the dependencies (except for richfaces-bom) outside the Dependecymanagement - i.e.

                     

                     

                    <properties>

                        <!-- for Alhpa versions it was just 'ALPHA2' -->

                        <org.richfaces.bom.version>4.0.0.20110227-CR1</org.richfaces.bom.version>

                    </properties>

                    <dependencyManagement>

                        <dependencies>

                            <dependency>

                                <groupId>org.richfaces</groupId>

                                <artifactId>richfaces-bom</artifactId>

                                <version>${org.richfaces.bom.version}</version>

                                <scope>import</scope>

                                <type>pom</type>

                            </dependency>

                        </dependencies>

                    </dependencyManagement>

                    <dependency>

                        <groupId>org.richfaces.ui</groupId>

                        <artifactId>richfaces-components-ui</artifactId>

                        <version>${org.richfaces.bom.version}</version>

                    </dependency>

                    <dependency>

                        <groupId>org.richfaces.core</groupId>

                        <artifactId>richfaces-core-impl</artifactId>

                        <version>${org.richfaces.bom.version}</version>

                    </dependency>

                    <dependency>

                        <groupId>org.richfaces.cdk</groupId>

                        <artifactId>annotations</artifactId>

                        <version>${org.richfaces.bom.version}</version>

                        <scope>provided</scope>

                    </dependency>

                     

                     

                    I have experienced some problems when first downloading from the repository - <version>${org.richfaces.bom.version}</version> seemed to be necessary then. Having all the stuff downloaded, <version>${org.richfaces.bom.version}</version> could be removed (except for BOM, of course).

                     

                     

                    Regards