5 Replies Latest reply on Jun 9, 2009 8:14 AM by Ilya Shaikovsky

    Richfaces page layouts + theme support

    John Ament Master

      Ok guys...

      Can someone translate this page? http://livedemo.exadel.com/richfaces-demo/richfaces/layouts/page/template.jsf

      The themes support tab preferrably.

      Attempting to run the mvn archetype results in..

      mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-theme -DarchetypeVersion=3.3.1-GA -DartifactId=mytheme -DgroupId=mytheme -Dversion=1.0-SNAPSHOT
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'archetype'.
      [INFO] org.apache.maven.plugins: checking for updates from repository.jboss.com
      [INFO] org.codehaus.mojo: checking for updates from repository.jboss.com
      [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from repository.jboss.com
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Maven Default Project
      [INFO] task-segment: [archetype:create] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
      [INFO] Setting property: velocimacro.messages.on => 'false'.
      [INFO] Setting property: resource.loader => 'classpath'.
      [INFO] Setting property: resource.manager.logwhenfound => 'false'.
      [INFO] [archetype:create]
      [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
      [INFO] Defaulting package to group ID: mytheme
      Downloading: http://download.java.net/maven/1/org.richfaces.cdk/jars/maven-archetype-theme-3.3.1-GA.jar
      Downloading: http://repository.jboss.com/maven2//org/richfaces/cdk/maven-archetype-theme/3.3.1-GA/maven-archetype-theme-3.3.1-GA.jar
      Downloading: http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-theme/3.3.1-GA/maven-archetype-theme-3.3.1-GA.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      GroupId: org.richfaces.cdk
      ArtifactId: maven-archetype-theme
      Version: 3.3.1-GA
      
      Reason: Unable to download the artifact from any repository
      
      Try downloading the file manually from the project website.
      
      Then, install it using the command:
       mvn install:install-file -DgroupId=org.richfaces.cdk -DartifactId=maven-archetype-theme -Dversion=3.3.1-GA -Dpackaging=jar -Dfile=/path/to/file
      
      Alternatively, if you host your own repository you can deploy the file there:
       mvn deploy:deploy-file -DgroupId=org.richfaces.cdk -DartifactId=maven-archetype-theme -Dversion=3.3.1-GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
      
       org.richfaces.cdk:maven-archetype-theme:jar:3.3.1-GA
      
      from the specified remote repositories:
       central (http://repo1.maven.org/maven2),
       repository.jboss.com (http://repository.jboss.com/maven2/),
       maven2-repository.dev.java.net (http://download.java.net/maven/1)
      


      Any ideas?

        • 1. Re: Richfaces page layouts + theme support
          Nick Belaevski Master

          Hi,

          Version is mistyped: 3.3.1-GA. Should be dot, not dash.

          • 2. Re: Richfaces page layouts + theme support
            John Ament Master

            No sir, that sounds a little off. I'll try again at work, but I get this:

            C:\Users\johnament>mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -Da
            rchetypeArtifactId=maven-archetype-theme -DarchetypeVersion=3.3.1.GA -DartifactI
            d=mytheme -DgroupId=mytheme -Dversion=1.0-SNAPSHOT
            [INFO] Scanning for projects...
            [INFO] Searching repository for plugin with prefix: 'archetype'.
            [INFO] ------------------------------------------------------------------------
            [INFO] Building Maven Default Project
            [INFO] task-segment: [archetype:create] (aggregator-style)
            [INFO] ------------------------------------------------------------------------
            [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
            .velocity.ContextClassLoaderResourceLoader'.
            [INFO] Setting property: velocimacro.messages.on => 'false'.
            [INFO] Setting property: resource.loader => 'classpath'.
            [INFO] Setting property: resource.manager.logwhenfound => 'false'.
            [INFO] [archetype:create]
            [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
            [INFO] Defaulting package to group ID: mytheme
            Downloading: http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-the
            me/3.3.1.GA/maven-archetype-theme-3.3.1.GA.jar
            [INFO] Unable to find resource 'org.richfaces.cdk:maven-archetype-theme:jar:3.3.
            1.GA' in repository central (http://repo1.maven.org/maven2)
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Error creating from archetype
            
            Embedded error: org.apache.maven.archetype.downloader.DownloadNotFoundException:
             Requested download does not exist.
            Unable to download the artifact from any repository
            [INFO] ------------------------------------------------------------------------
            [INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 2 seconds
            [INFO] Finished at: Mon Jun 08 20:56:13 EDT 2009
            [INFO] Final Memory: 8M/14M
            [INFO] ------------------------------------------------------------------------
            


            • 3. Re: Richfaces page layouts + theme support
              Nick Belaevski Master

              JBoss.org repository is excluded from the search now. Just to be sure, here is the link to the file: http://repository.jboss.com/maven2/org/richfaces/cdk/maven-archetype-theme/3.3.1.GA/maven-archetype-theme-3.3.1.GA.jar

              • 4. Re: Richfaces page layouts + theme support
                John Ament Master

                Ok, that figures. I guess my home is setup differently than work.

                however, when i attempt to add skin, i get the following:

                mvn cdk:add-theme -Dname=mytheme
                [INFO] Scanning for projects...
                [INFO] Searching repository for plugin with prefix: 'cdk'.
                [INFO] artifact org.apache.maven.plugins:maven-cdk-plugin: checking for updates from repository.jboss.com
                [INFO] artifact org.apache.maven.plugins:maven-cdk-plugin: checking for updates from central
                [INFO] ------------------------------------------------------------------------
                [ERROR] BUILD ERROR
                [INFO] ------------------------------------------------------------------------
                [INFO] The plugin 'org.apache.maven.plugins:maven-cdk-plugin' does not exist or no valid version could be found
                [INFO] ------------------------------------------------------------------------
                [INFO] For more information, run Maven with the -e switch
                [INFO] ------------------------------------------------------------------------
                [INFO] Total time: < 1 second
                [INFO] Finished at: Tue Jun 09 07:02:39 GMT-05:00 2009
                [INFO] Final Memory: 2M/15M
                [INFO] ------------------------------------------------------------------------
                


                • 5. Re: Richfaces page layouts + theme support
                  Ilya Shaikovsky Master

                  Do you have full richfaces source checked out? then try to just run build in CDK folder before using archetype.