Hello,

Please always give a subject to your mail.

>From your errors files :
>> from the specified remote repositories:
>>  central (http://repo1.maven.org/maven2)
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.
I don't use windows; did maven create its .m2 directory ? or perhaps, you have to set an environment variable (M2_HOME ?); check maven documentation. You do not have to create this .m2 directory. It is done by maven, and not by subversion.

>From maven documentation :
<< There are two locations where a settings.xml file may live:
  • The Maven install: $M2_HOME/conf/settings.xml
  • A user's install: ${user.dir}/.m2/settings.xml 
>>

You may also give it to maven as an argument : "-s /path/to/your/settings.xml"


Sandor Nyerges a écrit :

Hello

I ran into a problem and I'd like to detail the steps that led up to it, so you can see if I did something wrong, or didn't do something I was supposed to do. We need to work with the Nuxeo source code, so I have followed the instructions in chapter 3 and appendix B of the
Nuxeo Book:

I have installed Eclipse, Jboss, Maven, Ant, Subversion client, all
the latest and greatest releases.
I've already had upgraded my Java to 6 earlier, but I still have JDK1.5 and pointed my JAVA_HOME to it, so now when I say "mvn -version" it tells me the following:
   Maven version: 2.0.8
   Java version: 1.5.0_09
   OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Then I created a folder in my machine called "nuxeo" and using Tortoise I checked out your source files from  you repository http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk. I've gotten altogether 119 folders and 3 files in my folder "nuxeo". (See attached 1.gif.)

The three files were: nuxeo-platform-parent.iml, pom.xml and  settings.xml. Then I added the following element to settings.xml

      <properties>
        <downloadSources>true</downloadSources>
      </properties>

instructed in 3.3.1.2 of Chapter 3, Maven settings, and now indicated by the red exclamation mark on its icon. (2.gif)

Then I created dummy.xml with contents

   <?xml version="1.0" encoding="UTF-8"?>
   <project>
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.example</groupId>
     <artifactId>MNG-2261-workaround</artifactId>
     <packaging>pom</packaging>
     <version>1</version>
   </project>

At this point, I should have been able to go on to 3.3.1.3 "Generate the sample project with nuxeo-archetype-simple" using Maven, but could not make any headway.

The command
"mvn archetype:create -DartifactId=simg-nuxeo -DgroupId=com.simg.sandbox -DarchetypeArtifactId=nuxeo-archetype-simple -DarchetypeGroupId=org.nuxeo.archetypes -DarchetypeVersion=5.1-SNAPSHOT -f dummy.xml"

generated the error in "dummy error.txt", attached.


And the command
"mvn archetype:create -DartifactId=simg-nuxeo -DgroupId=com.simg.sandbox -DarchetypeArtifactId=nuxeo-archetype-simple -DarchetypeGroupId=org.nuxeo.archetypes -DarchetypeVersion=5.2-SNAPSHOT -DremoteRepositories=http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot"

gave "snapshot error.txt", attached.

I assumed that Maven always follows the links in settings.xml, so I went to the repositories that are enumerated in that file, namely

http://archiva.nuxeo.org/archiva/repository/external_snapshot
http://archiva.nuxeo.org/archiva/repository/nuxeo_release
http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot
http://archiva.nuxeo.org/archiva/repository/central

manually, to see if the artifact nuxeo-archetype-simple version 5.1-SNAPSHOT is available somewhere in them.

Sure enough, it was right there in http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot/org/nuxeo/archetypes/nuxeo-archetype-simple/5.1-SNAPSHOT/

So why did Maven not find it? Did it even look there? Or it did but was denied? It is conceivable because my machine is in a DMZ. But if I can go there manually, why can Maven not? How can I see what it is doing?

This is the same problem that a number of other people ran into in the past, as discussed on the forum. But somehow they either did not get satisfactory answers or they never acknowledged how helpful the help was that they got. One thing that puzzles me is this .m2 directory. Am I to create it? I thought checking out the source files would do that for me, but it didn't. Might this have to do with anything?




-- 
Julien CARSIQUE, Nuxeo (Paris, France)
Open Source Enterprise Content Management - http://www.nuxeo.org/
Nuxeo EP 5: extensible, Java EE and standards based ECM Platform
http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to