You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Sam Pullara (JIRA)" <ji...@codehaus.org> on 2005/04/10 02:06:42 UTC

[jira] Created: (MNG-278) Can't build my 1.5 project

Can't build my 1.5 project
--------------------------

         Key: MNG-278
         URL: http://jira.codehaus.org/browse/MNG-278
     Project: m2
        Type: Bug
    Versions: 2.0-alpha-1    
 Environment: Mac OS X 10.3.8, JDK 1.5.0_02
    Reporter: Sam Pullara
     Fix For: 2.0-alpha-2
 Attachments: pom.xml

[INFO] ----------------------------------------------------------------------------
[INFO] Building null
[INFO] ----------------------------------------------------------------------------
[INFO] maven-compiler-plugin: resolved to version 1.0-20050405.161112-1 from local repository
[INFO] [resources:resources]
[INFO] [compiler:compile]
Compiling 6 source files to /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire/target/classes
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Reason: Compilation failure
[INFO] ----------------------------------------------------------------------------
[INFO] Failure executing javac, but could not parse the error:

-source is an invalid option or argument.
Usage: javac <options> <source files>

where <options> includes:
  -g                     Generate all debugging info
  -g:none                Generate no debugging info
  -g:{lines,vars,source} Generate only some debugging info
  -O                     Optimize; may hinder debugging or enlarge class files
  -nowarn                Generate no warnings
  -verbose               Output messages about what the compiler is doing
  -deprecation           Output source locations where deprecated APIs are used
  -classpath <path>      Specify where to find user class files
  -sourcepath <path>     Specify where to find input source files
  -bootclasspath <path>  Override location of bootstrap class files
  -extdirs <dirs>        Override location of installed extensions
  -d <directory>         Specify where to place generated class files
  -encoding <encoding>   Specify character encoding used by source files
  -target <release>      Generate class files for specific VM version


[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 0 seconds
[INFO] Finished at: Sat Apr 09 17:05:50 PDT 2005
[INFO] Final Memory: 1M/2M
[INFO] ----------------------------------------------------------------------------
/Users/sam/Projects/TexasSolitaireMaven/texas-solitaire:> which javac
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/javac


-- 
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: (MNG-278) Can't build my 1.5 project

Posted by "Sam Pullara (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-278?page=history ]

Sam Pullara updated MNG-278:
----------------------------

    Attachment: patch.txt

Here is a patch the fixes it for me.

> Can't build my 1.5 project
> --------------------------
>
>          Key: MNG-278
>          URL: http://jira.codehaus.org/browse/MNG-278
>      Project: m2
>         Type: Bug
>     Versions: 2.0-alpha-1
>  Environment: Mac OS X 10.3.8, JDK 1.5.0_02
>     Reporter: Sam Pullara
>      Fix For: 2.0-alpha-2
>  Attachments: patch.txt, pom.xml
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building null
> [INFO] ----------------------------------------------------------------------------
> [INFO] maven-compiler-plugin: resolved to version 1.0-20050405.161112-1 from local repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> Compiling 6 source files to /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire/target/classes
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] Failure executing javac, but could not parse the error:
> -source is an invalid option or argument.
> Usage: javac <options> <source files>
> where <options> includes:
>   -g                     Generate all debugging info
>   -g:none                Generate no debugging info
>   -g:{lines,vars,source} Generate only some debugging info
>   -O                     Optimize; may hinder debugging or enlarge class files
>   -nowarn                Generate no warnings
>   -verbose               Output messages about what the compiler is doing
>   -deprecation           Output source locations where deprecated APIs are used
>   -classpath <path>      Specify where to find user class files
>   -sourcepath <path>     Specify where to find input source files
>   -bootclasspath <path>  Override location of bootstrap class files
>   -extdirs <dirs>        Override location of installed extensions
>   -d <directory>         Specify where to place generated class files
>   -encoding <encoding>   Specify character encoding used by source files
>   -target <release>      Generate class files for specific VM version
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 0 seconds
> [INFO] Finished at: Sat Apr 09 17:05:50 PDT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] ----------------------------------------------------------------------------
> /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire:> which javac
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/javac

-- 
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] Commented: (MNG-278) Can't build my 1.5 project

Posted by "Sam Pullara (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-278?page=comments#action_31816 ]
     
Sam Pullara commented on MNG-278:
---------------------------------

Looks like it shouldn't be using the old classname for javac.  Instead it should use:

com.sun.tools.javac.Main

> Can't build my 1.5 project
> --------------------------
>
>          Key: MNG-278
>          URL: http://jira.codehaus.org/browse/MNG-278
>      Project: m2
>         Type: Bug
>     Versions: 2.0-alpha-1
>  Environment: Mac OS X 10.3.8, JDK 1.5.0_02
>     Reporter: Sam Pullara
>      Fix For: 2.0-alpha-2
>  Attachments: pom.xml
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building null
> [INFO] ----------------------------------------------------------------------------
> [INFO] maven-compiler-plugin: resolved to version 1.0-20050405.161112-1 from local repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> Compiling 6 source files to /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire/target/classes
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] Failure executing javac, but could not parse the error:
> -source is an invalid option or argument.
> Usage: javac <options> <source files>
> where <options> includes:
>   -g                     Generate all debugging info
>   -g:none                Generate no debugging info
>   -g:{lines,vars,source} Generate only some debugging info
>   -O                     Optimize; may hinder debugging or enlarge class files
>   -nowarn                Generate no warnings
>   -verbose               Output messages about what the compiler is doing
>   -deprecation           Output source locations where deprecated APIs are used
>   -classpath <path>      Specify where to find user class files
>   -sourcepath <path>     Specify where to find input source files
>   -bootclasspath <path>  Override location of bootstrap class files
>   -extdirs <dirs>        Override location of installed extensions
>   -d <directory>         Specify where to place generated class files
>   -encoding <encoding>   Specify character encoding used by source files
>   -target <release>      Generate class files for specific VM version
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 0 seconds
> [INFO] Finished at: Sat Apr 09 17:05:50 PDT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] ----------------------------------------------------------------------------
> /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire:> which javac
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/javac

-- 
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: (MNG-278) Can't build my 1.5 project

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

    Resolution: Fixed
     Assign To: Brett Porter

applied, with modifications (to avoid generating 49.0 classes on 1.5 by default)

> Can't build my 1.5 project
> --------------------------
>
>          Key: MNG-278
>          URL: http://jira.codehaus.org/browse/MNG-278
>      Project: m2
>         Type: Bug
>     Versions: 2.0-alpha-1
>  Environment: Mac OS X 10.3.8, JDK 1.5.0_02
>     Reporter: Sam Pullara
>     Assignee: Brett Porter
>      Fix For: 2.0-alpha-2
>  Attachments: patch.txt, pom.xml
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building null
> [INFO] ----------------------------------------------------------------------------
> [INFO] maven-compiler-plugin: resolved to version 1.0-20050405.161112-1 from local repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> Compiling 6 source files to /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire/target/classes
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] Failure executing javac, but could not parse the error:
> -source is an invalid option or argument.
> Usage: javac <options> <source files>
> where <options> includes:
>   -g                     Generate all debugging info
>   -g:none                Generate no debugging info
>   -g:{lines,vars,source} Generate only some debugging info
>   -O                     Optimize; may hinder debugging or enlarge class files
>   -nowarn                Generate no warnings
>   -verbose               Output messages about what the compiler is doing
>   -deprecation           Output source locations where deprecated APIs are used
>   -classpath <path>      Specify where to find user class files
>   -sourcepath <path>     Specify where to find input source files
>   -bootclasspath <path>  Override location of bootstrap class files
>   -extdirs <dirs>        Override location of installed extensions
>   -d <directory>         Specify where to place generated class files
>   -encoding <encoding>   Specify character encoding used by source files
>   -target <release>      Generate class files for specific VM version
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 0 seconds
> [INFO] Finished at: Sat Apr 09 17:05:50 PDT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] ----------------------------------------------------------------------------
> /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire:> which javac
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/javac

-- 
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] Commented: (MNG-278) Can't build my 1.5 project

Posted by "Sam Pullara (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-278?page=comments#action_31817 ]
     
Sam Pullara commented on MNG-278:
---------------------------------

PROGRAMMATIC INTERFACE
The com.sun.tools.javac.Main class provides two static methods to invoke the compiler from a program:


public static int compile(String[] args);
public static int compile(String[] args, PrintWriter out);



The args parameter represents any of the command line arguments that would normally be passed to the javac program and are outlined in the above Synopsis section.

The out parameter indicates where the compiler's diagnostic output is directed.

The return value is equivalent to the exit value from javac.

Note that all other classes and methods found in a package whose name starts with com.sun.tools.javac (informally known as sub-packages of com.sun.tools.javac) are strictly internal and subject to change at any time.

> Can't build my 1.5 project
> --------------------------
>
>          Key: MNG-278
>          URL: http://jira.codehaus.org/browse/MNG-278
>      Project: m2
>         Type: Bug
>     Versions: 2.0-alpha-1
>  Environment: Mac OS X 10.3.8, JDK 1.5.0_02
>     Reporter: Sam Pullara
>      Fix For: 2.0-alpha-2
>  Attachments: pom.xml
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building null
> [INFO] ----------------------------------------------------------------------------
> [INFO] maven-compiler-plugin: resolved to version 1.0-20050405.161112-1 from local repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> Compiling 6 source files to /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire/target/classes
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Reason: Compilation failure
> [INFO] ----------------------------------------------------------------------------
> [INFO] Failure executing javac, but could not parse the error:
> -source is an invalid option or argument.
> Usage: javac <options> <source files>
> where <options> includes:
>   -g                     Generate all debugging info
>   -g:none                Generate no debugging info
>   -g:{lines,vars,source} Generate only some debugging info
>   -O                     Optimize; may hinder debugging or enlarge class files
>   -nowarn                Generate no warnings
>   -verbose               Output messages about what the compiler is doing
>   -deprecation           Output source locations where deprecated APIs are used
>   -classpath <path>      Specify where to find user class files
>   -sourcepath <path>     Specify where to find input source files
>   -bootclasspath <path>  Override location of bootstrap class files
>   -extdirs <dirs>        Override location of installed extensions
>   -d <directory>         Specify where to place generated class files
>   -encoding <encoding>   Specify character encoding used by source files
>   -target <release>      Generate class files for specific VM version
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: 0 seconds
> [INFO] Finished at: Sat Apr 09 17:05:50 PDT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] ----------------------------------------------------------------------------
> /Users/sam/Projects/TexasSolitaireMaven/texas-solitaire:> which javac
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/javac

-- 
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