Maven/JBehave build issue - maven

When attempting to use the Maven plugin with JBehave, I am getting a build error that says
Plugin org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not be resolved: Failure to find org.jenkins-ci:annotation-indexer:jar:1.4 in http://repo1.maven.org/maven2 was cached in the local repository
This is everything that happened in the terminal minus some of the reports generated:
dhcp-10-126-9-165:jbehave-3.8 DeeWu$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JBehave
[INFO] JBehave Core
[INFO] JBehave Ant
[INFO] JBehave Maven Plugin
[INFO] JBehave Hudson Plugin
[INFO] JBehave Jenkins Plugin
[INFO] JBehave Navigator
[INFO] JBehave Gherkin
[INFO] JBehave ODF
[INFO] JBehave Google
[INFO] JBehave Groovy
[INFO] JBehave Scala
[INFO] JBehave Guice
[INFO] JBehave PicoContainer
[INFO] JBehave Spring
[INFO] JBehave Weld
[INFO] JBehave Archetypes
[INFO] JBehave Simple Archetype
[INFO] JBehave Groovy Archetype
[INFO] JBehave Guice Archetype
[INFO] JBehave Pico Archetype
[INFO] JBehave Spring Archetype
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave/3.8/jbehave-3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Core 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-core ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-core/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-core ---
[INFO] Compiling 185 source files to /Users/DeeWu/src/jbehave-3.8/jbehave- core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave-core -- -
[INFO] Compiling 78 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/test- classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-core ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave- core/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.core.ConfigurableEmbedderBehaviour
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.875 sec
Running org.jbehave.core.configuration.AnnotationBuilderBehaviour
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.423 sec
Running org.jbehave.core.configuration.AnnotationFinderBehaviour
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running org.jbehave.core.configuration.KeywordsBehaviour
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.jbehave.core.configuration.ParanamerConfigurationBehaviour
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running org.jbehave.core.configuration.PropertyBasedConfigurationBehaviour
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.jbehave.core.configuration.UnmodifiableConfigurationBehaviour
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec
Running org.jbehave.core.embedder.ConcurrencyBehaviour
Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=f alse,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs =1,threads=1]
Running embeddable org.jbehave.core.embedder.ConcurrencyBehaviour$ThreadsStories
Processing system properties {}
Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=f alse,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs =1,threads=1]
(BeforeStories)
Running story org/jbehave/core/embedder/a_long.story
(org/jbehave/core/embedder/a_long.story)
Scenario:
Mauro starts counting to 3
Mauro says 0 Mississippi (0 millis)
Mauro says 1 Mississippi (1001 millis)
Story org/jbehave/core/embedder/a_long.story duration of 2 seconds has exceeded timeout of 1 seconds
When Mauro counts to 3 Mississippi (FAILED)
(java.lang.InterruptedException: sleep interrupted)
STORY CANCELLED (DURATION 2 s)
Running story test+dir/dummy.story
(test+dir/dummy.story)
Scenario:
(AfterStories)
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-core ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core-3.8.jar
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (package-resources) # jbehave-core ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks
main:
[zip] Building zip: /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core- resources.zip
[INFO] Executed tasks
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:attach-artifact (attach-artifacts) # jbehave-core ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-core ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8.pom
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core- resources.zip to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8- resources.zip
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Ant 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-ant ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-ant ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave- ant/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-ant ---
[INFO] Compiling 9 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave-ant ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave- ant/src/test/resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave-ant ---
[INFO] Compiling 3 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/test- classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-ant ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave- ant/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.ant.EmbedderTaskBehaviour
Using executor service Mock for ExecutorService, hashCode: 1234403385
Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 1464447632
Found class names : []
Mapping stories as paths using embedder Mock for Embedder, hashCode: 1750442808
Found story paths: [org/jbehave/ant/stories/first.story, org/jbehave/ant/stories/second.story]
Generating stories view using embedder Mock for Embedder, hashCode: 142077827
Reporting stepdocs using embedder Mock for Embedder, hashCode: 848649429
Running stories as Embeddables using embedder Mock for Embedder, hashCode: 1717173025
Found class names : [org.jbehave.ant.stories.Embeddable1, org.jbehave.ant.stories.Embeddable2]
Running stories as paths using embedder Mock for Embedder, hashCode: 1477356634
Found story paths: [org/jbehave/ant/stories/first.story, org/jbehave/ant/stories/second.story]
Running stories with annotated embedder runner
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.255 sec
Found class names : [org.jbehave.ant.stories.Embeddable1, org.jbehave.ant.stories.Embeddable2]
Results :
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-ant ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/jbehave-ant-3.8.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-ant ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/jbehave-ant-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-ant/3.8/jbehave-ant-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-ant/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-ant/3.8/jbehave-ant-3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Maven Plugin 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-maven-plugin ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target
[INFO]
[INFO] --- maven-plugin-plugin:2.7:descriptor (default-descriptor) # jbehave-maven- plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 10 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-maven- plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-maven-plugin ---
[INFO] Compiling 11 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave- maven-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/src/test/resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave- maven-plugin ---
[INFO] Compiling 3 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-maven-plugin ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.mojo.EmbedderMojoBehaviour
Using executor service Mock for ExecutorService, hashCode: 257798932
[info] Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 971277631
[debug] Searching for class names including [**/*StoryMaps.java] and excluding []
[info] Found class names: []
[info] Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 142077827
[debug] Searching for class names including [**/*StoryMaps.java] and excluding []
[info] Found class names: []
[info] Mapping stories as paths using embedder Mock for Embedder, hashCode: 1717173025
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Mapping stories as paths using embedder Mock for Embedder, hashCode: 1477356634
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Generating stories view using embedder Mock for Embedder, hashCode: 176271867
[info] Reporting stepdocs using embedder Mock for Embedder, hashCode: 1067398966
[info] Reporting stepdocs using embedder Mock for Embedder, hashCode: 115841081
[info] Running stories as embeddables using embedder Mock for Embedder, hashCode: 713879274
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories as embeddables using embedder Mock for Embedder, hashCode: 424162811
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories as paths using embedder Mock for Embedder, hashCode: 1006753184
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Running stories as paths using embedder Mock for Embedder, hashCode: 2077036671
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Running stories with annotated embedder runner
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories with annotated embedder runner
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Unpacked site to target/jbehave/view
[info] Unpacked core to target/jbehave/view
[info] Unpacked site to /var/folders/qp/l1knq1p930x0mb2f8wq1_4b00000gn/T/jbehave/view
[info] Unpacked core to /var/folders/qp/l1knq1p930x0mb2f8wq1_4b00000gn/T/jbehave/view
[debug] Artifact property artifactId not allowed by values [jbehave-site-resources, jbehave-core]
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.015 sec
Results :
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-maven-plugin ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target/jbehave- maven-plugin-3.8.jar
[INFO]
[INFO] --- maven-plugin-plugin:2.7:addPluginArtifactMetadata (default- addPluginArtifactMetadata) # jbehave-maven-plugin ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-maven-plugin - --
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target/jbehave- maven-plugin-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-maven- plugin/3.8/jbehave-maven-plugin-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-maven-plugin/3.8/jbehave-maven-plugin- 3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Hudson Plugin 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-hudson-plugin ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-hudson-plugin/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-hudson- plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-hudson-plugin ---
[INFO] Compiling 4 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-hudson- plugin/target/classes
[INFO]
[INFO] --- access-modifier-checker:1.4:enforce (default-enforce) # jbehave-hudson-plugin ---
[WARNING] The POM for org.jenkins-ci:annotation-indexer:jar:1.4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JBehave ........................................... SUCCESS [1.930s]
[INFO] JBehave Core ...................................... SUCCESS [2:05.653s]
[INFO] JBehave Ant ....................................... SUCCESS [6.222s]
[INFO] JBehave Maven Plugin .............................. SUCCESS [20.093s]
[INFO] JBehave Hudson Plugin ............................. FAILURE [23.540s]
[INFO] JBehave Jenkins Plugin ............................ SKIPPED
[INFO] JBehave Navigator ................................. SKIPPED
[INFO] JBehave Gherkin ................................... SKIPPED
[INFO] JBehave ODF ....................................... SKIPPED
[INFO] JBehave Google .................................... SKIPPED
[INFO] JBehave Groovy .................................... SKIPPED
[INFO] JBehave Scala ..................................... SKIPPED
[INFO] JBehave Guice ..................................... SKIPPED
[INFO] JBehave PicoContainer ............................. SKIPPED
[INFO] JBehave Spring .................................... SKIPPED
[INFO] JBehave Weld ...................................... SKIPPED
[INFO] JBehave Archetypes ................................ SKIPPED
[INFO] JBehave Simple Archetype .......................... SKIPPED
[INFO] JBehave Groovy Archetype .......................... SKIPPED
[INFO] JBehave Guice Archetype ........................... SKIPPED
[INFO] JBehave Pico Archetype ............................ SKIPPED
[INFO] JBehave Spring Archetype .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:20.245s
[INFO] Finished at: Tue Jun 11 08:55:35 CDT 2013
[INFO] Final Memory: 27M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce (default- enforce) on project jbehave-hudson-plugin: Execution default-enforce of goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin org.kohsuke:access-modifier- checker:1.4 or one of its dependencies could not be resolved: Failure to find org.jenkins- ci:annotation-indexer:jar:1.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jbehave-hudson-plugin
Any help getting this error fixed would be great!

It turns out that instead of typing
mvn clean install
into the terminal, all I needed to do was type
mvn install -s settings.xml

I faced exact same issue and it took couple of hours to debug. Wondering why this is not at all documented.
It looks like Hudson project is moved to eclipse.org hence in plugin pom.xml we need to changed parent declaration as below
<parent>
<groupId>org.eclipse.hudson.plugins</groupId>
<artifactId>hudson-plugin-parent</artifactId>
<version>3.0.0</version>
</parent>
BTW in your machine if you first build the project for Jenkins and then Hudson you won't encounter this issue. This happens only when you are building Hudson plugin freshly where Jenkins dependent jars does not exist.

Related

Maven surefire plugin doesn't run our Unit test case

Apache Maven 3.5.2 - the pom.xml doesn't declare the surefire plugin explicitly, but the effective pom.xml shows 2.18.1
When I run 'mvn test' - it ends successfully, it doesn't say that it can't find any test cases, but there is no trace of the test cases. This is all I see:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SpreadSheetUploadWeb 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.fasterxml.jackson.core:jackson-databind:jar:1.9.10 is missing, no dependency information available
[WARNING] The POM for com.fasterxml.jackson.core:jackson-annotations:jar:1.9.10 is missing, no dependency information available
[WARNING] The POM for com.fasterxml.jackson.core:jackson-core:jar:1.9.10 is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # SpreadSheetUploadWeb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 22 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # SpreadSheetUploadWeb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # SpreadSheetUploadWeb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # SpreadSheetUploadWeb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) # SpreadSheetUploadWeb ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
My pom.xml has jar specified, and my test case is in:
c:/SpreadSheetUploadWeb/src/test/java/com/ibm/cio/cloud/cost/spreadsheet/dao/UnitTestJdbcCostSpreadsheetDAO.java
It works perfectly when I run test explicitly like this:
mvn surefire:test -Dtest=UnitTestJdbcCostSpreadsheetDAO.java
Why won't it run when I just run: mvn test ?
By default surefire search for files following this patterns:
**/Test*.java
**/*Test.java
**/*Tests.java
**/*TestCase.java
http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html

VSTS Maven build - no JUnit tests run

[Update: Problem cause found! read below]
Problem: VSTS Maven build does not seem to run JUnit, does not show any JUnit results, does not seem to produce any JUnit testreports.
In VSTS, we have a Java project with a Contact and TestContact class with 1 testcase;
source\module\src\main\java\nl\customer\model\situation\Contact.java
source\module\src\test\java\nl\customer\model\ContactTest.java
source\module\pom.xml
Running Maven from Eclipse works fine. Console shows Maven using Surefire reports, running/passing the 1 unit test.
Running the project with Maven on a Windows PC also works:
mvn test
Logging:
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Domain Model
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[INFO] skip non existing resourceDirectory C:\project\source\projectdomain\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # module ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\project\source\module\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # module ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) # module ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running nl.customer.module.ContactTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in nl.customer.module.ContactTest
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.109 s
[INFO] Finished at: 2018-01-09T14:05:03+01:00
[INFO] Final Memory: 10M/196M
[INFO] ------------------------------------------------------------------------
In VSTS, using the Maven build step (goal: install) succeeds, but the log does not show anything about JUnit, even with system.debug = true.
Consequently, trying the "Publish test results" always fails (both when using a seperate build task or the Publish TFS option in the maven build task).
It seems I have found the cause of the problem: in VSTS, the Maven build task has the option
Set MAVEN_OPTS to
In our build definition, this was set to
-Xmx1024m -X
The first parameter is correct, it sets the maximum memory.
The second parameter is incorrect. If you want Maven to give debug output, you should put the "-X" parameter under Goal(s).
There is no real warning about the second parameter in the logging.

Wasabi fails on build - Maven plugin

See the solution below
Using Ubuntu 16.04 on Google Cloud
Everything is done as noted here https://github.com/intuit/wasabi.
After successfully bootstraping the wasabai
by running:
$ ./bin/wasabi.sh bootstrap
and getting
Everything looks all right!
...
installed dependencies.
Then I reboot the machine
$ sudo reboot
and try running the build
$ ./bin/wasabi.sh build
which obviously fails, this is the output I see:
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 30 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 30 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] wasabi
[INFO] wasabi-experiment-objects
[INFO] wasabi-export
[INFO] wasabi-assignment-objects
[INFO] wasabi-exceptions
[INFO] wasabi-analytics-objects
[INFO] wasabi-authentication-objects
[INFO] wasabi-eventlog
[INFO] wasabi-auditlog-objects
[INFO] wasabi-authorization-objects
[INFO] wasabi-cassandra
[INFO] wasabi-database
[INFO] wasabi-feedback-objects
[INFO] wasabi-user-directory
[INFO] wasabi-repository
[INFO] wasabi-experiment
[INFO] wasabi-assignment
[INFO] wasabi-util
[INFO] wasabi-analytics
[INFO] wasabi-auditlog
[INFO] wasabi-event-objects
[INFO] wasabi-event
[INFO] wasabi-email
[INFO] wasabi-feedback
[INFO] wasabi-authentication
[INFO] wasabi-authorization
[INFO] wasabi-api
[INFO] wasabi-functional-test
[INFO] wasabi-main
[INFO] wasabi-swagger-ui
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wasabi 1.0.20161107232436-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # wasabi ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) # wasabi ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/src/main/env
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (prepare-agent) # wasabi ---
[INFO] argLine set to -javaagent:/home/silversillu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/var/www/html/wasabi/wasabi/target/jacoco.exec,excludes=com/intuit/wasabi/tests/**
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-unit-test) # wasabi ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (report) # wasabi ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-javadoc-plugin:2.10.3:jar (attach-javadocs) # wasabi ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) # wasabi ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:remove-project-artifact (remove-old-artifacts) # wasabi ---
[INFO] /home/silversillu/.m2/repository/com/intuit/wasabi/wasabi removed.
[INFO]
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) # wasabi ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building wasabi-experiment-objects 1.0.20161107232436-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # wasabi-experiment-objects ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) # wasabi-experiment-objects ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/modules/experiment-objects/src/main/env
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (prepare-agent) # wasabi-experiment-objects ---
[INFO] argLine set to -javaagent:/home/silversillu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/var/www/html/wasabi/wasabi/modules/experiment-objects/target/jacoco.exec,excludes=com/intuit/wasabi/tests/**
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # wasabi-experiment-objects ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/www/html/wasabi/wasabi/modules/experiment-objects/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) # wasabi-experiment-objects ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 24 source files to /var/www/html/wasabi/wasabi/modules/experiment-objects/target/classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping wasabi
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] wasabi ............................................. SUCCESS [ 4.085 s]
[INFO] wasabi-experiment-objects .......................... FAILURE [ 0.633 s]
[INFO] wasabi-export ...................................... SKIPPED
[INFO] wasabi-assignment-objects .......................... SKIPPED
[INFO] wasabi-exceptions .................................. SKIPPED
[INFO] wasabi-analytics-objects ........................... SKIPPED
[INFO] wasabi-authentication-objects ...................... SKIPPED
[INFO] wasabi-eventlog .................................... SKIPPED
[INFO] wasabi-auditlog-objects ............................ SKIPPED
[INFO] wasabi-authorization-objects ....................... SKIPPED
[INFO] wasabi-cassandra ................................... SKIPPED
[INFO] wasabi-database .................................... SKIPPED
[INFO] wasabi-feedback-objects ............................ SKIPPED
[INFO] wasabi-user-directory .............................. SKIPPED
[INFO] wasabi-repository .................................. SKIPPED
[INFO] wasabi-experiment .................................. SKIPPED
[INFO] wasabi-assignment .................................. SKIPPED
[INFO] wasabi-util ........................................ SKIPPED
[INFO] wasabi-analytics ................................... SKIPPED
[INFO] wasabi-auditlog .................................... SKIPPED
[INFO] wasabi-event-objects ............................... SKIPPED
[INFO] wasabi-event ....................................... SKIPPED
[INFO] wasabi-email ....................................... SKIPPED
[INFO] wasabi-feedback .................................... SKIPPED
[INFO] wasabi-authentication .............................. SKIPPED
[INFO] wasabi-authorization ............................... SKIPPED
[INFO] wasabi-api ......................................... SKIPPED
[INFO] wasabi-functional-test ............................. SKIPPED
[INFO] wasabi-main ........................................ SKIPPED
[INFO] wasabi-swagger-ui .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.399 s
[INFO] Finished at: 2017-01-10T21:48:24+00:00
[INFO] Final Memory: 29M/70M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project wasabi-experiment-objects: Fatal error compiling: directory not found: /var/www/html/wasabi/wasabi/modules/experiment-objects/target/classes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :wasabi-experiment-objects
error: invalid: mvn -Pdevelopment clean -Dmaven.test.skip=true package javadoc:aggregate
usage: build.sh [options]
options:
-b | --build [ true | false ] : build; default: false
-p | --profile [profile] : build profile; default: development
-t | --test [ true | false ] : test; default: false
-h | --help : help message
Solution
I don't know if it makes any sense but what fixed the issue was moving my cloud machine from micro to much more powerful one n1-standard-4 (4 vCPUs, 15 GB memory)
can you try the following:
% WASABI_MAVEN="-e -X" ./bin/wasabi.sh build
additionally one could try issuing the reported failed mvn invocation directly, ie:
% mvn -e -X -Pdevelopment clean -Dmaven.test.skip=true package javadoc:aggregate
clearly none of the codebase is compiling given the first module fails.
i don't see why a reboot would matter unless logged in as a different user, some directory is owned by 'root' and not writable/deletable, etc.
let's fix this :)

Can't get 'mvn test' run the tests

For some reason I don't know, sometimes, when I create a new Test project (I use IntelliJ + Maven module), I use the same pom file with some plugins which currently works in another projects, but then when I run the command line
mvn test
it doesn't run the JUnit test methods I have written. And I don't know what's wrong, it says:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building n26 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # n26 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # n26 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # n26 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Automation\NewHomePage\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # n26 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\Automation\NewHomePage\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # n26 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.713 s
[INFO] Finished at: 2015-09-24T13:02:50+02:00
[INFO] Final Memory: 19M/306M
[INFO] ------------------------------------------------------------------------
Normally, it will execute tests afterwards, but sometimes it stops here.
#wemu thanks, I named my file was xxxTests.java, and the naming convention is xxxTest.java. It works, thanks

Using gwt:run-codeserver

I have just started to use the gwt maven plugin in my project and everything seems to be working fine. However, debugging is quite hard as I am unable to make superdevmode work correctly and I cannot get the errors to display on my IDE (IntelliJ).
Here is the log when I do gwt:run
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin >>>
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) # xxxxxadmin ---
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) # xxxxxadmin ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # xxxxxadmin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 883 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # xxxxxadmin ---
[INFO] Compiling 1 source file to /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/WEB-INF/ classes
[INFO]
[INFO] --- maven-war-plugin:2.1.1:exploded (default) # xxxxxadmin ---
[INFO] Exploding webapp
[INFO] Assembling webapp xxxxxadmin] in [/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/myuser/git xxxxxadmin/src/main/webapp]
[INFO] Webapp assembled in [867 msecs]
[INFO]
[INFO] <<< gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin <<<
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:run (default-cli) # xxxxxadmin ---
[INFO] create exploded Jetty webapp in /Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT
[INFO] auto discovered modules [com xxxxx.admin.gwt.portaladmin]
[ERROR] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler. JspRuntimeContext).
[ERROR] log4j:WARN Please initialize the log4j system properly.
[ERROR] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] ISC: Configuring log4j from: file:/Users/myuser/git xxxxxadmin/target xxxxxadmin-1.0-SNAPSHOT/ WEB-INF/classes/log4j.isc.config.xml
[INFO] === 2014-05-22 10:50:18,873 [main] INFO Logger - Logging system started.
Here is the log when I do gwt:run-codeserver
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded. SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin >>>
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:i18n (default) # xxxxxxadmin ---
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:generateAsync (default) # xxxxxxadmin ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # xxxxxxadmin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 883 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # xxxxxxadmin ---
[INFO] Compiling 1 source file to /Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0-SNAPSHOT/WEB- INF/classes
[INFO]
[INFO] --- maven-war-plugin:2.1.1:exploded (default) # xxxxxxadmin ---
[INFO] Exploding webapp
[INFO] Assembling webapp [xxxxxxadmin] in [/Users/myuser/git/xxxxxxadmin/target/xxxxxxadmin-1.0- SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/myuser/git/xxxxxxadmin/src/main/webapp]
[INFO] Webapp assembled in [815 msecs]
[INFO]
[INFO] <<< gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin <<<
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons- io:commons-io:jar:1.3.2
[INFO]
[INFO] --- gwt-maven-plugin:2.5.0:run-codeserver (default-cli) # xxxxxxadmin ---
[INFO] auto discovered modules [com.xxxxxx.admin.gwt.portaladmin]
[INFO] workDir: /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-7465083041692192607. tmp
[INFO] binding: user.agent=safari
[INFO] binding: compiler.useSourceMaps=true
[INFO] binding: locale=en
[INFO] Compiling module com.xxxxxx.admin.gwt.portaladmin
However, when I click the compile button nothing happens. In my previous setup I could see the compilation log and the page reloads once it ends.
As for the gwt:debug run, I have been unable to setup my environment as described here here.
I have run the gwt:debug maven configuration.
and the remote configuration
as per the suggestion. I do get to see the GWT Development Mode window as when I do a gwt:run, but I do not see any log information, only this
[UPDATE] I have hacked the Bookmarklet code to figure out that if I call the url
http://localhost:9876/recompile/portaladmin?__gwtDevModeSession:portaladmin
my superdevmode server responds with
[INFO] Compiling module com.xxxxx.admin.gwt.portaladmin
[INFO] Validating units:
[INFO] Ignored 80 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Compiling 18 permutations
[INFO] Compiling permutation 0...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 1...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 2...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 3...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 4...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 5...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 6...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 7...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 8...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 9...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 10...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 11...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 12...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 13...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 14...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 15...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 16...
[INFO] Source Maps Enabled
[INFO] Compiling permutation 17...
[INFO] Source Maps Enabled
[INFO] Compile of permutations succeeded
[INFO] Linking into /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/war/portaladmin; Writing extras to /var/folders/g3/zr930nm51091q0wtc4j8qt1c0000gn/T/gwt-codeserver-431669712100879679.tmp/com.xxxxxx.admin.gwt.portaladmin/compile-2/extras/portaladmin
[INFO] Link succeeded
[INFO] Compilation succeeded -- 29.577s
[INFO] Compile completed in 29782 ms
[INFO] [ERROR] invalid callback: null
So now we have isolated the error to the Bookmarklets: somehow my bookmarklets do not point to the right server or with the right parameters. Would you please help? Here is what I see when I click on the Dev Mode On bookmarklet properties:
javascript:{ window.__gwt_bookmarklet_params = {server_url:'http://localhost:9876/',module_name:'portaladmin'}; var s = document.createElement('script'); s.src = 'http://localhost:9876/dev_mode_on.js'; void(document.getElementsByTagName('head')[0].appendChild(s));}
By inspecting the calls to the server, it never gets to do a /recompile AJAX call. Somehow, something is wrong in the dev_mode_on.js file
Did you try to get rid of the log4j init problem? When your logging does not work, you often are blind. Is your WEB-INF/classes/log4j.isc.config.xml valid?

Resources