[ 
http://jira.codehaus.org/browse/MCOMPILER-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135447#action_135447
 ] 

Greg Hengeli commented on MCOMPILER-30:
---------------------------------------

I too am encountering this error.  As (what I consider) a temporary solution, 
you can declare the dependency on plexus-utils to be version 1.5.1 in the 
plugin.  My question is why isn't this version of the dependency declared in 
the maven-compiler-plugin's pom?!  Is there another solution I am missing?

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
      <source>1.5</source>
      <target>1.5</target>
      <fork>true</fork>
      <executable>${JAVA5_HOME}/bin/javac</executable>
      <compilerVersion>1.5</compilerVersion>
    </configuration>
    <dependencies>
      <!-- required to allow spaces in the executable path -->
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>1.5.1</version>
      </dependency>
    </dependencies>
</plugin>

> Compiler fork executable fails when the path has spaces
> -------------------------------------------------------
>
>                 Key: MCOMPILER-30
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-30
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Carlos Sanchez
>            Assignee: Carlos Sanchez
>             Fix For: 2.0.2
>
>
> JAVA_1_3_HOME=C:\Program Files\Java\jdk1.3.1_18
>         <plugin>
>           <artifactId>maven-compiler-plugin</artifactId>
>           <configuration>
>             <fork>true</fork>
>             <compilerVersion>1.3</compilerVersion>
>             <executable>${JAVA_1_3_HOME}/bin/javac</executable>
>           </configuration>
>         </plugin>
> Fails with
> Failure executing javac,  but could not parse the error:
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.

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

        

Reply via email to