Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 32652 invoked from network); 15 Nov 2004 19:38:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Nov 2004 19:38:04 -0000 Received: (qmail 97239 invoked by uid 500); 15 Nov 2004 19:37:51 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 96964 invoked by uid 500); 15 Nov 2004 19:37:49 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 96950 invoked by uid 99); 15 Nov 2004 19:37:49 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of benanderson.us@gmail.com designates 64.233.184.201 as permitted sender) Received: from [64.233.184.201] (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 15 Nov 2004 11:37:47 -0800 Received: by wproxy.gmail.com with SMTP id 69so355307wri for ; Mon, 15 Nov 2004 11:37:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=WVneShVrvbpBsy+kQkVcJM4gqIu0NS+q5Gq0OQtsrjS46h9OwdW5CLsq9H9WIMzwpXuh3jVyFOF+GU5Kok3npjbiYCF7Wp6HaKNcqZ0rGfovKfQHTbAG+YAnbCxOy68PQSs7wQ0tE0QTuU4aI8QOMHxp4U5+vA3yXGOz8K+oyNU= Received: by 10.54.25.5 with SMTP id 5mr90300wry; Mon, 15 Nov 2004 11:37:43 -0800 (PST) Received: by 10.54.49.71 with HTTP; Mon, 15 Nov 2004 11:37:43 -0800 (PST) Message-ID: Date: Mon, 15 Nov 2004 14:37:43 -0500 From: Ben Anderson Reply-To: Ben Anderson To: Maven Users List Subject: Re: javac ... -source 1.3 In-Reply-To: <9e3862d8041115111829a03ec1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <20041111204927.DEA7C1800136@mwinf0909.wanadoo.fr> <9e3862d8041111142476b49f9f@mail.gmail.com> <9e3862d8041111142669865a12@mail.gmail.com> <9e3862d804111213223f43feaf@mail.gmail.com> <9e3862d8041115111829a03ec1@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N There could be something screwy w/ my installation, b/c I installed 1.0.1, then uninstalled it, then re-installed 1.0. But anyways, heres what happened. w/ no dependencies specified. $ maven plugin:install __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 java.lang.NoClassDefFoundError: org/jaxen/JaxenException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagLib= rary.java:39) at org.apache.commons.jelly.tags.xml.XMLTagLibrary.(XMLTagLib= rary.java:44) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Me= thod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons= tructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega= tingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext= .java:454) at org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJell= yContext.java:171) at org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext= .java:437) at org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJell= yContext.java:171) at org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.ja= va:979) at org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser= .java:593) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement= (Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement= (Unknown Source) ... w/ jaxen: jaxen jaxen jaxen-1.0-FCS-full.jar $ maven plugin:install __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 java.lang.NoClassDefFoundError: org/saxpath/SAXPathException at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.ja= va:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.commons.jelly.tags.xml.XMLTagLibrary.class$(XMLTagLib= rary.java:39) at org.apache.commons.jelly.tags.xml.XMLTagLibrary.(XMLTagLib= rary.java:44) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Me= thod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons= tructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delega= tingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) w/ jaxen/dom4j: jaxen jaxen jaxen-1.0-FCS-full.jar dom4j dom4j 1.4 $ maven plugin:install __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0 .... BUILD SUCCESSFUL Total time: 5 seconds Finished at: Mon Nov 15 14:25:12 EST 2004 On Tue, 16 Nov 2004 06:18:16 +1100, Brett Porter w= rote: > Ben, >=20 > These dependencies don't sound right, what error were you getting beforeh= and? >=20 > - Brett >=20 > On Mon, 15 Nov 2004 10:08:28 -0500, Ben Anderson >=20 >=20 > wrote: > > whoops, sent that to brett instead of the list... sorry. I also > > forgot to mention, that before I did the plugin:install under > > maven-plugins/java, I had to add jaxen and dom4j as dependencies. > > > > On Mon, 15 Nov 2004 10:01:00 -0500, Ben Anderson > > > > > > wrote: > > > ah - plugin.properties - that makes sense. Well, I'm learning about > > > plugins... I checked out maven-plugins from cvs and did a > > > plugin:install. That didn't work, but when I deleted the old jar fro= m > > > ${MAVEN_HOME}/plugins and copied in the new one, then it worked fine. > > > Thanks, > > > Ben > > > > > > > > > > > > > > > On Sat, 13 Nov 2004 08:22:24 +1100, Brett Porter wrote: > > > > You'll find it defined in plugin.properties which would also have w= orked. > > > > > > > > When the next java plugin is released, this has been fixed so you c= an > > > > upgrade without fear of overwriting your change. > > > > > > > > (IF you'd like to check it out from CVS and run maven plugin:instal= l > > > > to verify - feel free) > > > > > > > > Cheers, > > > > Brett > > > > > > > > On Fri, 12 Nov 2004 12:16:47 -0500, Ben Anderson > > > > > > > > > > > > wrote: > > > > > I got it working again. I edited the plugin.jelly and commented = out > > > > > the following lines: > > > > > > > > > > > > > > > I understand this is needed if you wish to change the -source, bu= t 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 > > > > > > > > > > > > > > > wrote: > > > > > > Thanks for the tip Brett, but it still adds -source as an argum= ent: > > > > > > $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=3DWhich.java:($Revision: 1.2 $) WhichJar.java:($R= evision: 1.2 $) > > > > > > java.version=3D1.4.2_04 > > > > > > java.ext.dirs=3Dc:\j2sdk1.4.2_04\jre\lib\ext > > > > > > java.class.path=3Dc:\Program Files\Apache Software Foundation\M= aven > > > > > > 1.0/lib/forehead-1.0-beta-5.jar > > > > > > java.vendor=3DSun Microsystems Inc. > > > > > > java.runtime.name=3DJava(TM) 2 Runtime Environment, Standard Ed= ition > > > > > > 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 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=3D > > > > > > > > > > > > > > This should be added as an FAQ. > > > > > > > > > > > > > > Cheers, > > > > > > > Brett > > > > > > > > > > > > > > On Fri, 12 Nov 2004 09:24:37 +1100, Brett Porter 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 ver= sion you > > > > > > > > are using (there should only be one hopefully!), and check = your > > > > > > > > ~/build.properties and any other properties files in the pr= oject for > > > > > > > > specification of maven.compile.source > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Brett > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, 11 Nov 2004 21:49:19 +0100, Arnaud HERITIER wrote: > > > > > > > > > You must look at the plugin java : > > > > > > > > > http://maven.apache.org/reference/plugins/java/ > > > > > > > > > > > > > > > > > > Arnaud > > > > > > > > > > > > > > > > > > > -----Message d'origine----- > > > > > > > > > > De : Ben Anderson [mailto:benanderson.us@gmail.com] > > > > > > > > > > Envoy=E9 : jeudi 11 novembre 2004 21:13 > > > > > > > > > > =C0 : 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. Thi= s javac does > > > > > > > > > > not have a -source option which maven is adding. I tri= ed uninstalling > > > > > > > > > > 1.0.1 and reinstalling 1.0, but this didn't help. I al= so grepped > > > > > > > > > > through the plugins directories to find where ant:javac= is defined, > > > > > > > > > > but I don't see it. Does anyone know how to either sto= p the javac > > > > > > > > > > command from using the -source option, or restore my ex= isting 1.0 > > > > > > > > > > installation more completely? > > > > > > > > > > Thanks, > > > > > > > > > > Ben > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------= -------------- > > > > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.= org > > > > > > > > > > For additional commands, e-mail: users-help@maven.apach= e.org > > > > > > > > > > > > > > > > > > ---------------------------------------------------------= ------------ > > > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.or= g > > > > > > > > > For additional commands, e-mail: users-help@maven.apache.= org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------= -------- > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > > > > > > For additional commands, e-mail: users-help@maven.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----------------------------------------------------------------= ---- > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > > > > For additional commands, e-mail: users-help@maven.apache.org > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org