Sorry guys, I've forgotten to give a subject heading: let's use "Maven problem" for lack of a better term.
In the meantime I dug into Maven a little deeper and there is a command: "mvn install -X" that runs without a project specified but gives feedback about Maven itself. I tried it and as far as I can tell, it ran fine. Here is an excerpt from it: E:\Documents and Settings>mvn install -X + Error stacktraces are turned on. Maven version: 2.0.8 Java version: 1.5.0_09 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [DEBUG] Building Maven user-level plugin registry from: 'E:\Documents and Settings\Sandor Nyerges\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Program Files\Maven\apache-maven-2.0.8\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1K downloaded [DEBUG] Artifact resolved [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom 3K downloaded [DEBUG] Artifact resolved [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Skipping disabled repository snapshots [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom 6K downloaded [DEBUG] Artifact resolved [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] Skipping disabled repository snapshots [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom 3K downloaded [DEBUG] Artifact resolved [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar 13K downloaded [DEBUG] Artifact resolved [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from central [DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository central [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom 2K downloaded [DEBUG] Artifact resolved ....... ....... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. I think this is telling me that Maven is ok, since it could resolve and download all those things it needed. But I still have the same problem when I try to execute the nuxeo command: "mvn -e archetype:create -DartifactId=simg-nuxeo -DgroupId=com.simg.sandbox -DarchetypeArtifactId=nuxeo-archetype-simple -DarchetypeGroupId=org.nuxeo.archetypes -DarchetypeVersion=5.1-SNAPSHOT -f dummy.xml" Here is an excerpt from its response: ..... [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.nuxeo.archetypes ArtifactId: nuxeo-archetype-simple Version: 5.1-SNAPSHOT Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.nuxeo.archetypes -DartifactId=nuxeo-archetype-simple -Dve rsion=5.1-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.nuxeo.archetypes -DartifactId=nuxeo-archetype-simple -Dvers ion=5.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.nuxeo.archetypes:nuxeo-archetype-simple:jar:5.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) ..... Julien says that "This tells that maven doesn't search in our archiva.nuxeo.org repositories, only from the default "central" maven repository; you surely have an error with your maven settings.". Thanks Julien for your prompt reply. Where does Maven get the idea to look in http://repo1.maven.org/maven2 for nuxeo-archetype-simple? Is it a default location? It is certainly not specified in settings or pom, or dummy xml files. Any pointers will be welcome. Thanks. Sandor _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
