Hi! At first I have to say: I am an absolute java newbie, but no total newbie. As far I primarily used .Net technologies, so please excuse any "dumb" questions, that I might ask! :wistle:
I want do use AppFuse for a modular project, because I'd like to have a webinterface and a backend, that only consists of a mysql database. Therefore I chose the "Modular JSF" project skeleton of AppFuse. Calling :working: "mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject" worked just fine, but when I wanted to execute the command "mvn jetty:run-war" :working: from my project's web directory I get the error: C:\Users\Alex\Studium\Advanced Software Engineering\src\System\myproject\web>mvn jetty:run-war [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 Downloading: http://repo1.maven.org/maven2/com/mycompany/app/myproject-core/1.0- SNAPSHOT/myproject-core-1.0-SNAPSHOT.pom Downloading: http://static.appfuse.org/repository/com/mycompany/app/myproject-co re/1.0-SNAPSHOT/myproject-core-1.0-SNAPSHOT.pom Downloading: http://download.java.net/maven/1//com.mycompany.app/poms/myproject- core-1.0-SNAPSHOT.pom Downloading: http://repo1.maven.org/maven2/com/mycompany/app/myproject-core/1.0- SNAPSHOT/myproject-core-1.0-SNAPSHOT.jar Downloading: http://static.appfuse.org/repository/com/mycompany/app/myproject-co re/1.0-SNAPSHOT/myproject-core-1.0-SNAPSHOT.jar Downloading: http://download.java.net/maven/1//com.mycompany.app/jars/myproject- core-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.mycompany.app:myproject-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.app -DartifactId=myprojec t-core \ -Dversion=1.0-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=com.mycompany.app -DartifactId=myproject-co re \ -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.mycompany.app:myproject-webapp:war:1.0-SNAPSHOT 2) com.mycompany.app:myproject-core:jar:1.0-SNAPSHOT ---------- 1 required artifact is missing. for artifact: com.mycompany.app:myproject-webapp:war:1.0-SNAPSHOT from the specified remote repositories: appfuse (http://static.appfuse.org/repository), java.net (http://download.java.net/maven/1/), central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Fri Nov 09 12:32:20 CET 2007 [INFO] Final Memory: 11M/20M [INFO] ------------------------------------------------------------------------ Additionally when I want to run the command "mvn install eclipse:eclipse" :working:I get the following error: C:\Users\Alex\Studium\Advanced Software Engineering\src\System\myproject>mvn ins tall eclipse:eclipse [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] AppFuse Modular Application [INFO] AppFuse Modular Application - Core [INFO] AppFuse Modular Application - Web (JSF) [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] ------------------------------------------------------------------------- --- [INFO] Building AppFuse Modular Application [INFO] task-segment: [install, eclipse:eclipse] [INFO] ------------------------------------------------------------------------- --- [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing C:\Users\Alex\Studium\Advanced Software Engineering\src\System \myproject\pom.xml to C:\Users\Alex\.m2\repository\com\mycompany\app\myproject\1 .0-SNAPSHOT\myproject-1.0-SNAPSHOT.pom [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping [INFO] [eclipse:eclipse] [INFO] Not running eclipse plugin goal for pom project [INFO] Adding support for WTP version 1.5. [INFO] ------------------------------------------------------------------------- --- [INFO] Building AppFuse Modular Application - Core [INFO] task-segment: [install, eclipse:eclipse] [INFO] ------------------------------------------------------------------------- --- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.sun:tools:jar:1.4.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun -DartifactId=tools \ -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools \ -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0-beta-2 2) com.sun:tools:jar:1.4.2 ---------- 1 required artifact is missing. for artifact: org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0-beta-2 from the specified remote repositories: appfuse (http://static.appfuse.org/repository), codehaus.org (http://repository.codehaus.org), java.net (http://download.java.net/maven/1/), snapshots (http://snapshots.repository.codehaus.org), central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Fri Nov 09 12:33:28 CET 2007 [INFO] Final Memory: 12M/21M [INFO] ------------------------------------------------------------------------ I mean I understand, that there was a problem in downloading an artifact (whatever that is) and that I have to download it manually, to get things to work, BUT I cannot find these (I think in .Net we would call this "dependencies" :D) artifacts anywhere on the web. So please help me: What am I doing wrong? I followed each step of the "AppFuse Quickstart Quide": I Installed MySql 5.1, Java 6, Maven 2.x?, FreeSmtp, etc. and now nothing works.... :-( I mean can this be, because I have those progs/frameworks in a different folder than c:\tools and c:\java etc.? Please Help!! :-(( -- View this message in context: http://www.nabble.com/cannot-create-mvn-Eclipse-project...-tf4777142s2369.html#a13665326 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
