5 Replies Latest reply on Jul 1, 2008 4:50 AM by vircos

    Unable to create new pluggable skins project with CDK

      Hi,

      I am trying to create a new pluggable skins project with CDK by following the steps given in the link http://livedemo.exadel.com/richfaces-demo/richfaces/plugnskin.jsf;jsessionid=975F7ECD2C29A6E4DC3D3EF9FD88DD4B?c=plugnskin

      I have maven configured, but while trying to run the command i am getting the following error.

      Command:
      mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-plug-n-skin -DarchetypeVersion=*RF-VERSION* -DartifactId=*ARTIFACT-ID* -DgroupId=*GROUP-ID* -Dversion=*VERSION*

      Error:
      Number of imports: 4
      import: org.codehaus.classworlds.Entry@4891bb28
      import: org.codehaus.classworlds.Entry@f8e44ca4
      import: org.codehaus.classworlds.Entry@c51bc9e7
      import: org.codehaus.classworlds.Entry@bece5185
      -----------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:create': Unable to find the mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:create' in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
      org/dom4j/DocumentException
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 14 seconds
      [INFO] Finished at: Mon Jun 23 14:30:30 IST 2008
      [INFO] Final Memory: 10M/18M
      [INFO] ------------------------------------------------------------------------

      Could anyone please let me know the solution.

      Thanks in advance!

        • 1. Re: Unable to create new pluggable skins project with CDK
          dozer247

          Hi,

          I've been trying to create a skins project too. I've got a little bit further than you.

          I ended up using the following command to create a skin project

          mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-plug-n-skin -DarchetypeVersion=3.2.1.GA -DartifactId=ARTIFACT-ID -DgroupId=GROUP-ID -Dversion=VERSION
          

          You need specify a DarchetypeVersion. I used 3.2.1.GA.

          But when i tried doing the

          mvn clean install


          I get the following error

          mvn clean install
          [INFO] Scanning for projects...
          [INFO] ------------------------------------------------------------------------
          [INFO] Building ARTIFACT-ID2
          [INFO] task-segment: [clean, install]
          [INFO] ------------------------------------------------------------------------
          [INFO] [clean:clean]
          [INFO] Preparing cdk:generate
          [WARNING] Removing: generate from forked lifecycle, to prevent recursive invocat
          ion.
          [INFO] [resources:resources]
          [INFO] Using default encoding to copy filtered resources.
          [INFO] [compiler:compile]
          [INFO] Compiling 1 source file to C:\Documents and Settings\Darrell\ARTIFACT-ID2
          \target\classes
          [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Compilation failure
          C:\Documents and Settings\Darrell\ARTIFACT-ID2\src\main\java\skin-package\1place
          \images\BaseImage.java:[1,12] ';' expected
          
          
          
          C:\Documents and Settings\Darrell\ARTIFACT-ID2\src\main\java\skin-package\1place
          \images\BaseImage.java:[1,12] ';' expected
          
          
          [INFO] ------------------------------------------------------------------------
          [INFO] For more information, run Maven with the -e switch
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 4 seconds
          [INFO] Finished at: Tue Jun 24 09:42:18 NZST 2008
          [INFO] Final Memory: 7M/13M
          [INFO] ------------------------------------------------------------------------
          
          


          Does anybody know why?

          Thanks

          • 2. Re: Unable to create new pluggable skins project with CDK
            nbelaevski

            Hello,

            By Java naming conventions package name cannot:

            1. Contain dash ('-') sign
            2. Start with number

            Please re-generate new skin using other names than "skin-package" and "1place"

            • 3. Re: Unable to create new pluggable skins project with CDK
              ilya_shaikovsky

              Also try to execute mvn install from CDK folder before using plug-n-skin.

              • 4. Re: Unable to create new pluggable skins project with CDK
                vircos

                I do get the following error:

                Downloading: http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-plug-n-skin/3.1.2.GA/maven-archetype-plug-n-skin-3.1.2.GA.jar
                [INFO] ------------------------------------------------------------------------
                [ERROR] BUILD ERROR
                [INFO] ------------------------------------------------------------------------
                [INFO] Failed to resolve artifact.
                
                GroupId: org.richfaces.cdk
                ArtifactId: maven-archetype-plug-n-skin
                Version: 3.1.2.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-plug-n-skin -Dversion=3.1.2.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-plug-n-skin -Dversion=3.1.2.GA -Dpackaging=jar -Dfile=/path/to/file -Du
                rl=[url] -DrepositoryId=[id]
                
                
                 org.richfaces.cdk:maven-archetype-plug-n-skin:jar:3.1.2.GA
                
                from the specified remote repositories:
                 central (http://repo1.maven.org/maven2)
                


                I'm not sure if it is the problem but when I try to rich http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-plug-n-skin/3.1.2.GA/maven-archetype-plug-n-skin-3.1.2.GA.jar manually it doesn't seem to excist.

                Could someone help me with this please?
                Many thanks in advance.

                • 5. Re: Unable to create new pluggable skins project with CDK
                  vircos

                  Never mind my last post. It gave the wrong version instead of giving 3.2.1.GA I gave 3.1.2.GA