Yes, the right syntax is :
mvn install:install-file -DgroupId=org.nuxeo.portlet -DartifactId=nuxeo-portlet-generic -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


David Knox a écrit :
Executing the recommended:
[EMAIL PROTECTED] nuxeo-portlet-search]$ (jdk5)../apache-maven-2.0.8/bin/mvn install -DgroupId=org.nuxeo.portlet -DartifactId=nuxeo-portlet-generic -Dversion=1.0-SNAPSHOT

Results in:
Missing:
----------
1) org.nuxeo.portlet:nuxeo-portlet-generic:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
mvn install:install-file -DgroupId=org.nuxeo.portlet -DartifactId=nuxeo-portlet-generic -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=org.nuxeo.portlet -DartifactId=nuxeo-portlet-generic -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.nuxeo.portlet:nuxeo-portlet-search:war:1.0-SNAPSHOT
        2) org.nuxeo.portlet:nuxeo-portlet-generic:jar:1.0-SNAPSHOT


that's why,
--knoxy


Julien CARSIQUE wrote:
Why did you write "mvn install:install:portlet:pom:pom" ?
Did you want to use, as Stéphane proposed, "mvn install -DgroupId=..." ?

David Knox a écrit :
I'm going through each maven repository failure step by step. I've been able to resolve them using more verbose command line - all except this one: install:portlet:pom:pom

=== CL:

../apache-maven-2.0.8/bin/mvn install:install:portlet:pom:pom \ -DgroupId=org.nuxeo.portlet -DartifactId=nuxeo-portlet-generic \ -Dversion=1.0-SNAPSHOT

======= Result:

[INFO] Failed to resolve artifact.

GroupId: install
ArtifactId: portlet
Version: pom

Reason: Unable to download the artifact from any repository

  install:portlet:pom:pom

maybe I have something wrong in the version or name?
--knoxy


Stefane Fermigier wrote:

On Jan 16, 2008, at 2:23 AM, David Knox wrote:

Hello,
Hope I found the right list. I'm building the restlets and portal add-ins and running into a problem. I pasted the settings.xml from the documentation. I still have an unresolved artifact org.nuxeo.portlet:nuxeo-portlet-search:war:1.0-SNAPSHOT

The pom is in nuxeo-portlet-search

The nuxeo-portlet-* modules are not yet deployed to the Nuxeo Maven repository (even the nuxeo_snapshot one) since they are not yet packaged and released properly, so you just have to install ("mvn install") them locally in the proper order.

We need to take care of making this more straightforward as part of the upcoming 5.1.3 release.

  S.

--
Stefane Fermigier, CEO, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
New! Nuxeo TV on http://nuxeo.blip.tv/
Web: http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87


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




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

Reply via email to