You need to run "mvn install -N" from the top level to get the parent pom.xml installed.
Matt On 3/31/07, Yogesh Bhardwaj <[EMAIL PROTECTED]> wrote:
I really can't seem to figure out what the problem is. Earlier I was using JSE 6, and then I installed JSE 5 on a clean machine, but the problem still persists. I would really appreciate any feedback on what might be wrong. Environment: Java - 1.5.0_11 Maven - 2.0.5 MySQL - 5.2.3 Steps: 1) mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m4 -DgroupId=com.mycompany -DartifactId=myproject_jsf_modular 2) cd myproject_jsf_modular mvn integration-test 3) cd core mvn install 4) cd ..\web mvn jetty:run-war Error: ************************************************************************* GroupId: com.mycompany ArtifactId: myproject_jsf_modular Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository com.mycompany:myproject_jsf_modular:pom:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), appfuse (http://static.appfuse.org/repository) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Sat Mar 31 15:01:04 EDT 2007 [INFO] Final Memory: 7M/13M [INFO] ------------------------------------------------------------------------ ************************************************************************ Thanks for your time. -yogesh Yogesh Bhardwaj <[EMAIL PROTECTED]> wrote: Thanks Matt, I actually did run 'mvn integration-test' from the root directory of my project before running 'mvn jetty:run-war' from the 'web' directory. After you suggested, I tried 'mvn install' from the 'core' directory as well, but that didn't help either. Maybe I did not follow all the steps from the QuickStart, I'll re-check. Thanks for your help. -yogesh Matt Raible <[EMAIL PROTECTED]> wrote: You need to run "mvn install" in your core module first. If you run "mvn integration-test" from the root directory of your project, this should run "mvn install" on the core module for you. If there's any way we can make the QuickStart instructions more clear, please let us know. As far as this list being more active than the dev list: your e-mail is probably one that's "starred" in my inbox. I try to answer all questions that I know the answer to, but last week I started a new project and didn't have much time to work on (and support) AppFuse. This will probably continue for the next few months. However, the good news is I will be using AppFuse 2.0 (the Struts 2 version) on this project - so hopefully that will accelerate the final release. Matt On 2/25/07, Yogesh Bhardwaj wrote: > 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. -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ________________________________ Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut. ________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]