Julien CARSIQUE ha scritto:
Well, I don't know what's your issue. It's outside nuxeo. You should be able to download artifacts from public maven repositories. I suppose looking at http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom in your browser works too ?
Yes it works. It shows an XML file starting with:
−
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
−
<parent>
<artifactId>maven-archetype</artifactId>
<groupId>org.apache.maven.archetype</groupId>
<version>1.0-alpha-7</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Archetype Plugin</name>
−
<description>
(nevermind about repo1 or repo2, these are redirections done by maven).

Which maven version do you use ? We recommend 2.0.9 or 2.0.10.
Maven version is:
mi...@msb02:/My/SW/Nuxeo$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_18
OS name: "linux" version: "2.6.28-11-generic" arch: "amd64" Family: "unix"
mi...@msb02:/My/SW/Nuxeo$

Forgot to mention my framework: Kububuntu 9.06 64 Bit

Maybe your local repository is corrupted, try to remove (rename if you don't want to loose it) ~/.m2/repository/
The .m2 directory is empty
I've done a fresh install of java 1.5, ant and mvn

At least, I think a workaround would be to setup Nuxeo repositories in order to download this artifact from our caches. You may try, create a file ~/.m2/settings.xml and paste into it:
<setttings>
<repositories>
<repository>
<id>public</id>
<url>http://maven.nuxeo.org/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>public-snapshot</id>
<url>http://maven.nuxeo.org/public-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</settings>

But, if it works, it is only a workaround and doesn't explain why your maven cannot download artifacts from default repository.


Well, I'm going crazy.
Creating a settings.xml file containing your code I got the error:

mi...@msb02:/My/SW/Nuxeo$ ./makeprj1.sh msb01
Error reading settings.xml: end tag name </settings> must match start tag name <setttings> from line 1 (position: TEXT seen ...</repositories>\n</settings>... @24:12)
Line: 24
Column: 12

Supposing an error in cut&paste, I created a settings.xml file containing:

<?xml version="1.0" encoding="UTF-8"?>
<settings>

</settings>

and magically issuing the same command I obtain a Build Successful message.

Thanks a lot for your help an your time.

Mirto




begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[email protected]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to