You'll find it defined in plugin.properties which would also have worked.

When the next java plugin is released, this has been fixed so you can
upgrade without fear of overwriting your change.

(IF you'd like to check it out from CVS and run maven plugin:install
to verify - feel free)

Cheers,
Brett


On Fri, 12 Nov 2004 12:16:47 -0500, Ben Anderson
<[EMAIL PROTECTED]> wrote:
> I got it working again.  I edited the plugin.jelly and commented out
> the following lines:
>           <!--
>           <j:if test="${context.getVariable('maven.compile.source') != null}">
>             <ant:setProperty name="source" value="${maven.compile.source}" />
>           </j:if>
>           -->
> 
> I understand this is needed if you wish to change the -source, but I
> don't.  I'm not setting maven.compile.source anywhere, so I would
> expect is to be null, but for some reason it always got set to 1.3...
> who knows?  Also, I first worked on $HOME/.maven/plugins or
> $HOME/.maven/cache, but these did nothing.  What worked was when I
> edited the plugin.jelly in $MAVEN_HOME/plugins/maven-java....jar
> What's the necessity for these various version?
> 
> Bottom line - I got my problem fixed and I'm happy.
> 
> Thanks,
> Ben
> 
> On Fri, 12 Nov 2004 07:40:39 -0500, Ben Anderson
> 
> 
> <[EMAIL PROTECTED]> wrote:
> > Thanks for the tip Brett, but it still adds -source as an argument:
> > $maven -X java:compile
> > ...
> > '-sourcepath'
> > 'D:\VSS3\MedAmerica_Working\src\java'
> > '-target'
> > '1.1'
> > '-g'
> > '-source'
> > ''
> > ...
> >
> > looks like I've got the maven-java-plugin1.4
> >
> > $ maven --info | grep java
> > Which.version=Which.java:($Revision: 1.2 $) WhichJar.java:($Revision: 1.2 $)
> > java.version=1.4.2_04
> > java.ext.dirs=c:\j2sdk1.4.2_04\jre\lib\ext
> > java.class.path=c:\Program Files\Apache Software Foundation\Maven
> > 1.0/lib/forehead-1.0-beta-5.jar
> > java.vendor=Sun Microsystems Inc.
> > java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
> >   maven-java-plugin-1.4
> >   maven-javacc-plugin-1.1
> >   maven-javadoc-plugin-1.6.1
> >
> > Thanks,
> > Ben
> >
> >
> >
> >
> > On Fri, 12 Nov 2004 09:26:58 +1100, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > Sorry, my mistake. I was referring to a change made after the last
> > > release, which was included with Maven 1.0.1.
> > >
> > > You will need to set:
> > > maven.compile.source=
> > >
> > > This should be added as an FAQ.
> > >
> > > Cheers,
> > > Brett
> > >
> > > On Fri, 12 Nov 2004 09:24:37 +1100, Brett Porter <[EMAIL PROTECTED]> 
> > > wrote:
> > > > That's stange, because the plugin no longer has .source or .target set
> > > > by default.
> > > >
> > > > Can you please run maven --info to find the java plugin version you
> > > > are using (there should only be one hopefully!), and check your
> > > > ~/build.properties and any other properties files in the project for
> > > > specification of maven.compile.source
> > > >
> > > > Thanks,
> > > > Brett
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, 11 Nov 2004 21:49:19 +0100, Arnaud HERITIER <[EMAIL PROTECTED]> 
> > > > wrote:
> > > > > You must look at the plugin java :
> > > > > http://maven.apache.org/reference/plugins/java/
> > > > >
> > > > > Arnaud
> > > > >
> > > > > > -----Message d'origine-----
> > > > > > De : Ben Anderson [mailto:[EMAIL PROTECTED]
> > > > > > Envoy� : jeudi 11 novembre 2004 21:13
> > > > > > � : Maven Users List
> > > > > > Objet : javac ... -source 1.3
> > > > >
> > > > >
> > > > > >
> > > > > > Hi,
> > > > > > I upgraded to maven1.0.1, but now my build is broken.  The problem 
> > > > > > is
> > > > > > we're using the javac bundled with websphere3.5.7.  This javac does
> > > > > > not have a -source option which maven is adding.  I tried 
> > > > > > uninstalling
> > > > > > 1.0.1 and reinstalling 1.0, but this didn't help.  I also grepped
> > > > > > through the plugins directories to find where ant:javac is defined,
> > > > > > but I don't see it.  Does anyone know how to either stop the javac
> > > > > > command from using the -source option, or restore my existing 1.0
> > > > > > installation more completely?
> > > > > > Thanks,
> > > > > > Ben
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to