You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2008/07/30 20:36:19 UTC

M 2.0.5 - Failure executing javac

Please help, I am using Java 1.5 as my JAVA_HOME and have the following
in my POM - Maven 2.0.5.

 

<plugin>

      <groupId>org.apache.maven.plugins</groupId>

      <artifactId>maven-compiler-plugin</artifactId>

      <configuration>

            <fork>true</fork>

            <compilerArguments>

                  <verbose />

 
<bootclasspath>${env.JAVA_HOME}\jre\lib\rt.jar</bootclasspath>

                  <source>1.4</source>

            </compilerArguments>

      </configuration>

</plugin>

 

I am getting:

 

 

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Compilation failure

 

Failure executing javac,  but could not parse the error:

The command line is too long. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: M 2.0.5 - Failure executing javac

Posted by Paul Benedict <pb...@apache.org>.
Alex,

JDK 6. The problem is solved only in 5+ -- doesn't include 5.

Paul

On Wed, Jul 30, 2008 at 1:36 PM, Morgovsky, Alexander (US - Glen Mills) <
amorgovsky@deloitte.com> wrote:

> Please help, I am using Java 1.5 as my JAVA_HOME and have the following
> in my POM - Maven 2.0.5.
>
>
>
> <plugin>
>
>      <groupId>org.apache.maven.plugins</groupId>
>
>      <artifactId>maven-compiler-plugin</artifactId>
>
>      <configuration>
>
>            <fork>true</fork>
>
>            <compilerArguments>
>
>                  <verbose />
>
>
> <bootclasspath>${env.JAVA_HOME}\jre\lib\rt.jar</bootclasspath>
>
>                  <source>1.4</source>
>
>            </compilerArguments>
>
>      </configuration>
>
> </plugin>
>
>
>
> I am getting:
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD FAILURE
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Compilation failure
>
>
>
> Failure executing javac,  but could not parse the error:
>
> The command line is too long.
>
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking of
> any action based on it, is strictly prohibited. [v.E.1]
>