For the command line use the latest released version.
You can install jars to local repository using install plugin. See
http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html
mvn install:install-file -Dfile=path-to-your-artifact-jar \
-DgroupId=your.groupId \
-DartifactId=your-artifactId \
-Dversion=version \
-Dpackaging=jar \
-DpomFile=path-to-pom \
-DlocalRepositoryPath=path-to-specific-local-repo \
-DlocalRepositoryId=id-for-specific-local-repo
Important params are groupId, artifactId and version. You also need
file to point to your jar. The other params can be probably skipped.
We have JIRA issue to provide wizard for this (anyone want to
contribute?).
In a mean time you can try to create Maven launch configuration with
these params.
regards,
Eugene
Andy Dingfelder wrote:
I asked this deep in another thread but it got lost there, and I think
it sort of belongs in it's own thread.
Eugene suggested using the command line when I encountered issues and I
thought it sounded like a good idea, but I never got around to it.
Now, I am trying to get a couple of jars added to my pom that maven is
failing on (such as comm-2.0.jar for javax.comm stuff), so I guess I
need to do it manually.
Trying mvn on the command line gives an error, as of course I never
installed maven (I only have it as a plugin within eclipse)
What do you suggest installing? Maven 2.0.4 ?
Cheers,
Andy
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: This email and any attachments may be confidential and/or
privileged. They are intended for the addressee only and are not to be read,
used, copied or disseminated by anyone receiving them in error. If you are
not the intended recipient, please notify the sender by return email and
delete this message and any attachments.
The views expressed in this email are those of the sender and do not
necessarily reflect the official views of Landcare Research.
SirTrack
http://www.sirtrack.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email