You might have just uncovered a bug in gwt:test. I think a workaround would be to move the maven-source-plugin to the process-classes phase.
And it worked like a charm :)
myartifact/pom.xml:
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>process-classes</phase> <!-- fix -->
<!-- <phase>package</phase> -->
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
mvn test:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] myartifact
[INFO] myartifact-shared
[INFO] myartifact-server-lib
[INFO] myartifact-client
[INFO] myartifact-server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myartifact 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myartifact-shared 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myartifact-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-shared\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myartifact-shared ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to E:\Users\vitrums\workspace-neon\myartifact\myartifact-shared\target\classes
[INFO]
[INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ myartifact-shared ---
[INFO] Building jar: E:\Users\vitrums\workspace-neon\myartifact\myartifact-shared\target\myartifact-shared-0.0.1-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myartifact-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-shared\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myartifact-shared ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myartifact-shared ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myartifact-server-lib 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myartifact-server-lib ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myartifact-server-lib ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\Users\vitrums\workspace-neon\myartifact\myartifact-server-lib\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myartifact-server-lib ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myartifact-server-lib ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myartifact-server-lib ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myartifact-client 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:enforce-encoding (default-enforce-encoding) @ myartifact-client ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:add-super-sources (default-add-super-sources) @ myartifact-client ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:add-test-super-sources (default-add-test-super-sources) @ myartifact-client ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:generate-module (default-generate-module) @ myartifact-client ---
[INFO] E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\target\classes\com\example\project\App.gwt.xml up to date - skipping
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ myartifact-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\src\main\resources
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\src\main\super
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myartifact-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\target\classes
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default-import-sources) @ myartifact-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ myartifact-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\src\test\resources
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\src\test\super
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myartifact-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\target\test-classes
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default-import-test-sources) @ myartifact-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-6:test (default-test) @ myartifact-client ---
[INFO] GWT tests report directory: E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.example.project.AppSuite
Starting Jetty on port 0
[WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Compiling module com.example.project.AppJUnit.JUnit
Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Compiling 1 permutation
Compiling permutation 0...
Compile of permutations succeeded
Compilation succeeded -- 21,181s
Linking into E:\Users\vitrums\workspace-neon\myartifact\myartifact-client\target\gwt-tests\www\com.example.project.AppJUnit.JUnit
Link succeeded
Linking succeeded -- 0,355s
Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Starting http://localhost:50070/com.example.project.AppJUnit.JUnit/junit.html on browser FF38
200 - GET /com.example.project.AppJUnit.JUnit/junit.html (127.0.0.1)
200 - GET /com.example.project.AppJUnit.JUnit/com.example.project.AppJUnit.JUnit.nocache.js (127.0.0.1)
200 - GET /com.example.project.AppJUnit.JUnit/83FA091D70963A1A3E4C52B7399675F9.cache.js (127.0.0.1)
200 - GET /com.example.project.AppJUnit.JUnit/gwt/clean/clean.css (127.0.0.1)
200 - POST /com.example.project.AppJUnit.JUnit/junithost (127.0.0.1) 216 bytes
200 - POST /com.example.project.AppJUnit.JUnit/app/greet (127.0.0.1) 178 bytes
200 - POST /com.example.project.AppJUnit.JUnit/junithost (127.0.0.1) 188 bytes
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.749 sec - in com.example.project.AppSuite
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myartifact-server 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myartifact-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-server\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myartifact-server ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to E:\Users\vitrums\workspace-neon\myartifact\myartifact-server\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myartifact-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\Users\vitrums\workspace-neon\myartifact\myartifact-server\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myartifact-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myartifact-server ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] myartifact ......................................... SUCCESS [ 0.004 s]
[INFO] myartifact-shared .................................. SUCCESS [ 2.136 s]
[INFO] myartifact-server-lib .............................. SUCCESS [ 0.127 s]
[INFO] myartifact-client .................................. SUCCESS [ 28.844 s]
[INFO] myartifact-server .................................. SUCCESS [ 0.128 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.418 s
[INFO] Finished at: 2016-12-02T22:00:11+03:00
[INFO] Final Memory: 31M/207M
[INFO] ------------------------------------------------------------------------
Is it safe to leave it like this?
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment