pankjajain15
2010-04-23 05:34:05 UTC
Hi, i want to integrate maven with richfaces ,
i have followed section 3.3 from this
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html
link.
i have installed maven on c drive on windows machine .
as per instruction mentioned in above link , i created a folder "project" on
c drive and run a command line from it as mentioned in above link
the command is
mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.3-SNAPSHOT -DgroupId=org.docs.richfaces
-DartifactId=jsf-app
after executing above code , it shows me following error on command prompt
C:\project>mvn -e archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darche
typeArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.3-SNAPSHOT
-Dgro
upId=org.docs.richfaces -DartifactId=jsf-app
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] [INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] [INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[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:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[WARNING] No archetype repository found. Falling back to central repository
(htt
p://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's
repository
is elsewhere.
[INFO] snapshot org.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT:
chec
king for updates from maven-archetype-jsfwebapp-repo
Downloading:
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.3-SNAPSHOT/maven-archetype-jsfwebapp-3.3.3-SNAPSHOT.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.3-SNAPSHOT' in repository maven-archetype-jsfwebapp-repo
(http://repo1.maven
.org/maven2)
[INFO] [ERROR] BUILD FAILURE
[INFO] [INFO] The desired archetype does not exist
(org.richfaces.cdk:maven-archetype-j
sfwebapp:3.3.3-SNAPSHOT)
[INFO] [INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not exist
(or
g.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The desired
archetype d
oes not exist (org.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
te(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
... 17 more
[INFO] [INFO] Total time: 9 seconds
[INFO] Finished at: Thu Apr 22 18:52:03 IST 2010
[INFO] Final Memory: 8M/21M
[INFO] C:\project>
please help me out ....
i have followed section 3.3 from this
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html
link.
i have installed maven on c drive on windows machine .
as per instruction mentioned in above link , i created a folder "project" on
c drive and run a command line from it as mentioned in above link
the command is
mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.3-SNAPSHOT -DgroupId=org.docs.richfaces
-DartifactId=jsf-app
after executing above code , it shows me following error on command prompt
C:\project>mvn -e archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darche
typeArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.3-SNAPSHOT
-Dgro
upId=org.docs.richfaces -DartifactId=jsf-app
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] [INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] [INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[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:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[WARNING] No archetype repository found. Falling back to central repository
(htt
p://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's
repository
is elsewhere.
[INFO] snapshot org.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT:
chec
king for updates from maven-archetype-jsfwebapp-repo
Downloading:
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.3-SNAPSHOT/maven-archetype-jsfwebapp-3.3.3-SNAPSHOT.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.3-SNAPSHOT' in repository maven-archetype-jsfwebapp-repo
(http://repo1.maven
.org/maven2)
[INFO] [ERROR] BUILD FAILURE
[INFO] [INFO] The desired archetype does not exist
(org.richfaces.cdk:maven-archetype-j
sfwebapp:3.3.3-SNAPSHOT)
[INFO] [INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not exist
(or
g.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The desired
archetype d
oes not exist (org.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execu
te(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
... 17 more
[INFO] [INFO] Total time: 9 seconds
[INFO] Finished at: Thu Apr 22 18:52:03 IST 2010
[INFO] Final Memory: 8M/21M
[INFO] C:\project>
please help me out ....
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28337509.html
Sent from the Maven - Users mailing list archive at Nabble.com.
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28337509.html
Sent from the Maven - Users mailing list archive at Nabble.com.