[ http://jira.codehaus.org/browse/MNG-1075?page=comments#action_47780 ]
John Casey commented on MNG-1075: --------------------------------- I just put together a test case, based on the above information about not validating <plugins/> outside of <build/>... 1. First, I put it together correctly (under <build/>) for a control...it succeeded. 2. Then, I removed the surrounding <build/> tags, and ran it again on my linux machine...it failed with a parse error. 3. Finally, I ran the EXACT same test as in #2 above, only this time on my mac at home...it failed with the following: altair:~/workspace/m2/maven-core-it/it0082 jdcasey$ m2 clean:clean compile [INFO] ---------------------------------------------------------------------------- [INFO] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] Reason: Failed to parse model from file '/Users/jdcasey/workspace/m2/maven-core-it/it0082/pom.xml'. Error: 'Unrecognised tag: 'plugins' (position: START_TAG seen ...</version>\n\n <plugins>... @7:14) ' [INFO] ---------------------------------------------------------------------------- [INFO] Total time: < 1 second [INFO] Finished at: Tue Oct 04 10:24:08 EDT 2005 [INFO] Final Memory: 1M/2M [INFO] ---------------------------------------------------------------------------- Just for clarity, here is my information from that machine: altair:~/workspace/m2/maven-core-it/it0082 jdcasey$ uname -a Darwin altair.home.commonjava.org 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc Apparently, I cannot reproduce this behavior. Can you please attach a failing POM? > java 1.4+ assert statment not recognised. > ----------------------------------------- > > Key: MNG-1075 > URL: http://jira.codehaus.org/browse/MNG-1075 > Project: Maven 2 > Type: Bug > Components: maven-compiler-plugin > Versions: 2.0-beta-2 > Environment: Mac OSX running Java 1.4 > Reporter: Dave Sag > Assignee: John Casey > Priority: Critical > Fix For: 2.0-beta-4 > > Original Estimate: 3 hours > Remaining: 3 hours > > I can't work out how to tell maven2 that i want to enable asserts. Whenever > i compile i just get the error > cannot resolve symbol > symbol : method assert (boolean) > I have tried forcing java1.4 in my pom.xml with the following : > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.4</source> > <target>1.4</target> > </configuration> > </plugin> > </plugins> > but it made no difference. > Thus I am reporting this as a bug. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
