Discussion:
integration problem
pankjajain15
2010-04-23 05:34:05 UTC
Permalink
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 ....
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28337509.html
Sent from the Maven - Users mailing list archive at Nabble.com.
s***@wipro.com
2010-04-23 05:49:30 UTC
Permalink
[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.

You are trying to find a snapshot version in Maven central repo....I
doubt you will find any.
Configure your repositories appropriately.

Subir

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
Aleksey Didik
2010-04-23 05:52:30 UTC
Permalink
Hello pankjajain15.

Look like you need to add jboss repository to your settings.xml.
On the start Maven knows only about 'central' repository which can not
contains necessary archetype.
This archetype contains in JBoss repository.

Try to do next:

1) Add to <maven-dir>/conf/settings.xml next xml in <settings> section:

<profiles>
<profile>
<id>jboss-repo</id>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-repo</activeProfile>
</activeProfiles>

2) Try to use this command

mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.2-GA -DgroupId=org.docs.richfaces
-DartifactId=jsf-app -DarchetypeRepository=http://repository.jboss.org/maven2


Write me about results.

Hope this help,

Aleksey.
Post by pankjajain15
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.
chec
king for updates from maven-archetype-jsfwebapp-repo
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
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 ....
pankjajain15
2010-04-23 06:21:57 UTC
Permalink
i did it as you said but now it showing me following errors

C:\project>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchetyp
eArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2-GA
-DgroupId=org.
docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbos
s.org/maven2
[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
[INFO] Archetype defined by properties
Downloading:
http://repository.jboss.org/maven2/org/richfaces/cdk/maven-archetyp
e-jsfwebapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.2-GA' in repository maven-archetype-jsfwebapp-repo
(http://repository.jboss.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.2-GA' in repository central (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.2-GA)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Apr 23 11:47:50 IST 2010
[INFO] Final Memory: 8M/21M
[INFO]
------------------------------------------------------------------------
C:\project>
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28337627.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Aleksey Didik
2010-04-23 06:27:54 UTC
Permalink
Ah, my fault.

Try to use.

mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.2.GA -DgroupId=org.docs.richfaces
-DartifactId=jsf-app
-DarchetypeRepository=http://repository.jboss.org/maven2

Aleksey.
Post by pankjajain15
i did it as you said but now it showing me following errors
C:\project>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchetyp
eArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2-GA
-DgroupId=org.
docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbos
s.org/maven2
[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
[INFO] Archetype defined by properties
http://repository.jboss.org/maven2/org/richfaces/cdk/maven-archetyp
e-jsfwebapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
3.3.2-GA' in repository maven-archetype-jsfwebapp-repo
(http://repository.jboss.
org/maven2)
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
3.3.2-GA' in repository central (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.2-GA)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Apr 23 11:47:50 IST 2010
[INFO] Final Memory: 8M/21M
[INFO]
------------------------------------------------------------------------
C:\project>
pankjajain15
2010-04-23 11:39:35 UTC
Permalink
ya i tried your command, but again foung following error

----------
1) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-api -Dversion=3.3.3-SNAPSHOT -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.framework
-DartifactId=rich
faces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[u
rl] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-impl -Dversion=3.3.3-SNAPSHOT -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.framework
-DartifactId=rich
faces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[
url] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

3) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces
-ui -Dversion=3.3.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.ui
-DartifactId=richfaces-u
i -Dversion=3.3.2.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA

4) el-impl:el-impl:jar:1.0

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=
1.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=1.
0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) el-impl:el-impl:jar:1.0

5) javax.faces:jsf-api:jar:1.2_12

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dvers
ion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dversio
n=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-api:jar:1.2_12

6) javax.faces:jsf-impl:jar:1.2_12

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dver
sion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dversi
on=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-impl:jar:1.2_12

----------
6 required artifacts are missing.

for artifact:
org.docs.richfaces:jsf-app:war:3.3.3

from the specified remote repositories:
central (http://repo1.maven.org/maven2)



[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Fri Apr 23 16:39:44 IST 2010
[INFO] Final Memory: 7M/18M
[INFO]
------------------------------------------------------------------------
C:\sample\jsf-app>
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28340212.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Aleksey Didik
2010-04-23 12:05:08 UTC
Permalink
Please, send to me a command from console?
Maven try to use SNAPSHOT versions. It's strange.
Post by pankjajain15
ya i tried your command, but again foung following error
----------
1) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=org.richfaces.framework
-DartifactId=rich
faces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[u
rl] -DrepositoryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT
2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=org.richfaces.framework
-DartifactId=rich
faces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[
url] -DrepositoryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT
3) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces
-ui -Dversion=3.3.2.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces-u
i -Dversion=3.3.2.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA
4) el-impl:el-impl:jar:1.0
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=
1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=1.
0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) el-impl:el-impl:jar:1.0
5) javax.faces:jsf-api:jar:1.2_12
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dvers
ion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dversio
n=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-api:jar:1.2_12
6) javax.faces:jsf-impl:jar:1.2_12
Try downloading the file manually from the project website.
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dver
sion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dversi
on=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-impl:jar:1.2_12
----------
6 required artifacts are missing.
org.docs.richfaces:jsf-app:war:3.3.3
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Fri Apr 23 16:39:44 IST 2010
[INFO] Final Memory: 7M/18M
[INFO]
------------------------------------------------------------------------
C:\sample\jsf-app>
pankjajain15
2010-04-23 12:11:46 UTC
Permalink
i used same command as u told me

the command is as follow
C:\sample2>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28340531.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Aleksey Didik
2010-04-23 12:19:50 UTC
Permalink
Ok, I undertsand.

Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.

Try to change previously added <profiles> section to listed below and
try again with command.

<profiles>
<profile>
<id>jboss-repo</id>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>

<profile>
<id>jboss-repo-snapshots</id>
<repositories>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-repo</activeProfile>
<activeProfile>jboss-repo-snapshots</activeProfile>
</activeProfiles>
Post by pankjajain15
i used same command as u told me
the command is as follow
C:\sample2>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
pankjajain15
2010-04-23 12:34:29 UTC
Permalink
till it is asking for snapshot version
Post by Aleksey Didik
Ok, I undertsand.
Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.
Try to change previously added <profiles> section to listed below and
try again with command.
<profiles>
<profile>
<id>jboss-repo</id>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>jboss-repo-snapshots</id>
<repositories>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-repo</activeProfile>
<activeProfile>jboss-repo-snapshots</activeProfile>
</activeProfiles>
Post by pankjajain15
i used same command as u told me
the command is as follow
C:\sample2>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28340758.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Aleksey Didik
2010-04-23 12:47:49 UTC
Permalink
Ok, I have capitulated.

Sorry pankjajain, but it's much difficult to start maven project then 5
minute install.
Maven environment need to be configured. Different repositories must be
added to your configuration.
Try to read what Maven is. It will lead your to the right way.

By the way, try to change archetype version in command to earlier, like

3.3.1.GA
3.3.0.GA
3.2.2.GA
3.3.1.GA

May be the luck will be with you in one moment and this version of archetype will use only releases...

Aleksey.
Post by pankjajain15
till it is asking for snapshot version
Post by Aleksey Didik
Ok, I undertsand.
Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.
Try to change previously added<profiles> section to listed below and
try again with command.
<profiles>
<profile>
<id>jboss-repo</id>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>jboss-repo-snapshots</id>
<repositories>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-repo</activeProfile>
<activeProfile>jboss-repo-snapshots</activeProfile>
</activeProfiles>
Post by pankjajain15
i used same command as u told me
the command is as follow
C:\sample2>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
---------------------------------------------------------------------
pankjajain15
2010-04-23 13:12:10 UTC
Permalink
hey Aleksey

tried following command

C:\sample2\jsf-app>mvn archetype:generate
-DarchetypeGroupId=org.richfaces.cdk -
DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.3-SNAPSHOT
-DgroupId=org.docs.richfaces -DartifactId=jsf-app

and it build it successfully

then i changed the whole dependency like follow

<dependencies>

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>servlet-api</artifactId>

<version>2.4</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>jsp-api</artifactId>

<version>2.0</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>jstl</groupId>

<artifactId>jstl</artifactId>

<version>1.1.2</version>

</dependency>

<dependency>

<groupId>javax.servlet.jsp</groupId>

<artifactId>jsp-api</artifactId>

<version>2.1</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>javax.faces</groupId>

<artifactId>jsf-api</artifactId>

<version>1.2_12</version>

</dependency>

<dependency>

<groupId>javax.faces</groupId>

<artifactId>jsf-impl</artifactId>

<version>1.2_12</version>

</dependency>

<dependency>

<groupId>javax.el</groupId>

<artifactId>el-api</artifactId>

<version>1.0</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>el-impl</groupId>

<artifactId>el-impl</artifactId>

<version>1.0</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>javax.annotation</groupId>

<artifactId>jsr250-api</artifactId>

<version>1.0</version>

</dependency>

<!-- RichFaces libraries -->

<dependency>

<groupId>org.richfaces.framework</groupId>

<artifactId>richfaces-api</artifactId>

<version>3.3.3-SNAPSHOT</version>

</dependency>

<dependency>

<groupId>org.richfaces.framework</groupId>

<artifactId>richfaces-impl</artifactId>

<version>3.3.3-SNAPSHOT</version>

</dependency>

<dependency>

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

<artifactId>richfaces-ui</artifactId>

<version>3.3.3-SNAPSHOT</version>

</dependency>

</dependencies>

then from command prompt i used command mvn -install

then it shown me build error with following message

Missing:
----------
1) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-api -Dversion=3.3.3-SNAPSHOT -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.framework
-DartifactId=rich
faces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[u
rl] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-impl -Dversion=3.3.3-SNAPSHOT -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.framework
-DartifactId=rich
faces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[
url] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

3) org.richfaces.ui:richfaces-ui:jar:3.3.3-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces
-ui -Dversion=3.3.3-SNAPSHOT -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.ui
-DartifactId=richfaces-u
i -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dre
positoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) org.richfaces.ui:richfaces-ui:jar:3.3.3-SNAPSHOT

4) javax.faces:jsf-api:jar:1.2_12

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dvers
ion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dversio
n=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-api:jar:1.2_12

5) javax.faces:jsf-impl:jar:1.2_12

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dver
sion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dversi
on=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) javax.faces:jsf-impl:jar:1.2_12

6) el-impl:el-impl:jar:1.0

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=
1.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=1.
0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.docs.richfaces:jsf-app:war:3.3.3
2) el-impl:el-impl:jar:1.0

----------
6 required artifacts are missing.

for artifact:
org.docs.richfaces:jsf-app:war:3.3.3

from the specified remote repositories:
central (http://repo1.maven.org/maven2)



[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Fri Apr 23 18:29:09 IST 2010
[INFO] Final Memory: 7M/18M
[INFO]
------------------------------------------------------------------------
C:\sample2\jsf-app>


please tell me what would be the problem for above
Post by Aleksey Didik
Ok, I have capitulated.
Sorry pankjajain, but it's much difficult to start maven project then 5
minute install.
Maven environment need to be configured. Different repositories must be
added to your configuration.
Try to read what Maven is. It will lead your to the right way.
By the way, try to change archetype version in command to earlier, like
3.3.1.GA
3.3.0.GA
3.2.2.GA
3.3.1.GA
May be the luck will be with you in one moment and this version of
archetype will use only releases...
Aleksey.
Post by pankjajain15
till it is asking for snapshot version
Post by Aleksey Didik
Ok, I undertsand.
Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.
Try to change previously added<profiles> section to listed below and
try again with command.
<profiles>
<profile>
<id>jboss-repo</id>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>jboss-repo-snapshots</id>
<repositories>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-repo</activeProfile>
<activeProfile>jboss-repo-snapshots</activeProfile>
</activeProfiles>
Post by pankjajain15
i used same command as u told me
the command is as follow
C:\sample2>mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
---------------------------------------------------------------------
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/integration-problem-tp28337509p28341185.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Wayne Fay
2010-04-23 14:00:35 UTC
Permalink
Please ask the Richfaces people who created this archetype. Or the
Jboss folks who are hosting it.

This list can't help with bad/broken archetypes.

Wayne
Post by pankjajain15
hey Aleksey
tried following command
C:\sample2\jsf-app>mvn archetype:generate
-DarchetypeGroupId=org.richfaces.cdk -
DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.3-SNAPSHOT
 -DgroupId=org.docs.richfaces -DartifactId=jsf-app
please tell me what would be the problem for above
Loading...