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

maven-compiler-plugin: incremental compilation broken

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      When we do clean -> compile -> compile, all Java sources are re-compiled for second compilation steps:

      [framework]$ mvn clean
      ...
      [framework]$ mvn compile
      ...
      [INFO] --- maven-compiler-plugin:3.1:compile (precompile-sources-for-cdk) @ richfaces-framework ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 915 source files to /mnt/workspace/workspaces/richfaces/richfaces5/framework/target/classes
      ...
      [framework]$ mvn compile
      ...
      [INFO] --- maven-compiler-plugin:3.1:compile (precompile-sources-for-cdk) @ richfaces-framework ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 915 source files to /mnt/workspace/workspaces/richfaces/richfaces5/framework/target/classes
      ...
      

      The source code of the affected project: https://github.com/richfaces/richfaces5/tree/077dcfc0a46d03d7ba9a7ac3e701a4adfb834c71

      1. only-recompile-changed.patch
        0.7 kB
        Damjan Jovanovic
      2. no-class-in-java-file.zip
        4 kB
        Vincent Latombe
      3. ignore-package-info.patch
        1 kB
        Damjan Jovanovic
      4. hello.tgz
        1 kB
        Osman İZBAT

        Issue Links

          Activity

          Hide
          raphael.ackermann@gmail.com Raphael Ackermann added a comment -

          instead of adding a dummy annotation to each package-info.java I changed the compiler configuration to
          <compilerArgs>
          <arg>-Xpkginfo:always</arg>
          </compilerArgs>

          which worked. Also running mvn compile -X will output which files are stale. This helped me to find an empty java file that would also be treated as stale source.

          Show
          raphael.ackermann@gmail.com Raphael Ackermann added a comment - instead of adding a dummy annotation to each package-info.java I changed the compiler configuration to <compilerArgs> <arg>-Xpkginfo:always</arg> </compilerArgs> which worked. Also running mvn compile -X will output which files are stale. This helped me to find an empty java file that would also be treated as stale source.
          Hide
          damjan Damjan Jovanovic added a comment -

          Deleting package-info.java from the list of stale files avoids recompiling the module every time, but still recompiles every file if anything changes.

          Show
          damjan Damjan Jovanovic added a comment - Deleting package-info.java from the list of stale files avoids recompiling the module every time, but still recompiles every file if anything changes.
          Hide
          damjan Damjan Jovanovic added a comment -

          This also works: delete files named "package-info.java" from the list of stale files.

          Show
          damjan Damjan Jovanovic added a comment - This also works: delete files named "package-info.java" from the list of stale files.
          Hide
          damjan Damjan Jovanovic added a comment -

          With useIncrementalCompilation on false, when changed sources are found, only they are recompiled.
          With useIncrementalCompilation on true, when changed sources are found, everything is recompiled. Why?

          The attached patch tries to only recompile the changed sources. It seems to work - but only on every second build. Someone more familiar with the code needs to have a look.

          Show
          damjan Damjan Jovanovic added a comment - With useIncrementalCompilation on false, when changed sources are found, only they are recompiled. With useIncrementalCompilation on true, when changed sources are found, everything is recompiled. Why? The attached patch tries to only recompile the changed sources. It seems to work - but only on every second build. Someone more familiar with the code needs to have a look.
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user kennknowles closed the pull request at:

          https://github.com/apache/incubator-beam/pull/287

          Show
          githubbot ASF GitHub Bot added a comment - Github user kennknowles closed the pull request at: https://github.com/apache/incubator-beam/pull/287
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #238 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/238/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #238 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/238/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2177 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2177/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2177 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2177/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2196 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2196/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2196 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2196/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #248 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/248/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #248 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/248/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #980 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/980/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #980 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/980/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #250 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/250/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #250 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/250/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8127 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8127/)
          HADOOP-12195. Add annotation to package-info.java file to workaround MCOMPILER-205. (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8127 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8127/ ) HADOOP-12195 . Add annotation to package-info.java file to workaround MCOMPILER-205 . (wang: rev 3dc92e84c2a530483c6a7693817b67d86f9c97aa) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          vlsi Vladimir Sitnikov added a comment -

          What if maven-compiler-plugin generates package-info.class files if the compilation was successful and package-info.class is missing for a particular package-info.java?

          Show
          vlsi Vladimir Sitnikov added a comment - What if maven-compiler-plugin generates package-info.class files if the compilation was successful and package-info.class is missing for a particular package-info.java?
          Hide
          sebb@apache.org Sebb added a comment -

          Note that version 2.5.1 does not suffer from this problem; it only recompiles the package_info.java files - they do not cause the entire project to be recompiled.

          3.0 and 3.1 are broken.

          Show
          sebb@apache.org Sebb added a comment - Note that version 2.5.1 does not suffer from this problem; it only recompiles the package_info.java files - they do not cause the entire project to be recompiled. 3.0 and 3.1 are broken.
          Hide
          sebb@apache.org Sebb added a comment -

          [For completeness]
          A work-round is to ensure that p-i files always generate output.
          One way to do this is to add an annotation.

          Unfortunately it appears that the only annotation which is guaranteed to be available in Java 1.5+ is @Deprecated, which is obviously unsuitable. But it is possible to create a dummy annotation, as follows:

          PackageMarker.java
          @Retention(RetentionPolicy.SOURCE)
          public @interface PackageMarker { }
          
          package-info.java
          /**
           * Example Package Javadoc
           */
          @PackageMarker
          package example;
          

          This work-round is suitable for projects that have a mix of p-i files, some of which already use annotations.
          Excluding the p-i files from compilation is only suitable if the p-i files contain Javadoc only.

          Show
          sebb@apache.org Sebb added a comment - [For completeness] A work-round is to ensure that p-i files always generate output. One way to do this is to add an annotation. Unfortunately it appears that the only annotation which is guaranteed to be available in Java 1.5+ is @Deprecated, which is obviously unsuitable. But it is possible to create a dummy annotation, as follows: PackageMarker.java @Retention(RetentionPolicy.SOURCE) public @ interface PackageMarker { } package-info.java /** * Example Package Javadoc */ @PackageMarker package example; This work-round is suitable for projects that have a mix of p-i files, some of which already use annotations. Excluding the p-i files from compilation is only suitable if the p-i files contain Javadoc only.
          Hide
          sebb@apache.org Sebb added a comment -

          Ant had an issue with the package-info.java files and solved it by creating empty class files if the javac compiler failed to do so. This is (now) optional behaviour.

          See https://issues.apache.org/bugzilla/show_bug.cgi?id=52096 for a useful discussion.

          It points out that JDK 7 javac has the option -Xpkginfo:always

          The difference with Ant is that it does not recompile everything just because a single p-i file is out of date.
          That's an optimisation that Maven could easily implement.

          Show
          sebb@apache.org Sebb added a comment - Ant had an issue with the package-info.java files and solved it by creating empty class files if the javac compiler failed to do so. This is (now) optional behaviour. See https://issues.apache.org/bugzilla/show_bug.cgi?id=52096 for a useful discussion. It points out that JDK 7 javac has the option -Xpkginfo:always The difference with Ant is that it does not recompile everything just because a single p-i file is out of date. That's an optimisation that Maven could easily implement.
          Hide
          sebb@apache.org Sebb added a comment -

          I'd forgotten about annotations.

          Ordinary Java source files may depend on each other, and therefore multiple files may need to be compiled if one source file changes.

          Is that true of package-info files, or are they independent?
          If so, there is no need to recompile anything else if one is found to be out of date, only the p-i file itself.
          This would reduce the recompilation needed.
          Ideally the package-info files would not be recompiled either if they won't generate class files, but that may be much harder to detect.

          Undesirable workrounds include: don't use p-i files; ensure every p-i file contains a package annotation.

          Show
          sebb@apache.org Sebb added a comment - I'd forgotten about annotations. Ordinary Java source files may depend on each other, and therefore multiple files may need to be compiled if one source file changes. Is that true of package-info files, or are they independent? If so, there is no need to recompile anything else if one is found to be out of date, only the p-i file itself. This would reduce the recompilation needed. Ideally the package-info files would not be recompiled either if they won't generate class files, but that may be much harder to detect. Undesirable workrounds include: don't use p-i files; ensure every p-i file contains a package annotation.
          Hide
          oliver.gierke Oliver Gierke added a comment -

          Just to be precise, package-info.java can generate .class files, e.g. if they contain package annotations. So these sources shouldn't just be plainly neglected.

          Show
          oliver.gierke Oliver Gierke added a comment - Just to be precise, package-info.java can generate .class files, e.g. if they contain package annotations. So these sources shouldn't just be plainly neglected.
          Hide
          sebb@apache.org Sebb added a comment - - edited

          I'm seeing same with Commons builds.

          Looks like it might be due to the new way of defining Javadoc for packages:

          useIncrementalCompilation enabled
          Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\whois\package-info.java
          Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\imap\package-info.java
          Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\finger\package-info.java
          Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\tftp\package-info.java

          Since these never rarely generate .class files, they will always usually cause the compile to be re-run

          Show
          sebb@apache.org Sebb added a comment - - edited I'm seeing same with Commons builds. Looks like it might be due to the new way of defining Javadoc for packages: useIncrementalCompilation enabled Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\whois\package-info.java Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\imap\package-info.java Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\finger\package-info.java Stale source detected: D:\eclipseworkspaces\main\commons-net\src\main\java\org\apache\commons\net\tftp\package-info.java Since these never rarely generate .class files, they will always usually cause the compile to be re-run
          Hide
          osmanizbat Osman İZBAT added a comment -

          I've a similar problem. I've attached hello as a sample project.
          When i do mvn clean compile; mvn compile nothing compiles as expected.
          But when i change only one java file, plugin compiles all module.

          hello$ mvn clean compile
          ...
          hello$ echo " " >> src/main/java/com/mycompany/hello/Hello.java
          hello$ mvn -X compile
          Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 15:51:28+0200)
          Maven home: /home/osman/dev/tools/maven
          Java version: 1.7.0_21, vendor: Oracle Corporation
          Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
          Default locale: en_US, platform encoding: UTF-8
          OS name: "linux", version: "3.5.0-27-generic", arch: "amd64", family: "unix"
          [INFO] Error stacktraces are turned on.
          [DEBUG] Reading global settings from /home/osman/dev/tools/maven/conf/settings.xml
          [DEBUG] Reading user settings from /home/osman/.m2/settings.xml
          [DEBUG] Using local repository at /home/osman/.m2/repository
          [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/osman/.m2/repository
          [INFO] Scanning for projects...
          [DEBUG] Extension realms for project com.mycompany:hello:jar:1.0-SNAPSHOT: (none)
          [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
          [DEBUG] === REACTOR BUILD PLAN ================================================
          [DEBUG] Project: com.mycompany:hello:jar:1.0-SNAPSHOT
          [DEBUG] Tasks: [compile]
          [DEBUG] Style: Regular
          [DEBUG] =======================================================================
          [INFO]
          [INFO] ------------------------------------------------------------------------
          [INFO] Building hello 1.0-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
          [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
          [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
          [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
          [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
          [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
          [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
          [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
          [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
          [DEBUG] === PROJECT BUILD PLAN ================================================
          [DEBUG] Project: com.mycompany:hello:1.0-SNAPSHOT
          [DEBUG] Dependencies (collect): []
          [DEBUG] Dependencies (resolve): [compile]
          [DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)]
          [DEBUG] Repositories (plugins) : [central (http://repo.maven.apache.org/maven2, releases)]
          [DEBUG] -----------------------------------------------------------------------
          [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
          [DEBUG] Style: Regular
          [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
          <configuration>
          <buildFilters default-value="$

          {project.build.filters}

          "/>
          <encoding default-value="$

          {project.build.sourceEncoding}">${encoding}</encoding>
          <escapeString>${maven.resources.escapeString}</escapeString>
          <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
          <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
          <outputDirectory default-value="${project.build.outputDirectory}"/>
          <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
          <project default-value="${project}"/>
          <resources default-value="${project.resources}"/>
          <session default-value="${session}"/>
          <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
          <useBuildFilters default-value="true"/>
          <useDefaultDelimiters default-value="true"/>
          </configuration>
          [DEBUG] -----------------------------------------------------------------------
          [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
          [DEBUG] Style: Regular
          [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
          <configuration>
          <basedir default-value="${basedir}"/>
          <buildDirectory default-value="${project.build.directory}"/>
          <classpathElements default-value="${project.compileClasspathElements}"/>
          <compileSourceRoots default-value="${project.compileSourceRoots}"/>
          <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
          <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy>
          <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
          <debug default-value="true">${maven.compiler.debug}</debug>
          <debuglevel>${maven.compiler.debuglevel}</debuglevel>
          <encoding default-value="${project.build.sourceEncoding}

          ">UTF-8</encoding>
          <executable>$

          {maven.compiler.executable}

          </executable>
          <failOnError default-value="true">$

          {maven.compiler.failOnError}

          </failOnError>
          <forceJavacCompilerUse default-value="false">true</forceJavacCompilerUse>
          <fork default-value="false">$

          {maven.compiler.fork}

          </fork>
          <generatedSourcesDirectory default-value="$

          {project.build.directory}

          /generated-sources/annotations"/>
          <maxmem>$

          {maven.compiler.maxmem}

          </maxmem>
          <meminitial>$

          {maven.compiler.meminitial}

          </meminitial>
          <mojoExecution>$

          {mojoExecution}

          </mojoExecution>
          <optimize default-value="false">$

          {maven.compiler.optimize}

          </optimize>
          <outputDirectory default-value="$

          {project.build.outputDirectory}

          "/>
          <projectArtifact default-value="$

          {project.artifact}

          "/>
          <showDeprecation default-value="false">$

          {maven.compiler.showDeprecation}

          </showDeprecation>
          <showWarnings default-value="false">$

          {maven.compiler.showWarnings}

          </showWarnings>
          <skipMain>$

          {maven.main.skip}

          </skipMain>
          <skipMultiThreadWarning default-value="false">$

          {maven.compiler.skipMultiThreadWarning}

          </skipMultiThreadWarning>
          <source default-value="1.5">1.6</source>
          <staleMillis default-value="0">$

          {lastModGranularityMs}

          </staleMillis>
          <target default-value="1.5">1.6</target>
          <useIncrementalCompilation default-value="true">$

          {maven.compiler.useIncrementalCompilation}

          </useIncrementalCompilation>
          <verbose default-value="false">$

          {maven.compiler.verbose}

          </verbose>
          <mavenSession default-value="$

          {session}"/>
          <session default-value="${session}

          "/>
          </configuration>
          [DEBUG] =======================================================================
          [DEBUG] com.mycompany:hello:jar:1.0-SNAPSHOT
          [DEBUG] junit:junit:jar:4.11:test
          [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
          [INFO]
          [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ hello —
          [DEBUG] Created new class realm maven.api
          [DEBUG] Importing foreign packages into class realm maven.api
          [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
          [DEBUG] Imported: org.sonatype.aether.transfer < plexus.core
          [DEBUG] Imported: org.apache.maven.exception < plexus.core
          [DEBUG] Imported: org.sonatype.aether.metadata < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
          [DEBUG] Imported: org.sonatype.aether.collection < plexus.core
          [DEBUG] Imported: org.sonatype.aether.version < plexus.core
          [DEBUG] Imported: org.apache.maven.monitor < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
          [DEBUG] Imported: org.apache.maven.repository < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
          [DEBUG] Imported: org.apache.maven.profiles < plexus.core
          [DEBUG] Imported: org.sonatype.aether.repository < plexus.core
          [DEBUG] Imported: org.apache.maven.classrealm < plexus.core
          [DEBUG] Imported: org.apache.maven.execution < plexus.core
          [DEBUG] Imported: org.sonatype.aether.artifact < plexus.core
          [DEBUG] Imported: org.sonatype.aether.spi < plexus.core
          [DEBUG] Imported: org.apache.maven.reporting < plexus.core
          [DEBUG] Imported: org.apache.maven.usability < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.container < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.component < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
          [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
          [DEBUG] Imported: org.sonatype.aether.graph < plexus.core
          [DEBUG] Imported: org.sonatype.aether.* < plexus.core
          [DEBUG] Imported: org.apache.maven.settings < plexus.core
          [DEBUG] Imported: org.codehaus.classworlds < plexus.core
          [DEBUG] Imported: org.sonatype.aether.impl < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
          [DEBUG] Imported: org.apache.maven.toolchain < plexus.core
          [DEBUG] Imported: org.sonatype.aether.deployment < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
          [DEBUG] Imported: org.apache.maven.configuration < plexus.core
          [DEBUG] Imported: org.apache.maven.cli < plexus.core
          [DEBUG] Imported: org.sonatype.aether.installation < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.context < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
          [DEBUG] Imported: org.apache.maven.project < plexus.core
          [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
          [DEBUG] Imported: org.apache.maven.artifact < plexus.core
          [DEBUG] Imported: org.apache.maven.model < plexus.core
          [DEBUG] Imported: org.apache.maven.* < plexus.core
          [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
          [DEBUG] Imported: org.sonatype.aether.resolution < plexus.core
          [DEBUG] Imported: org.apache.maven.plugin < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.* < plexus.core
          [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
          [DEBUG] Populating class realm maven.api
          [DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.5:
          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
          [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
          [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
          [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
          [DEBUG] commons-cli:commons-cli:jar:1.0:compile
          [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
          [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
          [DEBUG] classworlds:classworlds:jar:1.1:compile
          [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
          [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
          [DEBUG] junit:junit:jar:3.8.1:compile
          [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
          [DEBUG] org.apache.maven.shared:maven-filtering:jar:1.0:compile
          [DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
          [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
          [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
          [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
          [DEBUG] Imported: < maven.api
          [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
          [DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:2.5
          [DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
          [DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
          [DEBUG] Included: commons-cli:commons-cli:jar:1.0
          [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
          [DEBUG] Included: junit:junit:jar:3.8.1
          [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
          [DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:1.0
          [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.4
          [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.13
          [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6
          [DEBUG] Excluded: classworlds:classworlds:jar:1.1
          [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
          [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6
          [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
          [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.5:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@5eab4b89]
          [debug] execute contextualize
          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.5:resources' with basic configurator -->
          [DEBUG] (f) buildFilters = []
          [DEBUG] (f) encoding = UTF-8
          [DEBUG] (f) escapeWindowsPaths = true
          [DEBUG] (s) includeEmptyDirs = false
          [DEBUG] (s) outputDirectory = /home/osman/NetBeansProjects/hello/target/classes
          [DEBUG] (s) overwrite = false
          [DEBUG] (f) project = MavenProject: com.mycompany:hello:1.0-SNAPSHOT @ /home/osman/NetBeansProjects/hello/pom.xml
          [DEBUG] (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /home/osman/NetBeansProjects/hello/src/main/resources, PatternSet [includes: {}, excludes: {}]}}]
          [DEBUG] (f) session = org.apache.maven.execution.MavenSession@65843e29
          [DEBUG] (f) supportMultiLineFiltering = false
          [DEBUG] (f) useBuildFilters = true
          [DEBUG] (s) useDefaultDelimiters = true
          [DEBUG] – end configuration –
          [DEBUG] properties used

          {...}

          [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [DEBUG] resource with targetPath null
          directory /home/osman/NetBeansProjects/hello/src/main/resources
          excludes []
          includes []
          [INFO] skip non existing resourceDirectory /home/osman/NetBeansProjects/hello/src/main/resources
          [DEBUG] no use filter components
          [INFO]
          [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ hello —
          [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:3.1:
          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-artifact:jar:2.0.9:compile
          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1:compile
          [DEBUG] org.apache.maven:maven-core:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-settings:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-profile:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-model:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-project:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-monitor:jar:2.0.9:compile
          [DEBUG] org.apache.maven:maven-toolchain:jar:1.0:compile
          [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:0.1:compile
          [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile
          [DEBUG] org.apache.maven.shared:maven-shared-incremental:jar:1.1:compile
          [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
          [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:2.2:compile
          [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:2.2:compile
          [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:2.2:runtime
          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.5.5:compile
          [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.2:compile
          [DEBUG] org.apache.xbean:xbean-reflect:jar:3.4:compile
          [DEBUG] log4j:log4j:jar:1.2.12:compile
          [DEBUG] commons-logging:commons-logging-api:jar:1.1:compile
          [DEBUG] com.google.collections:google-collections:jar:1.0:compile
          [DEBUG] junit:junit:jar:3.8.2:compile
          [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
          [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
          [DEBUG] Imported: < maven.api
          [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1
          [DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.1
          [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.1
          [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:0.1
          [DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1
          [DEBUG] Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1
          [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
          [DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:2.2
          [DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.2
          [DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.2
          [DEBUG] Included: org.apache.xbean:xbean-reflect:jar:3.4
          [DEBUG] Included: log4j:log4j:jar:1.2.12
          [DEBUG] Included: commons-logging:commons-logging-api:jar:1.1
          [DEBUG] Included: com.google.collections:google-collections:jar:1.0
          [DEBUG] Included: junit:junit:jar:3.8.2
          [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.9
          [DEBUG] Excluded: org.apache.maven:maven-toolchain:jar:1.0
          [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.5.5
          [DEBUG] Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.2.2
          [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: sun.misc.Launcher$AppClassLoader@5eab4b89]
          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.1:compile' with basic configurator -->
          [DEBUG] (f) basedir = /home/osman/NetBeansProjects/hello
          [DEBUG] (f) buildDirectory = /home/osman/NetBeansProjects/hello/target
          [DEBUG] (f) classpathElements = [/home/osman/NetBeansProjects/hello/target/classes]
          [DEBUG] (f) compileSourceRoots = [/home/osman/NetBeansProjects/hello/src/main/java]
          [DEBUG] (f) compilerId = javac
          [DEBUG] (f) debug = true
          [DEBUG] (f) encoding = UTF-8
          [DEBUG] (f) failOnError = true
          [DEBUG] (f) forceJavacCompilerUse = true
          [DEBUG] (f) fork = false
          [DEBUG] (f) generatedSourcesDirectory = /home/osman/NetBeansProjects/hello/target/generated-sources/annotations
          [DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.1:compile

          {execution: default-compile}

          [DEBUG] (f) optimize = false
          [DEBUG] (f) outputDirectory = /home/osman/NetBeansProjects/hello/target/classes
          [DEBUG] (f) projectArtifact = com.mycompany:hello:jar:1.0-SNAPSHOT
          [DEBUG] (f) showDeprecation = false
          [DEBUG] (f) showWarnings = false
          [DEBUG] (f) skipMultiThreadWarning = false
          [DEBUG] (f) source = 1.6
          [DEBUG] (f) staleMillis = 0
          [DEBUG] (f) target = 1.6
          [DEBUG] (f) useIncrementalCompilation = true
          [DEBUG] (f) verbose = false
          [DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@65843e29
          [DEBUG] (f) session = org.apache.maven.execution.MavenSession@65843e29
          [DEBUG] – end configuration –
          [DEBUG] Using compiler 'javac'.
          [DEBUG] Source directories: [/home/osman/NetBeansProjects/hello/src/main/java]
          [DEBUG] Classpath: [/home/osman/NetBeansProjects/hello/target/classes]
          [DEBUG] Output directory: /home/osman/NetBeansProjects/hello/target/classes
          [DEBUG] CompilerReuseStrategy: reuseCreated
          [DEBUG] useIncrementalCompilation enabled
          [DEBUG] Stale source detected: /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/Hello.java
          [INFO] Changes detected - recompiling the module!
          [DEBUG] Classpath:
          [DEBUG] /home/osman/NetBeansProjects/hello/target/classes
          [DEBUG] Source roots:
          [DEBUG] /home/osman/NetBeansProjects/hello/src/main/java
          [DEBUG] Command line options:
          [DEBUG] -d /home/osman/NetBeansProjects/hello/target/classes -classpath /home/osman/NetBeansProjects/hello/target/classes: -sourcepath /home/osman/NetBeansProjects/hello/src/main/java: /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/App.java /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/Hello.java -s /home/osman/NetBeansProjects/hello/target/generated-sources/annotations -g -nowarn -target 1.6 -source 1.6 -encoding UTF-8
          [DEBUG] incrementalBuildHelper#beforeRebuildExecution
          [INFO] Compiling 2 source files to /home/osman/NetBeansProjects/hello/target/classes
          [DEBUG] incrementalBuildHelper#afterRebuildExecution
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESS
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 2.145s
          [INFO] Finished at: Mon Apr 29 12:07:43 EEST 2013
          [INFO] Final Memory: 14M/108M
          [INFO] ------------------------------------------------------------------------

          Show
          osmanizbat Osman İZBAT added a comment - I've a similar problem. I've attached hello as a sample project. When i do mvn clean compile; mvn compile nothing compiles as expected. But when i change only one java file, plugin compiles all module. hello$ mvn clean compile ... hello$ echo " " >> src/main/java/com/mycompany/hello/Hello.java hello$ mvn -X compile Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 15:51:28+0200) Maven home: /home/osman/dev/tools/maven Java version: 1.7.0_21, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.5.0-27-generic", arch: "amd64", family: "unix" [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from /home/osman/dev/tools/maven/conf/settings.xml [DEBUG] Reading user settings from /home/osman/.m2/settings.xml [DEBUG] Using local repository at /home/osman/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/osman/.m2/repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.mycompany:hello:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm [plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.mycompany:hello:jar:1.0-SNAPSHOT [DEBUG] Tasks: [compile] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building hello 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.mycompany:hello:1.0-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile] [DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)] [DEBUG] Repositories (plugins) : [central (http://repo.maven.apache.org/maven2, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <buildFilters default-value="$ {project.build.filters} "/> <encoding default-value="$ {project.build.sourceEncoding}">${encoding}</encoding> <escapeString>${maven.resources.escapeString}</escapeString> <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths> <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs> <outputDirectory default-value="${project.build.outputDirectory}"/> <overwrite default-value="false">${maven.resources.overwrite}</overwrite> <project default-value="${project}"/> <resources default-value="${project.resources}"/> <session default-value="${session}"/> <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering> <useBuildFilters default-value="true"/> <useDefaultDelimiters default-value="true"/> </configuration> [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <basedir default-value="${basedir}"/> <buildDirectory default-value="${project.build.directory}"/> <classpathElements default-value="${project.compileClasspathElements}"/> <compileSourceRoots default-value="${project.compileSourceRoots}"/> <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId> <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy> <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion> <debug default-value="true">${maven.compiler.debug}</debug> <debuglevel>${maven.compiler.debuglevel}</debuglevel> <encoding default-value="${project.build.sourceEncoding} ">UTF-8</encoding> <executable>$ {maven.compiler.executable} </executable> <failOnError default-value="true">$ {maven.compiler.failOnError} </failOnError> <forceJavacCompilerUse default-value="false">true</forceJavacCompilerUse> <fork default-value="false">$ {maven.compiler.fork} </fork> <generatedSourcesDirectory default-value="$ {project.build.directory} /generated-sources/annotations"/> <maxmem>$ {maven.compiler.maxmem} </maxmem> <meminitial>$ {maven.compiler.meminitial} </meminitial> <mojoExecution>$ {mojoExecution} </mojoExecution> <optimize default-value="false">$ {maven.compiler.optimize} </optimize> <outputDirectory default-value="$ {project.build.outputDirectory} "/> <projectArtifact default-value="$ {project.artifact} "/> <showDeprecation default-value="false">$ {maven.compiler.showDeprecation} </showDeprecation> <showWarnings default-value="false">$ {maven.compiler.showWarnings} </showWarnings> <skipMain>$ {maven.main.skip} </skipMain> <skipMultiThreadWarning default-value="false">$ {maven.compiler.skipMultiThreadWarning} </skipMultiThreadWarning> <source default-value="1.5">1.6</source> <staleMillis default-value="0">$ {lastModGranularityMs} </staleMillis> <target default-value="1.5">1.6</target> <useIncrementalCompilation default-value="true">$ {maven.compiler.useIncrementalCompilation} </useIncrementalCompilation> <verbose default-value="false">$ {maven.compiler.verbose} </verbose> <mavenSession default-value="$ {session}"/> <session default-value="${session} "/> </configuration> [DEBUG] ======================================================================= [DEBUG] com.mycompany:hello:jar:1.0-SNAPSHOT [DEBUG] junit:junit:jar:4.11:test [DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test [INFO] [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ hello — [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.sonatype.aether.transfer < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.sonatype.aether.metadata < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.sonatype.aether.collection < plexus.core [DEBUG] Imported: org.sonatype.aether.version < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.sonatype.aether.repository < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.sonatype.aether.artifact < plexus.core [DEBUG] Imported: org.sonatype.aether.spi < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.graph < plexus.core [DEBUG] Imported: org.sonatype.aether.* < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.impl < plexus.core [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.sonatype.aether.deployment < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.sonatype.aether.installation < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.* < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.sonatype.aether.resolution < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.codehaus.plexus.* < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Populating class realm maven.api [DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.5: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile [DEBUG] commons-cli:commons-cli:jar:1.0:compile [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile [DEBUG] classworlds:classworlds:jar:1.1:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile [DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile [DEBUG] org.apache.maven.shared:maven-filtering:jar:1.0:compile [DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.13:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5 [DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:2.5 [DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6 [DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7 [DEBUG] Included: commons-cli:commons-cli:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5 [DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:1.0 [DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.4 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.13 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6 [DEBUG] Excluded: classworlds:classworlds:jar:1.1 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6 [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.5:resources from plugin realm ClassRealm [plugin>org.apache.maven.plugins:maven-resources-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@5eab4b89] [debug] execute contextualize [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.5:resources' with basic configurator --> [DEBUG] (f) buildFilters = [] [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) escapeWindowsPaths = true [DEBUG] (s) includeEmptyDirs = false [DEBUG] (s) outputDirectory = /home/osman/NetBeansProjects/hello/target/classes [DEBUG] (s) overwrite = false [DEBUG] (f) project = MavenProject: com.mycompany:hello:1.0-SNAPSHOT @ /home/osman/NetBeansProjects/hello/pom.xml [DEBUG] (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /home/osman/NetBeansProjects/hello/src/main/resources, PatternSet [includes: {}, excludes: {}] }}] [DEBUG] (f) session = org.apache.maven.execution.MavenSession@65843e29 [DEBUG] (f) supportMultiLineFiltering = false [DEBUG] (f) useBuildFilters = true [DEBUG] (s) useDefaultDelimiters = true [DEBUG] – end configuration – [DEBUG] properties used {...} [INFO] Using 'UTF-8' encoding to copy filtered resources. [DEBUG] resource with targetPath null directory /home/osman/NetBeansProjects/hello/src/main/resources excludes [] includes [] [INFO] skip non existing resourceDirectory /home/osman/NetBeansProjects/hello/src/main/resources [DEBUG] no use filter components [INFO] [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ hello — [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.0.9:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1:compile [DEBUG] org.apache.maven:maven-core:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-settings:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-profile:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-model:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-project:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-monitor:jar:2.0.9:compile [DEBUG] org.apache.maven:maven-toolchain:jar:1.0:compile [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:0.1:compile [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile [DEBUG] org.apache.maven.shared:maven-shared-incremental:jar:1.1:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:2.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:2.2:compile [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:2.2:runtime [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.5.5:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.2:compile [DEBUG] org.apache.xbean:xbean-reflect:jar:3.4:compile [DEBUG] log4j:log4j:jar:1.2.12:compile [DEBUG] commons-logging:commons-logging-api:jar:1.1:compile [DEBUG] com.google.collections:google-collections:jar:1.0:compile [DEBUG] junit:junit:jar:3.8.2:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1 [DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.1 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:0.1 [DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1 [DEBUG] Included: org.apache.maven.shared:maven-shared-incremental:jar:1.1 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:2.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:2.2 [DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:2.2 [DEBUG] Included: org.apache.xbean:xbean-reflect:jar:3.4 [DEBUG] Included: log4j:log4j:jar:1.2.12 [DEBUG] Included: commons-logging:commons-logging-api:jar:1.1 [DEBUG] Included: com.google.collections:google-collections:jar:1.0 [DEBUG] Included: junit:junit:jar:3.8.2 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.9 [DEBUG] Excluded: org.apache.maven:maven-toolchain:jar:1.0 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.5.5 [DEBUG] Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.2.2 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:3.1:compile from plugin realm ClassRealm [plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: sun.misc.Launcher$AppClassLoader@5eab4b89] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.1:compile' with basic configurator --> [DEBUG] (f) basedir = /home/osman/NetBeansProjects/hello [DEBUG] (f) buildDirectory = /home/osman/NetBeansProjects/hello/target [DEBUG] (f) classpathElements = [/home/osman/NetBeansProjects/hello/target/classes] [DEBUG] (f) compileSourceRoots = [/home/osman/NetBeansProjects/hello/src/main/java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) failOnError = true [DEBUG] (f) forceJavacCompilerUse = true [DEBUG] (f) fork = false [DEBUG] (f) generatedSourcesDirectory = /home/osman/NetBeansProjects/hello/target/generated-sources/annotations [DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.1:compile {execution: default-compile} [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = /home/osman/NetBeansProjects/hello/target/classes [DEBUG] (f) projectArtifact = com.mycompany:hello:jar:1.0-SNAPSHOT [DEBUG] (f) showDeprecation = false [DEBUG] (f) showWarnings = false [DEBUG] (f) skipMultiThreadWarning = false [DEBUG] (f) source = 1.6 [DEBUG] (f) staleMillis = 0 [DEBUG] (f) target = 1.6 [DEBUG] (f) useIncrementalCompilation = true [DEBUG] (f) verbose = false [DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@65843e29 [DEBUG] (f) session = org.apache.maven.execution.MavenSession@65843e29 [DEBUG] – end configuration – [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [/home/osman/NetBeansProjects/hello/src/main/java] [DEBUG] Classpath: [/home/osman/NetBeansProjects/hello/target/classes] [DEBUG] Output directory: /home/osman/NetBeansProjects/hello/target/classes [DEBUG] CompilerReuseStrategy: reuseCreated [DEBUG] useIncrementalCompilation enabled [DEBUG] Stale source detected: /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/Hello.java [INFO] Changes detected - recompiling the module! [DEBUG] Classpath: [DEBUG] /home/osman/NetBeansProjects/hello/target/classes [DEBUG] Source roots: [DEBUG] /home/osman/NetBeansProjects/hello/src/main/java [DEBUG] Command line options: [DEBUG] -d /home/osman/NetBeansProjects/hello/target/classes -classpath /home/osman/NetBeansProjects/hello/target/classes: -sourcepath /home/osman/NetBeansProjects/hello/src/main/java: /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/App.java /home/osman/NetBeansProjects/hello/src/main/java/com/mycompany/hello/Hello.java -s /home/osman/NetBeansProjects/hello/target/generated-sources/annotations -g -nowarn -target 1.6 -source 1.6 -encoding UTF-8 [DEBUG] incrementalBuildHelper#beforeRebuildExecution [INFO] Compiling 2 source files to /home/osman/NetBeansProjects/hello/target/classes [DEBUG] incrementalBuildHelper#afterRebuildExecution [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.145s [INFO] Finished at: Mon Apr 29 12:07:43 EEST 2013 [INFO] Final Memory: 14M/108M [INFO] ------------------------------------------------------------------------
          Hide
          olamy Olivier Lamy (*$^¨%`£) added a comment -

          use <excludes> to exclude those files from incremental analysis.

          Show
          olamy Olivier Lamy (*$^¨%`£) added a comment - use <excludes> to exclude those files from incremental analysis.
          Hide
          gslowikowski Grzegorz Slowikowski added a comment -

          It's recommended, but not required, and sometimes there are different requirements.

          I have this issue compiling Play! Framework project. There is requirement for all sources and resources be placed in "app" directory (see http://www.playframework.com/documentation/1.2.5/guide1 and http://www.playframework.com/documentation/2.0/Anatomy).
          I'm using Maven plugin for Play! Framework (http://code.google.com/p/maven-play-plugin/) to build Play! projects.

          Show
          gslowikowski Grzegorz Slowikowski added a comment - It's recommended, but not required, and sometimes there are different requirements. I have this issue compiling Play! Framework project. There is requirement for all sources and resources be placed in "app" directory (see http://www.playframework.com/documentation/1.2.5/guide1 and http://www.playframework.com/documentation/2.0/Anatomy ). I'm using Maven plugin for Play! Framework ( http://code.google.com/p/maven-play-plugin/ ) to build Play! projects.
          Hide
          vlatombe Vincent Latombe added a comment -

          xml files are resources, in maven world they should be stored under src/main/resources...

          Show
          vlatombe Vincent Latombe added a comment - xml files are resources, in maven world they should be stored under src/main/resources...
          Hide
          lfryc Lukas Fryc added a comment -

          That make sense. Our requirement was storing the XML files side-by-side the Java files so they are easily accessible by contributors. Would you consider it valid use case?

          Show
          lfryc Lukas Fryc added a comment - That make sense. Our requirement was storing the XML files side-by-side the Java files so they are easily accessible by contributors. Would you consider it valid use case?
          Hide
          vlatombe Vincent Latombe added a comment -

          The root cause of this issue seems handling of resources in src/main/java that do not end up generating a .class file under target/classes.

          Show
          vlatombe Vincent Latombe added a comment - The root cause of this issue seems handling of resources in src/main/java that do not end up generating a .class file under target/classes.
          Hide
          vlatombe Vincent Latombe added a comment -

          Attaching the IT from original MCOMPILER-187

          Show
          vlatombe Vincent Latombe added a comment - Attaching the IT from original MCOMPILER-187

            People

            • Assignee:
              Unassigned
              Reporter:
              lfryc Lukas Fryc
            • Votes:
              24 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

              • Created:
                Updated:

                Development