Brett, I checked out maven-plugins. But how do I do a plugin:install pointing to the local directory in which I checked out the latest plugins?
--- Brett Porter <[EMAIL PROTECTED]> wrote: > try checking out maven-plugins CVS and running > plugin:install on the > java plugin. This has been fixed. > > I'll slate a release of this for 1.0.2 > > - Brett > > > On Fri, 3 Dec 2004 07:14:53 -0800 (PST), Doug Knesek > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am currently using Maven 1.0.1 running on Java > > 1.4.2. I'm trying to invoke a 1.3.1 javac for my > > builds. > > > > I'm doing this because, although my project was > > written for Java 1.3, I think the Maven plug-ins I > > need were compiled with Java 1.4, as I get an > error > > when I run Maven using Java 1.3. For instance, > > FindBugs gives the following error: > > > > "java.lang.UnsupportedClassVersionError: > > edu/umd/cs/findbugs/anttask/FindBugsTask > (Unsupported > > major.minor version 48.0)" > > > > So to invoke the Java 1.3 javac using Maven > running on > > Java 1.4.2, I set some properties as follows: > > > > maven.compile.source= > > maven.compile.fork=yes > > maven.compile.jdk=1.3 > > maven.compile.jdk.home=C:/jdk1.3.1_14 > > maven.compile.executable=C:/jdk1.3.1_14/bin/javac > > > > When running "maven -X jar", the Java plug-in is > > trying to pass a parameter (-source) to javac that > the > > 1.3 version of javac doesn't support. The error is > as > > follows: > > > > "[javac] javac: invalid flag: -source " > > > > Here are excerpts from "maven -X jar": > > > > ... > > [javac] [DEBUG] Execute:Java13CommandLauncher: > > Executing 'C:\jdk1.3.1_14\bin\javac' with > arguments: > > '-d' > > > 'O:\wsad_lvc\GLCommon\GlMaven\Common\target\classes' > > '-classpath' > > > 'O:\wsad_lvc\GLCommon\GlMaven\Common\target\classes;T:\Edc\Consolidation\.maven\reposi \ tory\log4j\jars\log4j-1.2.8.jar;T > > > > > \Edc\Consolidation\.maven\repository\regexp\jars\regexp-1.2.jar;T:\Edc\Consolidation\. \ maven\repository\great-lakes\jars > > > > > gl-framework-1.0.jar;T:\Edc\Consolidation\.maven\repository\ibm\jars\j2ee.jar;T:\Edc\C \ onsolidation\maven-1.0.1\lib\fore > > > > ead-1.0-beta-5.jar' > > '-sourcepath' > > 'O:\wsad_lvc\GLCommon\GlMaven\Common\src\java' > > '-target' > > '1.1' > > '-g' > > '-source' > > '' > > > '@O:\wsad_lvc\GLCommon\GlMaven\Common\files625000713' > > > > The ' characters around the executable and > arguments > > are > > not part of the command. > > > > [javac] javac: invalid flag: -source > > ... > > > > Thanks > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]