Sergei Ivanov created MCOMPILER-180:
---------------------------------------

             Summary: bad path element "": no such file or directory
                 Key: MCOMPILER-180
                 URL: https://jira.codehaus.org/browse/MCOMPILER-180
             Project: Maven 2.x Compiler Plugin
          Issue Type: Bug
    Affects Versions: 2.5.1
         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.18-194.32.1.el5", arch: "i386", family: "unix"
            Reporter: Sergei Ivanov
            Priority: Minor


When we added -Xlint:all to javac configuration, the following warning started 
to appear in the build logs:

{noformat}[WARNING] bad path element "": no such file or directory{noformat}

I ran the maven build with -X and looked at the command line for javac, and it 
appears that the lists for -classpath and -sourcepath are terminated with a 
colon. It should be a trivial change to not output a path separator after the 
last element in the path.

Our config options are (as in the effective POM):

{code:lang=xml}
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.5.1</version>
            <inherited>true</inherited>
            <configuration>
              <fork>true</fork>
              <showDeprecation>true</showDeprecation>
              <showWarnings>true</showWarnings>
              <source>1.6</source>
              <target>1.6</target>
              <compilerVersion>1.6</compilerVersion>
              <compilerArgument>-Xlint:all</compilerArgument>
              <testCompilerArgument>-Xlint:all</testCompilerArgument>
            </configuration>
          </plugin>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to