You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/01/18 09:29:13 UTC
svn commit: r125468 - /maven/maven-1/core/trunk/xdocs/faq.fml
Author: brett
Date: Tue Jan 18 00:29:11 2005
New Revision: 125468
URL: http://svn.apache.org/viewcvs?view=rev&rev=125468
Log:
documentation work
Modified:
maven/maven-1/core/trunk/xdocs/faq.fml
Modified: maven/maven-1/core/trunk/xdocs/faq.fml
Url: http://svn.apache.org/viewcvs/maven/maven-1/core/trunk/xdocs/faq.fml?view=diff&rev=125468&p1=maven/maven-1/core/trunk/xdocs/faq.fml&r1=125467&p2=maven/maven-1/core/trunk/xdocs/faq.fml&r2=125468
==============================================================================
--- maven/maven-1/core/trunk/xdocs/faq.fml (original)
+++ maven/maven-1/core/trunk/xdocs/faq.fml Tue Jan 18 00:29:11 2005
@@ -243,6 +243,18 @@
</answer>
</faq>
+ <faq id="add-jar-to-local-repository">
+ <question>How do I add a JAR from a non-Maven project to my local repository?</question>
+ <answer>
+ <p>
+ If it is a JAR that cannot be uploaded to Ibiblio because of a license, or it is private,
+ you must manually copy it to your local repository. After picking a sensible group ID, and making
+ sure the filename is in the format <code>artifactId-version.jar</code>, copy it to
+ <code>${maven.repo.local}/groupId/jars/artifactId-version.jar</code>.
+ </p>
+ </answer>
+ </faq>
+
<faq id="share-local-repository">
<question>I share a development machine. How can I share the local repository to save downloading?</question>
<answer>
@@ -544,9 +556,23 @@
<answer>
<!-- TODO: filters: add to using somewhere, and reference. Also add warning about reproducible artifacts... -->
<p>
- This can now be done using resource filtering. See this wiki entry for more information:
- <a href="http://wiki.codehaus.org/maven/FilteringResources">http://wiki.codehaus.org/maven/FilteringResources</a>.
+ This can be done using resource filtering. In your POM, add the filtering property to your existing
+ resources definition:
</p>
+ <source><![CDATA[<resources>
+ <resource>
+ <filtering>true</filtering>
+ ...
+ </resource>
+</resources>]]></source>
+ <p>
+ At the moment, you must define Ant filters to achieve this. This can be done using a pre-goal on
+ <code>java:jar-resources</code>, for example:
+ </p>
+ <source><![CDATA[<preGoal name="java:jar-resources">
+ <ant:filter token="some.property" value="some_value" />
+ <ant:filter filtersfile="some.properties" />
+</preGoal>]]></source>
</answer>
</faq>
<!-- TODO: actually, don't think this belongs here - calling ant scripts from maven
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org