This content has been marked as final.
Show 5 replies
-
1. Re: Unable to create new pluggable skins project with CDK
dozer247 Jun 23, 2008 5:51 PM (in response to leelavathic)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 projectmvn 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 themvn clean install
I get the following errormvn 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 Jun 23, 2008 6:21 PM (in response to leelavathic)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 Jun 24, 2008 3:31 AM (in response to leelavathic)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 Jul 1, 2008 4:23 AM (in response to leelavathic)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 Jul 1, 2008 4:50 AM (in response to leelavathic)Never mind my last post. It gave the wrong version instead of giving 3.2.1.GA I gave 3.1.2.GA