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

Includes and excludes not passed into CompilerConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5
    • 3.11.0
    • None

    Description

      Some groovy script is only for runtime excute, other source need compile for test.
      So I set exclude in maven-compiler-plugin tag, but it not work.

      <build>
          ...
          <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.5</version>
              <configuration>
                <compilerId>groovy-eclipse-compiler</compilerId>
                <excludes>
                          <exclude>**/rest/*</exclude>
                </excludes>
              </configuration>
              <dependencies>
                <dependency>
                  <groupId>org.codehaus.groovy</groupId>
                  <artifactId>groovy-eclipse-compiler</artifactId>
                  <version>2.9.2-01</version>
                </dependency>
                <dependency>
                  <groupId>org.codehaus.groovy</groupId>
                  <artifactId>groovy-eclipse-batch</artifactId>
                  <version>2.4.3-01</version>
                </dependency>
              </dependencies>
            </plugin>
          </plugins>
          ...
      </build>
      

      Attachments

        Activity

          People

            olamy Olivier Lamy
            silentstorm zhangchang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: