Hi all,
Firstly, I apologize if this has already been answered. I tried posting it on
the dev mailing list, but this one seems to be more active. I'm a newbie to
AppFuse 2.0, and trying to build/deploy the JSF modular archetype. I can
successfully run 'mvn integration-test', but getting the following error when I
run 'mvn jetty:run-war' from the 'web' directory of my project (I used the
following when downloading the archetype: -DgroupId=com.mycompany
-DartifactId=myproject_modular):
===================================================================
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Web (JSF)
[INFO] task-segment: [jetty:run-war]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[INFO] snapshot com.mycompany:myproject_modular-core:1.0-SNAPSHOT: checking for
updates from central
[INFO] snapshot com.mycompany:myproject_modular-core:1.0-SNAPSHOT: checking for
updates from appfuse
Downloading:
http://repo1.maven.org/maven2/com/mycompany/myproject_modular-core/1.0-SNAPSHOT/myproject_mo
dular-core-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource
'com.mycompany:myproject_modular-core:pom:1.0-SNAPSHOT' from repository
central (http://repo1.maven.org/maven2)
Downloading:
http://static.appfuse.org/repository/com/mycompany/myproject_modular-core/1.0-SNAPSHOT/mypro
ject_modular-core-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource
'com.mycompany:myproject_modular-core:pom:1.0-SNAPSHOT' from repository
appfuse (http://static.appfuse.org/repository)
Downloading:
http://repo1.maven.org/maven2/com/mycompany/myproject_modular-core/1.0-SNAPSHOT/myproject_mo
dular-core-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource
'com.mycompany:myproject_modular-core:jar:1.0-SNAPSHOT' from repository
central (http://repo1.maven.org/maven2)
Downloading:
http://static.appfuse.org/repository/com/mycompany/myproject_modular-core/1.0-SNAPSHOT/mypro
ject_modular-core-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource
'com.mycompany:myproject_modular-core:jar:1.0-SNAPSHOT' from repository
appfuse (http://static.appfuse.org/repository)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.mycompany:myproject_modular-core:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.mycompany
-DartifactId=myproject_modular-core \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.mycompany:myproject_modular-webapp:war:1.0-SNAPSHOT
2) com.mycompany:myproject_modular-core:jar:1.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.mycompany:myproject_modular-webapp:war:1.0-SNAPSHOT
from the specified remote repositories:
appfuse (http://static.appfuse.org/repository),
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sat Feb 24 23:17:55 EST 2007
[INFO] Final Memory: 10M/19M
[INFO] ------------------------------------------------------------------------
====================================================================
I'm not sure why it's trying to download the jar for core module. Any ideas
what I'm doing wrong?
Thanks
-yogesh
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.