You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/29 16:45:10 UTC

[jira] Created: (MPJAVA-22) default javac settings doesn't work for jdk 1.5

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJAVA-22

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJAVA-22
    Summary: default javac settings doesn't work for jdk 1.5
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-java-plugin

   Assignee: Jason van Zyl
   Reporter: Maarten Coene

    Created: Tue, 29 Jun 2004 10:45 AM
    Updated: Tue, 29 Jun 2004 10:45 AM

Description:
Hi,

the default javac settings are causing problems with jdk 1.5 because the target is set to 1.1 and no source has been set. I know I can specify maven.compile.source myself, but I think that at least the default settings should work with jdk 1.5...

output of "maven test":
C:\Projects\Other\dom4j>maven test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4

build:start:

java:prepare-filesystem:
    [mkdir] Created dir: C:\Projects\Other\dom4j\target\classes

java:compile:
    [echo] Compiling to C:\Projects\Other\dom4j/target/classes
    [javac] Compiling 196 source files to C:\Projects\Other\dom4j\target\classes
javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED
File...... C:\Documents and Settings\Maarten Coene\.maven\cache\maven-java-plugin-1.4\plugin.jelly
Element... ant:javac
Line...... 52
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 4 seconds
Finished at: Tue Jun 29 16:32:00 CEST 2004


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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: (MPJAVA-22) default javac settings doesn't work for jdk 1.5

Posted by ji...@codehaus.org.
The following issue has been updated:

    Updater: Archimedes Trajano (mailto:trajano@yahoo.com)
       Date: Sun, 5 Sep 2004 7:30 PM
    Comment:
Patch file to make maven.compile.source property in plugin.jelly match the documentation.  Added contributor data.
    Changes:
             Attachment changed to java.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MPJAVA-22?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJAVA-22

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJAVA-22
    Summary: default javac settings doesn't work for jdk 1.5
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-java-plugin

   Assignee: Jason van Zyl
   Reporter: Maarten Coene

    Created: Tue, 29 Jun 2004 10:45 AM
    Updated: Sun, 5 Sep 2004 7:30 PM

Description:
Hi,

the default javac settings are causing problems with jdk 1.5 because the target is set to 1.1 and no source has been set. I know I can specify maven.compile.source myself, but I think that at least the default settings should work with jdk 1.5...

output of "maven test":
C:\Projects\Other\dom4j>maven test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4

build:start:

java:prepare-filesystem:
    [mkdir] Created dir: C:\Projects\Other\dom4j\target\classes

java:compile:
    [echo] Compiling to C:\Projects\Other\dom4j/target/classes
    [javac] Compiling 196 source files to C:\Projects\Other\dom4j\target\classes
javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED
File...... C:\Documents and Settings\Maarten Coene\.maven\cache\maven-java-plugin-1.4\plugin.jelly
Element... ant:javac
Line...... 52
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 4 seconds
Finished at: Tue Jun 29 16:32:00 CEST 2004


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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: (MPJAVA-22) default javac settings doesn't work for jdk 1.5

Posted by ji...@codehaus.org.
Message:

   The following issue has been closed.

   Resolver: Vincent Massol
       Date: Thu, 7 Oct 2004 2:56 PM

Removed the default value of 1.1 which doesn't make sense generally speaking. The plugin now works with any JDK by default. If you wish to ensure your code works wirh JDK 1.1, simply set the maven.compile.target property to 1.1.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJAVA-22

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJAVA-22
    Summary: default javac settings doesn't work for jdk 1.5
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-java-plugin
   Fix Fors:
             1.5

   Assignee: Vincent Massol
   Reporter: Maarten Coene

    Created: Tue, 29 Jun 2004 10:45 AM
    Updated: Thu, 7 Oct 2004 2:56 PM

Description:
Hi,

the default javac settings are causing problems with jdk 1.5 because the target is set to 1.1 and no source has been set. I know I can specify maven.compile.source myself, but I think that at least the default settings should work with jdk 1.5...

output of "maven test":
C:\Projects\Other\dom4j>maven test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc4

build:start:

java:prepare-filesystem:
    [mkdir] Created dir: C:\Projects\Other\dom4j\target\classes

java:compile:
    [echo] Compiling to C:\Projects\Other\dom4j/target/classes
    [javac] Compiling 196 source files to C:\Projects\Other\dom4j\target\classes
javac: target release 1.1 conflicts with default source release 1.5

BUILD FAILED
File...... C:\Documents and Settings\Maarten Coene\.maven\cache\maven-java-plugin-1.4\plugin.jelly
Element... ant:javac
Line...... 52
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 4 seconds
Finished at: Tue Jun 29 16:32:00 CEST 2004


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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