You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Dave Sag (JIRA)" <ji...@codehaus.org> on 2005/10/03 13:13:08 UTC

[jira] Created: (MNG-1075) java 1.4+ assert statment not recognised.

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
    Priority: Critical


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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1075?page=all ]

John Casey updated MNG-1075:
----------------------------

    Remaining Estimate: 3 hours
     Original Estimate: 10800

need to investigate why the model reader isn't complaining about the plugins section being in the wrong area, and fix if possible.

I'm not sure that we want to change the default compile target, since this represents the sort of least common denominator of JVMs that are likely to be out there in use.

> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1075?page=comments#action_47779 ] 

Dave Sag commented on MNG-1075:
-------------------------------

Hi John,

given that java1.4 is required in order to run maven 2, isn't it reasonable that 1.4 be the default java?  if not then somewhere in the compiler plugin docs it should be mentioned that the default is 1.3

cheers dave


> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1075?page=comments#action_47772 ] 

Dave Sag commented on MNG-1075:
-------------------------------

in conversation with Ashley Williams on the maven users list we found the problem, at least from a user's perspective.

in my pom.xml i did not enclose the <plugins>...</plugins> tags within a <build>...</build> tag set and thus m2 was not being told to use java 1.4

the issue changes as follows:

1) why didn't m2 complain about the incorract syntax of my pom.xml
2) why is the default java for m2 1.3 and not 1.4?

cheers dave


> 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

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1075?page=all ]
     
Brett Porter closed MNG-1075:
-----------------------------

     Resolution: Cannot Reproduce
    Fix Version:     (was: 2.0-beta-4)

> 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

>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1075?page=all ]

Brett Porter updated MNG-1075:
------------------------------

      Assign To: John Casey
    Fix Version: 2.0-beta-4

John, can you reproduce?

Dave - what version of mac os x?

I'm pretty sure this has worked in our testing.

> 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

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1075?page=comments#action_47679 ] 

Dave Sag commented on MNG-1075:
-------------------------------

OSX 10.4.2 
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)

cheers

dave

> 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

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1075) java 1.4+ assert statment not recognised.

Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1075?page=comments#action_47943 ] 

Dave Sag commented on MNG-1075:
-------------------------------

it's weird but i can't reproduce this error any more. oh well.


> 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

>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org