mirror of https://github.com/apache/maven.git
PR: MNG-550
Submitted by: Edwin Punzalan Reviewed by: Brett Porter applied FAQ update with some modifications for out of date information since the issue was filed. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f9df843a9
commit
4829ddc7e2
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<faqs id="General FAQ">
|
||||
<part id="General">
|
||||
<faqs title="Frequently Asked Technical Questions">
|
||||
<part id="faq">
|
||||
<faq id="scope-provided">
|
||||
<question>How do I prevent including JARs in WEB-INF/lib? I need a "compile only" scope!</question>
|
||||
<answer>
|
||||
|
@ -21,10 +21,12 @@
|
|||
<answer>
|
||||
<p>
|
||||
To see a list of available plugins, browse the Maven 2 plugin repository
|
||||
at <a href="http://www.ibiblio.org/maven2/plugins/">http://www.ibiblio.org/maven2/plugins/</a>.
|
||||
at
|
||||
<a href="http://www.ibiblio.org/maven2/plugins/">http://www.ibiblio.org/maven2/plugins/</a>.
|
||||
Plugins are organized according to a directory structure that resembles
|
||||
the standard Java package naming convention. To see a list of available
|
||||
plugins from the Maven project look in the <a href="http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/">org/apache/maven subfolder</a>
|
||||
plugins from the Maven project look in the
|
||||
<a href="http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/">org/apache/maven subfolder</a>
|
||||
of this directory.
|
||||
</p>
|
||||
</answer>
|
||||
|
@ -38,11 +40,13 @@
|
|||
<ul>
|
||||
<li>
|
||||
For use in a plugin written in Java, Beanshell or other Java-like scripting language, you can construct
|
||||
the Ant tasks using the <a href="http://ant.apache.org/manual/antexternal.html">instructions given in the Ant
|
||||
the Ant tasks using the
|
||||
<a href="http://ant.apache.org/manual/antexternal.html">instructions given in the Ant
|
||||
documentation</a>
|
||||
</li>
|
||||
<li>
|
||||
You can write your plugin using Marmalade, and use the Ant tasks much like you would from Jelly in Maven 1.0.
|
||||
You can write your plugin using Marmalade, and use the Ant tasks much like you would from Jelly in Maven
|
||||
1.0.
|
||||
</li>
|
||||
<li>
|
||||
If you have very small amounts of Ant script specific to your project, you can use the
|
||||
|
@ -51,5 +55,72 @@
|
|||
</ul>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="Compiling-J2SE-5">
|
||||
<question>How do I set up Maven so it will compile with a target and source JVM of my choice?</question>
|
||||
<answer>
|
||||
<p>
|
||||
You must configure the source and target parameters in your pom. For example, to set the source and target JVM
|
||||
to 1.5, you should have in your pom :
|
||||
</p>
|
||||
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
...
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
...
|
||||
</build>
|
||||
]]></source>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="dir-struct">
|
||||
<question>Is it possible to create my own directory structure?</question>
|
||||
<answer>
|
||||
<p>
|
||||
Absolutely yes!
|
||||
</p>
|
||||
<p>
|
||||
By configuring <sourceDirectory>, <resources> and other elements of
|
||||
the <build> section.
|
||||
</p>
|
||||
<p>
|
||||
In addition, you may need to change plugin configuration if you are
|
||||
not using plugin defaults for their files/directories.
|
||||
</p>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="m2-source-code">
|
||||
<question>Where is the source code? I couldn't seem to find a link anywhere on the Maven2 site.</question>
|
||||
<answer>
|
||||
<p>
|
||||
The source code can be found in subversion: <a href="http://svn.apache.org/repos/asf/maven/components/trunk">http://svn.apache.org/repos/asf/maven/components/trunk</a>.
|
||||
</p>
|
||||
<p>
|
||||
For more information, see <a href="building.html">Building Maven 2.0</a>.
|
||||
</p>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="proxy-needed">
|
||||
<question>Maven can't seem to download the dependencies. Is my installation correct?</question>
|
||||
<answer>
|
||||
<p>
|
||||
You most probably need to configure Maven to use a proxy. Please see the information on
|
||||
<a href="configuration.html">configuring settings.xml</a> for how to configure your proxy
|
||||
for Maven.
|
||||
</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
</faqs>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
<item name="Introduction" href="/index.html"/>
|
||||
<item name="General Information" href="/about.html"/>
|
||||
<item name="For Maven 1.0 Users" href="/maven1.html"/>
|
||||
<item name="FAQ" href="/general.html"/>
|
||||
<item name="Road Map" href="/roadmap.html"/>
|
||||
</menu>
|
||||
<menu name="User's Guide">
|
||||
|
|
Loading…
Reference in New Issue