Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-192

No error reporting with forked compiler when Compiler includes non java files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1
    • None
    • Windows 7

    Description

      I notice one of my builds had this in the maven-compiler-plugin configuration:

      <include>my/path/MyFile.inc</include>
      

      In 2.5.1, the inc file is excluded from the generated compiler file and the build is successful.

      In 3.0, the inc file is included in the generated compiler file and the build is not successful. There are no warnings or errors displayed.

      The CLI returnCode is 2 but there is no output to grab messages from. When I grab the generated compiler file and run by myself on the command line, I get this:

      $ cmd.exe /X /C "C:\tools\jdk-1.6.0_33\bin\javac.exe @C:/Tools/cygwin/tmp/org.codehaus.plexus.compiler.javac.JavacCompiler3357522045371592375arguments"
      javac: invalid flag: C:/Users/me/project/src/java/my/path/MyFile.inc
      Usage: javac <options> <source files>
      use -help for a list of possible options
      

      I've removed the inc file from the compiler configuration, but the compiler plugin should handle more gracefully.

      Attachments

        1. test2.zip
          1 kB
          Trevor Baker

        Activity

          People

            olamy Olivier Lamy
            amoebaworks Trevor Baker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: