You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by tr...@apache.org on 2005/09/05 18:34:34 UTC
svn commit: r278793 -
/maven/components/trunk/maven-site/src/site/fml/general.fml
Author: trygvis
Date: Mon Sep 5 09:34:28 2005
New Revision: 278793
URL: http://svn.apache.org/viewcvs?rev=278793&view=rev
Log:
Fixing MNG-837: "faq entry for how to load a jar into your local repository".
o Thanks to Matthew Pocock for the patch.
Modified:
maven/components/trunk/maven-site/src/site/fml/general.fml
Modified: maven/components/trunk/maven-site/src/site/fml/general.fml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/fml/general.fml?rev=278793&r1=278792&r2=278793&view=diff
==============================================================================
--- maven/components/trunk/maven-site/src/site/fml/general.fml (original)
+++ maven/components/trunk/maven-site/src/site/fml/general.fml Mon Sep 5 09:34:28 2005
@@ -122,5 +122,39 @@
</p>
</answer>
</faq>
+
+ <faq id="importing-jars">
+ <question>I have a jar that I want to put into my local repository. How can I copy it in?</question>
+ <answer>
+ <p>
+ If you understand the layout of the maven repository, you can copy the jar directly into where it
+ is meant to go. Maven will find this file next time it is run.
+ </p>
+
+ <p>
+ If you are not confident about the layout of the maven repository, then you can
+ adapt the following command to load in your jar file, all on one line.
+ </p>
+
+ <source><![CDATA[
+m2 install:install-file
+ -Dfile=<path-to-file>
+ -DgroupId=<group-id>
+ -DartifactId=<artifact-id>
+ -Dversion=<version>
+ -Dpackaging=<packaging>
+
+Where: <path-to-file> the path to the file to load
+ <group-id> the group that the file should be registered under
+ <artifact-id> the artifact name for the file
+ <version> the version of the file
+ <packaging> the packaging of the file e.g. jar
+ ]]></source>
+
+ <p>
+ This should load in the file into the maven repository, renaming it as needed.
+ </p>
+ </answer>
+ </faq>
</part>
</faqs>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org