mirror of https://github.com/apache/maven.git
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293390 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb3e57818c
commit
b5c400b7b8
|
@ -202,7 +202,7 @@ Compiling 1 source file to /tmp/my-app/target/classes
|
||||||
standard conventions the POM above is very small and you haven't explicity had to tell Maven where any of
|
standard conventions the POM above is very small and you haven't explicity had to tell Maven where any of
|
||||||
your sources are or where the output should go. By following the standard Maven conventions you can get
|
your sources are or where the output should go. By following the standard Maven conventions you can get
|
||||||
a lot done with very little effort! Just as a comparison lets take a look at what you might have had to do
|
a lot done with very little effort! Just as a comparison lets take a look at what you might have had to do
|
||||||
in {{{http://ant.apache.org}Ant}} to accomplish the same {{{ant/build-a1.xml}thing}}.
|
in {{{http://ant.apache.org}Ant}} to accomplish the same {{{../../ant/build-a1.xml}thing}}.
|
||||||
|
|
||||||
Now this is simply to compile a single application source and the Ant script shown is pretty much the same
|
Now this is simply to compile a single application source and the Ant script shown is pretty much the same
|
||||||
size as the POM shown above. But we'll see how much more we can do with just that simple POM above!
|
size as the POM shown above. But we'll see how much more we can do with just that simple POM above!
|
||||||
|
|
|
@ -7,6 +7,11 @@
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="src/main/java"/>
|
<pathelement location="src/main/java"/>
|
||||||
</src>
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libdir}">
|
||||||
|
<include name="*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -8,6 +8,11 @@
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="src/main/java"/>
|
<pathelement location="src/main/java"/>
|
||||||
</src>
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libdir}">
|
||||||
|
<include name="*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
<target name="test-compile">
|
<target name="test-compile">
|
||||||
|
@ -18,7 +23,7 @@
|
||||||
</src>
|
</src>
|
||||||
<classpath>
|
<classpath>
|
||||||
<fileset dir="${libdir}">
|
<fileset dir="${libdir}">
|
||||||
<include name="junit-3.8.1.jar"/>
|
<include name="*.jar"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="src/main/java"/>
|
<pathelement location="src/main/java"/>
|
||||||
</src>
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libdir}">
|
||||||
|
<include name="*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
<target name="test-compile" description="o Compile the code" depends="get-deps">
|
<target name="test-compile" description="o Compile the code" depends="get-deps">
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
<src>
|
<src>
|
||||||
<pathelement location="src/main/java"/>
|
<pathelement location="src/main/java"/>
|
||||||
</src>
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libdir}">
|
||||||
|
<include name="*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
<target name="test-compile" description="o Compile the code" depends="get-deps">
|
<target name="test-compile" description="o Compile the code" depends="get-deps">
|
||||||
|
|
Loading…
Reference in New Issue