Hi there,

Have a look at the maven-compiler-plugin plugin. It should provide you 
with lots of ingormation.

Stefan
[EMAIL PROTECTED] skrev 14.08.2006 09:31:13:

> Hi,
> 
> I am new to Maven2. I am trying to develop plugins in Maven2 using the 
> Java Plugins approach. I have seen the getting started guide on MOJOs 
> 
(http://maven.apache.org/guides/plugin/guide-java-plugin-development.html). 

> But this is too elementary. Could someone please point me to some more 
> advanced guide to building MOJOs, one which contains integration with 
Ant 
> Java APIs? I have taken a look at the AntExternal guide as well: 
> http://ant.apache.org/manual/antexternal.html.
> 
> At this point, I am simply trying to use Ant's Javac.java API to compile 

> my source code using a MOJO. I had the following questiions:
> 1. How do I get access to maven's dependency classpath (i.e. path 
> containing all the dependencies defined in project's pom.xml)? In Maven 
> 1.x this was accessible using maven.dependency.classpath reference in 
> plugin.jelly.
> 2. How does Maven set the java.home System Property? I have set the 
> environment var "Java_Home" to the jdk directory but Maven is setting 
the 
> java.home System property to the jre directory (i.e. <jdk_dir>/jre). Why 

> is that so?
> 
> Has anyone used Ant's Javac API to do the compilation from inside a 
MOJO. 
> If yes, could you please send me the code snippet to set the classpath 
and 
> any other system properties?
> 
> Thanks in advance,
> Ritu
> 
> 
> 
> 
> 
> 
> 
> -----------------------------------------
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law.  If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED.  Although this transmission and
> any attachments are believed to be free of any virus or other
> defect that might affect any computer system into which it is
> received and opened, it is the responsibility of the recipient to
> ensure that it is virus free and no responsibility is accepted by
> JPMorgan Chase & Co., its subsidiaries and affiliates, as
> applicable, for any loss or damage arising in any way from its use.
> If you received this transmission in error, please immediately
> contact the sender and destroy the material in its entirety,
> whether in electronic or hard copy format. Thank you.

Reply via email to