Giter Site home page Giter Site logo

gwt-maven-archetypes's Introduction

gwt-maven-archetypes

This project contains Maven archetypes for modular GWT projects.

How to use

Generate a project

mvn archetype:generate \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeVersion=LATEST \
   -DarchetypeArtifactId=<artifactId>

where the available <artifactIds> are:

  • modular-webapp
  • modular-requestfactory

This should use the latest release from the Central Repository. Alternatively, and/or if you want to hack on / contribute to the archetypes, you can clone and install the project locally:

git clone https://github.com/tbroyer/gwt-maven-archetypes.git
cd gwt-maven-archetypes && mvn clean install

You'll then use the mvn archetype:generate command from above, except for the -DarchetypeVersion argument which you'll replace with HEAD-SNAPSHOT.

Start the development mode

Change directory to your generated project and issue the following commands:

  1. In one terminal window: mvn gwt:codeserver -pl *-client -am
  2. In another terminal window: mvn jetty:run -pl *-server -am -Denv=dev

Note that the -pl and -am are not strictly necessary, they just tell Maven not to build the client module when you're dealing with the server one, and vice versa.

On Windows, where a Ctrl+C would kill the Maven process but not the CodeServer process, or similarly in Eclipse when terminating a launch from the process console (see known issue), one may prefer using gwt:devmode rather than gwt:codeserver: this opens a window that can be closed to stop the process.

Profiles

There's a special profile defined in the POM file of server modules: env-dev, which is used only when developping. It configures the Jetty plugin and removes the dependency on the client module (declared in the env-prod profile, active by default.)

To activate the env-dev profile you can provide the -Denv=dev system property, or use -Penv-dev.

Compatibility

To use variable interpolation in parameters during mvn archetype:generate, you need at least version 2.2 of the maven-archetype-plugin. Archetypes use ${module.toLowerCase()} as the default value for the module-short-name parameter, so if you don't use version 2.2 or above of the maven-archetype-plugin, make sure you provide a value and do not use the default one for that parameter. You can also make sure you use version 2.2 of the plugin by using mvn org.apache.maven.plugins:maven-archetype-plugin:2.2:generate instead of mvn archetype:generate. It should be noted that variable interpolation also does not work in M2Eclipse's wizard, despite using recent versions of Maven thus (probably) a recent-enough version of the maven-archetype-plugin.

gwt-maven-archetypes's People

Contributors

a14n avatar janscheible avatar jgonian avatar mgrzechocinski avatar niloc132 avatar nmorel avatar tbroyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gwt-maven-archetypes's Issues

Classloader leak because of Guava

Great work so far, Thomas!

Tried the guice-rf-activities archetype and it works pretty well. But because it's using Guice and thus Guava you got a ClassLoader leak for free out of the box (see: http://code.google.com/p/guava-libraries/issues/detail?id=92). So at some point you got a PermGen space exception when Jetty reloads the generated sample app and you have to restart Jetty.

Maybe its worth it to mention the Guava issue in the docs somewhere so that novice users are aware of it.

How to add Spring Boot to this GWT project?

This plugin is very well defined, but I don't know how to handle the server side using Spring boot. I was wondering if you could point me to the right direction about how to add Spring boot to GWT application. I already checked some of the sources online, but no luck so far. With Mojo plugin I can set:

<start-class>com.test.server.ServerMain</start-class>

How is it done in your plugin?

Thank you in advance.

Broken app for archetypeGroupId=guice-rf-activities

Prereq:

mvarchetype:generate -DarchetypeGroupId=guice-rf-activities -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/  -DarchetypeArtifactId=guice-rf-activities-DarchetypeVersion=1.0-SNAPSHOT

Problem:

1) No implementation for java.lang.String annotated with @com.google.inject.name.Named(value=paw.logoutUrl) was bound.
  while locating java.lang.String annotated with @com.google.inject.name.Named(value=paw.logoutUrl)

1 error
    at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031)
    at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1036)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:88)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)
    at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Suggested fix for index.jsp:

replace DOT

String logoutUrl = injector.getInstance(Key.get(String.class, Names.named("paw.logoutUrl")));

with SLASH

String logoutUrl = injector.getInstance(Key.get(String.class, Names.named("paw/logoutUrl")));

Running devmode from *-client fails on missing dependency on *-shared module

I've followed the instructions from the README to start a freshly generated webapp in devmode, but running cd *-client && mvn gwt:run -Ddev fails on a missing dependency:

The following artifacts could not be resolved: org.example.maventest:MavenTest-shared:jar:1.0-SNAPSHOT

It works when I run mvn install from the parent project, but I would rather not install experimental code in the local repository every time I run the web application for testing. The README seems to suggest that is not necessary either. Am I overlooking some basic Maven setting of is the README incomplete? Is there a way to tell the *-client module that *-shared is available right next door when running in dev-mode?

# mvn --version:
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_32, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/jdk1.6.0_32/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-33-generic", arch: "amd64", family: "unix"

I have tried generating both modular-requestfactory and modular-webapp using both the Sonatype repository and locally installed archetypes from this git repository.

Can't make this archetype work in my project without making a GWT module for shared

I have a project based on an older version of this archetype...back when it was still using the mojo version of the gwt-maven-plugin.

I have never been able to make my project work without creating a GWT module for the shared maven module. I always get the "No source can be found" error when trying to compile the client module.

I'm going back and trying to understand how does/should this work without a module for the shared code? I can't tell if it's because in the archetype, App, GreetingService, and GreetingServiceAsync classes all belong to the same "java" package so the App.java class doesn't have to declare imports for them. That's the only difference I can see between the archetype and my project. Either way, I'm stumped.

mvn jetty:run: Address already in use

I generated a project from the maven archetype like you mentionned in your tutorial and when i run
mvn jetty:run -pl *-server -am
i get an error :
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.8.v20171121:run (default-cli) on project logistique-server: Failure: Address already in use -> [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 -rf :logistique-server

Failed Maven build for gwt-maven-archetypes

Hi,
I just cloned your gwt-maven-archetypes Git repo and tried to build them ("mvn clean install") using JDK 1.7u65 and Maven 3.2.5, and got the following build error:

Here's the relevant excerpt of the Maven output:


[INFO] project created from Archetype in dir: C:\Local\GIT_REPOS\ThomasBroyer\gwt-maven-archetypes\modular-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp
[INFO] Comparing generated project with reference content: C:\Local\GIT_REPOS\ThomasBroyer\gwt-maven-archetypes\modular-webapp\target\test-classes\projects\basic-webapp\reference
[WARNING] Contents of file pom.xml are not equal
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gwt-maven-archetypes ............................... SUCCESS [ 3.981 s]
[INFO] modular-webapp ..................................... FAILURE [ 2.871 s]
[INFO] modular-requestfactory ............................. SKIPPED
[INFO] guice-rf-activities ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.508 s
[INFO] Finished at: 2015-02-05T15:24:19+01:00
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test (default-integration-test) on pr
oject modular-webapp:
[ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
[ERROR] -> [Help 1]


Can you please look into this?

FYI I tried this on vaious combinations Maven (3.0.5, 3.2.5) and JDK (1.7u65, 1.8u11), the problem must lie with the POM file in the archetype I suppose.

Hope you can help,
Thanks,
Laurent

External modules in super dev mode compilation

Hi
first, thank you for the great work,
now to the issue.
i created a new gwt application using he multi module archetype, and i was able to get it running, and when i change some code in the client project the changes are being reflected when i press f5 which is awesome, then i tried to do something else, i brought another gwt module that i wrote some time in the past, this new module has its own client, serve, shared packages and is a maven project already installed on my local maven repository.
i added this module inheritance to the multi module application inside the gwt.xml of the client project, and then rerun the application.
every thing worked find and my new module was integrated and running successfully.

then i decided to change something in my external module client part then rebuild it and installed it in local maven repo.
now when i press f5 in my browser no compilation happens and the changes are not applied.
is there any way to make the plugin detect the changes in the inherited modules from external?

generated sources are not available to the gwt compiler

Hi
when creating an application from this archetype, then use an annotation processor to generate some code the gwt compilation fails and complain that the source code for the generated classes does not exist, after some research i found that if the mvn-compiler-plugin is upgraded to 3.5.1 instead of 3.1 it will work

looking at this section of the pom file

 <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <!-- Do not upgrade past 3.1 to avoid triggering https://issues.apache.org/jira/browse/MSOURCES-95 -->
          <version>3.1</version>
          <configuration>
            <source>1.8</source>
            <target>1.8</target>
          </configuration>
        </plugin>

you have a comment explains why you use 3.1 instead of 3.5.1

here is another link about this issue
codehaus-plexus/plexus-archiver#24

annotation processing is now being heavily used in gwt applications and is being recommended over deferred binding, so it might be better to make this archetype works with annotation processing out of the box, and have a comment for when 3.1 is required, or at least comment with hint about upgrade to 3.5.1 if APT is being used.

Thanks

update version of GWT to 2.11.0

As mentioned in the discussion: [https://groups.google.com/g/google-web-toolkit/c/hl1H7S280gk, the gettingstarted-v2.html](https://groups.google.com/g/google-web-toolkit/c/hl1H7S280gk, the gettingstarted-v2.html) now uses the modular-webapp from this gwt-maven-archetype to generate a Maven project. ATM, the archetype is based on GWT 2.10.0 and Jetty 9.

Updating the GWT version should not be so hard. In this case the server will use the "old" javax-stuff. I tried to update Jetty to version 11. With a frew changes, a runnable project is generated. Only drawback, it requires at least Java 11.

We have now three opportunities:

  • Update GWT and stay with Jetty 9
  • Update GWT and Jetty (11.x) and now using the jakarta stuff
  • add another archetype so that we have both

What do you think?

Can't include remote files across directories

I'm having an issue including shared resources from the client project. It works as long as all the files are in the same directory but breaks if the shared class being referenced is not in the same directory as the client class including it (same directory / different project). Notice that the client side code doesn't explicitly "import" the shared classes. The problem can be reproduced by moving GreetingResponseProxy to a new folder i.e. "request" and then doing a mvn clean.

The client's pom includes the shared sources right below this suspicious comment:

Any hints? Thanks!

mvn package fail with modular-webapp (on Windows)

Steps to reproduce:

  1. Create the components
    mvn archetype:generate
    -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/
    -DarchetypeGroupId=net.ltgt.gwt.archetypes
    -DarchetypeArtifactId=modular-webapp
    -DarchetypeVersion=1.0-SNAPSHOT

  2. At parent level execute mvn package

[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-beta-1:co
mpile (default-compile) on project eventos-parent-client: Execution default-comp
ile of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-beta-1:compile failed: 'othe
r' has different root -> [Help 1]

AppEngine integration

Have you ever tried to enable AppEngine integration? I could set-up it, but the only thing I couldn't is to add shared classpath to AppEngine devserver (in order to not require a restart after changing some shared class in dev mode). I googled about setting additional classpath entries to the appengine plugin but I couldn't find anything useful. AppEngine maven plugin seems to lack many features. Do you know anything about it?

Add client/shared/server in package name

Hi @tbroyer
I'm refactoring my app to use your maven plugin but I'd like to keep client/shared and server in my package name (in addition of having them in a different maven module) instead of using the same package name for all.

  • com.test.webapp.client
  • com.test.webapp.shared
  • com.test.webapp.server

But when I do it and execute mvn gwt:codeserver -pl webapp-client -am, I get:

[INFO] Super Dev Mode starting up
[INFO]    workDir: /Users/fboucher/Programming/workspace/webapp/target/gwt/codeserver
[INFO]    Loading Java files in com.test.client.App.
[INFO]    Tracing compile failure path for type 'com.test.client.App'
[INFO]       [ERROR] Errors in 'file:/Users/fboucher/Programming/workspace/webapp/webapp-client/src/main/java/com/test/client/App.java'
[INFO]          [ERROR] Line 39: No source code is available for type com.test.shared.GreetingServiceAsync; did you forget to inherit a required module?
[INFO]          [ERROR] Line 127: No source code is available for type com.test.shared.GreetingResponse; did you forget to inherit a required module?
[INFO]          [ERROR] Line 40: No source code is available for type com.test.shared.GreetingService; did you forget to inherit a required module?
[INFO]          [ERROR] Line 117: No source code is available for type com.test.shared.FieldVerifier; did you forget to inherit a required module?
[INFO]    Finding entry point classes
[INFO]       Tracing compile failure path for type 'com.test.client.App'
[INFO]          [ERROR] Errors in 'file:/Users/fboucher/Programming/workspace/webapp/webapp-client/src/main/java/com/test/client/App.java'
[INFO]             [ERROR] Line 39: No source code is available for type com.test.shared.GreetingServiceAsync; did you forget to inherit a required module?
[INFO]             [ERROR] Line 127: No source code is available for type com.test.shared.GreetingResponse; did you forget to inherit a required module?
[INFO]             [ERROR] Line 40: No source code is available for type com.test.shared.GreetingService; did you forget to inherit a required module?
[INFO]             [ERROR] Line 117: No source code is available for type com.test.shared.FieldVerifier; did you forget to inherit a required module?
[INFO]       [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] webapp ............................................. FAILURE [ 17.948 s]
[INFO] webapp-shared ...................................... SKIPPED
[INFO] webapp-client ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.772 s
[INFO] Finished at: 2016-03-06T21:19:59+11:00
[INFO] Final Memory: 27M/250M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-6:codeserver (default-cli) on project webapp: GWT exited with status 1 -> [Help 1]

I setup a small Github project to show you what I did:
freddyboucher/webapp@f5ead44

How can I achieve that?
Thanks

GWT DevMode don't start

Following steps to start the development mode, I face the following error in GWT DevMode :

com.google.gwt.core.client.JavaScriptException: (TypeError): Property 'user.agent' of object  is not a function

This error is caused by the draft compile at step 1. DevMode seems to need a gecko1_8 user.agent even if Chrome is used to access to the website.

A workaround is to set user.agent with safari,gecko1_8 in __module___dev.gwt.xml. But this will add a permutation for draft compile. On the other hand, FF developers will not have to modify __module___dev.gwt.xml to work with draft compile. Is it really a bad idea ?

Error during artefact building

After cloning I'm trying to install archetypes with maven 3.0.4 and I'm getting following error:

The ful stack from console is:

C:\App\tmp>git clone https://github.com/tbroyer/gwt-maven-archetypes.git && cd g
wt-maven-archetypes && mvn clean install
Cloning into 'gwt-maven-archetypes'...
remote: Counting objects: 1642, done.
remote: Compressing objects: 100% (900/900), done.
remote: Total 1642 (delta 444), reused 1530 (delta 339)
Receiving objects: 100% (1642/1642), 169.40 KiB | 221 KiB/s, done.
Resolving deltas: 100% (444/444), done.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gwt-maven-archetypes
[INFO] modular-webapp
[INFO] modular-requestfactory
[INFO] guice-rf-activities
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-maven-archetypes 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt-maven-archetypes
 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ gwt-maven-arch
etypes ---
[INFO] Installing C:\App\tmp\gwt-maven-archetypes\pom.xml to C:\Users\pkosmowski
\.m2\repository\net\ltgt\gwt\archetypes\gwt-maven-archetypes\1.0-SNAPSHOT\gwt-ma
ven-archetypes-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building modular-webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ modular-webapp ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ modular-we
bapp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mo
dular-webapp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-archetype-plugin:2.2:jar (default-jar) @ modular-webapp ---
[INFO] Building archetype jar: C:\App\tmp\gwt-maven-archetypes\modular-webapp\ta
rget\modular-webapp-1.0-SNAPSHOT
[INFO]
[INFO] --- maven-archetype-plugin:2.2:integration-test (default-integration-test
) @ modular-webapp ---
[INFO] Processing Archetype IT project: basic-webapp
[INFO] -------------------------------------------------------------------------

---
[INFO] Using following parameters for creating project from Archetype: modular-w
ebapp:1.0-SNAPSHOT
[INFO] -------------------------------------------------------------------------

---
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: artifactId, Value: basic-webapp
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Parameter: package, Value: it.pkg
[INFO] Parameter: packageInPathFormat, Value: it/pkg
[INFO] Parameter: gwt-maven-plugin-version, Value: 2.4.0
[INFO] Parameter: module, Value: Basic
[INFO] Parameter: module-short-name, Value: basic
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: gwt-version, Value: 2.4.0
[INFO] Parameter: jetty-maven-plugin-version, Value: 8.1.3.v20120416
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Parameter: package, Value: it.pkg
[INFO] Parameter: artifactId, Value: basic-webapp
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-client\pom.xml
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-shared\pom.xml
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-server\pom.xml
[INFO] project created from Archetype in dir: C:\App\tmp\gwt-maven-archetypes\mo
dular-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp
[INFO] Comparing generated project with reference content: C:\App\tmp\gwt-maven-
archetypes\modular-webapp\target\test-classes\projects\basic-webapp\reference
[WARNING] Contents of file pom.xml are not equal
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gwt-maven-archetypes .............................. SUCCESS [0.355s]
[INFO] modular-webapp .................................... FAILURE [2.679s]
[INFO] modular-requestfactory ............................ SKIPPED
[INFO] guice-rf-activities ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.243s
[INFO] Finished at: Fri Jul 13 13:45:28 CEST 2012
[INFO] Final Memory: 8M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:integration-test (default-integration-test) on project modular-webapp:
[ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn  -rf :modular-webapp

${module.toLowerCase()} in generated files with default properties

I used the default values of properties when executing :

mvn archetype:generate \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeArtifactId=modular-requestfactory  \
   -DarchetypeVersion=1.0-SNAPSHOT

e.g. :

Confirm properties configuration:
groupId: a14n.test
artifactId: rf
version: 1.0-SNAPSHOT
package: a14n.test.rf
gwt-maven-plugin-version: 2.4.0
gwt-version: 2.4.0
jetty-maven-plugin-version: 8.1.3.v20120416
module: App
module-short-name: ${module.toLowerCase()}

But ${module.toLowerCase()} is not replaced by the good value and is used directly. Thus for instance, I find in client/src/main/java/a14n/test/rf/App.gwt.xml the following content :

[...]
<module rename-to="${module.toLowerCase()}">
[...]

Synchronism between client and shared

When working in client, I made a breaking change on a class in shared module. Then after trying to recompile in SDM, I got compiling issues (API incompatibility).

After trying compile and package lifecycles, I realized that only by installing shared module, I could synchronize shared compiled code to client. Then I had to restart SDM again.

Is there a better way to get shared module synchronized with client when working in SDM?

xml formatting style question

In sources, there are 2 styles of xml formatting :

  • tab indent for many files
  • 2 spaces indent for some files (like modular-requestfactory/pom.xml) and for portion generated by archetype in modular-requestfactory/src/test/resources/projects/basic/reference/pom.xml

For readability, perhaps a single format should be used.

What do you think about it ?

dagger-guice-rf-activities archetypes not working

I am trying to create a new project using the dagger-guice-rf-activities archetypes.
I run this command:
mvn archetype:generate
-DarchetypeGroupId=net.ltgt.gwt.archetypes
-DarchetypeVersion=LATEST
-DarchetypeArtifactId=dagger-guice-rf-activities

Once it finishes setting up the project, I cd into the directory and run:
mvn gwt:codeserver -pl *-client -am
which starts up the code server.
Then I start another terminal and runs mvn tomcat7:run -pl *-server -am -Denv=dev
Now it gives me this error

[INFO] ------------------------------------------------------------------------
[INFO] Building report-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ report-server >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ report-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/tor/Documents/reporting/report/report-server/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ report-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:exec (requestfactory-validation-tool) @ report-server ---
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ report-server <<<
[INFO]
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ report-server ---
[INFO] Running war on http://localhost:8080/
[INFO] Using existing Tomcat server configuration at /Users/tor/Documents/reporting/report/report-server/target/tomcat
[INFO] use tomcat-users.xml from /Users/tor/Documents/reporting/report/report-server/src/main/tomcatconf/tomcat-users.xml
[INFO] create webapp with contextPath:
Dec 06, 2017 3:54:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Dec 06, 2017 3:54:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Dec 06, 2017 3:54:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Dec 06, 2017 3:54:30 PM com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer
INFO: Unable to initialize a JSR 303 Bean Validator
javax.validation.ValidationException: Unable to find a default provider
at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)
at com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.(ReflectiveServiceLayer.java:60)
at com.google.web.bindery.requestfactory.server.ServiceLayer.create(ServiceLayer.java:75)
at com.google.web.bindery.requestfactory.server.RequestFactoryServlet.(RequestFactoryServlet.java:105)
at al.tor.report.GuiceRequestFactoryServlet.(GuiceRequestFactoryServlet.java:14)
at al.tor.report.GuiceRequestFactoryServlet$$FastClassByGuice$$cb96cad5.newInstance()
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1050)
at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:111)
at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:103)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:226)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Dec 06, 2017 3:54:30 PM org.apache.coyote.AbstractProtocol start

Is it missing some dependency? Any suggestions?

Thanks!
Kai

modular-webapp artifact does not work with env-dev maven profile

The app does not work if it is started as:
mvn jetty:run -Penv-dev

It is required to update server pom.xml like that:

Generated by archetype:

<plugin>
  <groupId>org.eclipse.jetty</groupId>
  <artifactId>jetty-maven-plugin</artifactId>
  <configuration>
    <webApp>
      <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
        <resourcesAsCSV>src/main/webapp,${basedir}/../target/gwt/launcherDir/</resourcesAsCSV>
      </baseResource>
    </webApp>
  </configuration>
</plugin>

It should be

<plugin>
  <groupId>org.eclipse.jetty</groupId>
  <artifactId>jetty-maven-plugin</artifactId>
  <configuration>
    <webApp>
      <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
        <resourcesAsCSV>src/main/webapp,${basedir}/../${rootArtifactId}-client/target/productores-parent-client-${project.version}/,${basedir}/../target/gwt/launcherDir/</resourcesAsCSV>
      </baseResource>
    </webApp>
  </configuration>
</plugin>

Without adding client artifact, app.cache is not found.

Steps to reproduce:

  1. Generate modular-webapp.
  2. Import in eclipse (with GWT Eclipse plugin)
  3. Starts CodeServer
  4. Run jetty:run using profile env-dev

Also in order to work with super dev mode it is required to add <add-linker name="xsiframe" /> in the module.gwt.xml. I suggest to add the linker by default with the instructions indicating why this linker.

Thanks Tbroyer for this archetype.

Set dev as the default profile

The idea is to always use the dev profile unless otherwise specified. This is because during development starting jetty and running gwt dev mode using the dev profile happens way more often rather than using prod.This way, we avoid the extra typing of the -Ddev property every time we type mvn jetty:run and mvn gwt:run.

Again, to enable the production profile will be a matter of specifying a property (e.g. -Dprod).

Should I create a pull request for this change?

Archetype for gwt-lib

Would be useful to have an archetype for creating GWT library projects (packaging gwt-lib).

${module.toLowerCase()} isn't replaced but lands somewhere in the source as is

Hi there!

I just tried the moudlar-webapp archetype and starting dev mode gives me a 404 on
http://localhost:8080/$%7Bmodule.toLowerCase()%7D/$%7Bmodule.toLowerCase()%7D.nocache.js
which seems like ${module.toLowerCase()} was not replaced by "app" since "App" is the default module name I accepted in the wizard.
image

Is 2.9.0 ready?

I'm creating a new project but I'm not sure if this plugin support 2.9.0 GWT release ?

Why is codehaus maven plugin used in archetype for ltgt maven plugin?

I am just migrating my code from codehaus GWT maven plugin to the newer, maintained, GWT-future-ready ltgt/tbroyer GWT maven plugin. Using the archetypes as a role model. And then this:

https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/__rootArtifactId__-shared/pom.xml

uses the codehaus plugin. Is this the tbroyer-recommended way for projects with shared code? Or just a left-over typo? Suggestion: either change to other plugin or add a line of documentation right in the pom why codehaus plugin is used here.

Thanks!

using modular-webapp archetype with super-dev-mode?

Is it possible to use your modular-webapp archetype together with the super dev mode?

When I run mvn gwt:codeserver on the root project, it starts a web server but doesn't contain the module, when I run it on the *-server subproject it wont start because:
Error: Could not find or load main class com.google.gwt.dev.codeserver.CodeServer

Newly created archetype has build failure

The parameters 'moduleName' for goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:compile are missing or invalid.

Commands:
mvn archetype:generate
-DarchetypeGroupId=net.ltgt.gwt.archetypes
-DarchetypeVersion=LATEST
-DarchetypeArtifactId=modular-webapp
mvn gwt:compile

Generate 1.0-SNAPSHOT archetype not working

Hi @tbroyer

I tried to generate an archetype today but it didn't work.
Probably an issue with the repo?

Thanks

โžœ mvn -U archetype:generate \
   -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeArtifactId=modular-webapp \
   -DarchetypeVersion=1.0-SNAPSHOT
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 4.7 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 6.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml (759 B at 1.7 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository not defined. Using the one from [net.ltgt.gwt.archetypes:modular-webapp:1.0-SNAPSHOT -> https://oss.sonatype.org/content/repositories/snapshots] found in catalog https://oss.sonatype.org/content/repositories/snapshots/
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/ltgt/gwt/archetypes/modular-webapp/1.0-SNAPSHOT/maven-metadata.xml
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/ltgt/gwt/archetypes/modular-webapp/1.0-SNAPSHOT/maven-metadata.xml (784 B at 1.2 KB/sec)


Recompile gwt on no changes

I've generate project from modular-webapp archetype.
So, when I do mvn package it starts gwt compilation every time.
With -X property it prints:

Source file is newer than nocache.js, recompiling: /Users/zufarfakhurtdinov/dev/samples/gwtpluginsample3/gwtarchetypesample/gwtarchetypesample-shared/target/gwtarchetypesample-shared-1.0-SNAPSHOT-sources.jar

DependencyResolutionException Could not find artifact ...-shared:jar

Hello, I got following error while start to use this archetype.

C:\Users\Joel\Codes\gsp\globalsp\globalsp-server>mvn jetty:start -Denv=dev
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.3.2/exec-maven-plugin-1.3.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.3.2/exec-maven-plugin-1.3.2.pom (12 KB at 17.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/33/mojo-parent-33.pom (26 KB at 163.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/codehaus-parent-4.pom (5 KB at 74.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.3.2/exec-maven-plugin-1.3.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/1.3.2/exec-maven-plugin-1.3.2.jar (46 KB at 290.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom (7 KB at 101.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar (77 KB at 817.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.pom (11 KB at 93.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.12.4/surefire-2.12.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.12.4/surefire-2.12.4.pom (14 KB at 217.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.jar (30 KB at 238.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.3.v20140905/jetty-maven-plugin-9.2.3.v20140905.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.3.v20140905/jetty-maven-plugin-9.2.3.v20140905.pom (6 KB at 56.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.2.3.v20140905/jetty-project-9.2.3.v20140905.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.2.3.v20140905/jetty-project-9.2.3.v20140905.pom (33 KB at 205.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/22/jetty-parent-22.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/22/jetty-parent-22.pom (22 KB at 278.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.3.v20140905/jetty-maven-plugin-9.2.3.v20140905.jar
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/9.2.3.v20140905/jetty-maven-plugin-9.2.3.v20140905.jar (95 KB at 861.6 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building globalsp-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.2.3.v20140905:start (default-cli) > validate @ globalsp-server >>>
[INFO]
[INFO] <<< jetty-maven-plugin:9.2.3.v20140905:start (default-cli) < validate @ globalsp-server <<<
[WARNING] The POM for com.github.globalsp:globalsp-shared:jar:1.0-SNAPSHOT is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-apt/2.7.0/requestfactory-apt-2.7.0.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-apt/2.7.0/requestfactory-apt-2.7.0.pom (611 B at 6.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-server/2.7.0/requestfactory-server-2.7.0.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-server/2.7.0/requestfactory-server-2.7.0.pom (796 B at 10.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-jndi/4.0-beta5/guice-jndi-4.0-beta5.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-jndi/4.0-beta5/guice-jndi-4.0-beta5.pom (535 B at 6.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-servlet/4.0-beta5/guice-servlet-4.0-beta5.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-servlet/4.0-beta5/guice-servlet-4.0-beta5.pom (921 B at 11.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.pom (13 KB at 131.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/net/java/jvnet-parent/1/jvnet-parent-1.pom
Downloaded: https://repo.maven.apache.org/maven2/net/java/jvnet-parent/1/jvnet-parent-1.pom (5 KB at 19.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-apt/2.7.0/requestfactory-apt-2.7.0.jar
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-servlet/4.0-beta5/guice-servlet-4.0-beta5.jar
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-jndi/4.0-beta5/guice-jndi-4.0-beta5.jar
Downloading: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-server/2.7.0/requestfactory-server-2.7.0.jar
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-servlet/4.0-beta5/guice-servlet-4.0-beta5.jar (75 KB at 478.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/extensions/guice-jndi/4.0-beta5/guice-jndi-4.0-beta5.jar (8 KB at 42.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-apt/2.7.0/requestfactory-apt-2.7.0.jar (89 KB at 437.7 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar (84 KB at 380.6 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/web/bindery/requestfactory-server/2.7.0/requestfactory-server-2.7.0.jar (1860 KB at 1803.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.485 s
[INFO] Finished at: 2015-08-04T20:28:13-04:00
[INFO] Final Memory: 17M/371M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project globalsp-server: Could not resolve dependencies for project com.github.globalsp:globalsp-server:war:1.0-SNAPSHOT: Could not find artifact com.github.globalsp:globalsp-shared:jar:1.0-SNAPSHOT -> [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/DependencyResolutionException

What I did before this is,

  • generate archtype:
mvn archetype:generate \
   -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/ \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeArtifactId=guice-rf-activities \
   -DarchetypeVersion=1.0-SNAPSHOT
  • start code server:
mvn gwt:codeserver -pl globalsp-client -am

My maven version is 3.3.3, running on Windows 10, JDK is build 1.8.0_51-b16

Is there anything I missed? Or any other person encounter same error?
I guess it's related to shared code, but not sure how to dig in more.

Fails on mvn clean install

Just downloaded the gwt-maven-archetypes project and attempted to run a mvn clean install on it...

Got a build failure with the following maven log...

[INFO] [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
[INFO] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/google/auto/value/auto-value/1.1/auto-value-1.1.jar (1.9 MB at 4.6 MB/s)
[INFO] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/23.3-jre/guava-23.3-jre.jar (2.7 MB at 5.9 MB/s)
[INFO] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar (3.5 kB a
[INFO] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/com/google/errorprone/javac-shaded/9-dev-r4023-3/javac-shaded-9-dev-r4023-3.jar (2.8 MB at 5.9
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 14 source files to C:\dev\workspaces\testgwt\gwt-maven-archetypes\dagger-guice-rf-activities\target\test-classes\projects\basic\project\basic\basic
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ basic-client ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory C:\dev\workspaces\testgwt\gwt-maven-archetypes\dagger-guice-rf-activities\target\test-classes\projects\basic\project\basi
rces
[INFO] [INFO] skip non existing resourceDirectory C:\dev\workspaces\testgwt\gwt-maven-archetypes\dagger-guice-rf-activities\target\test-classes\projects\basic\project\basi

[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ basic-client ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- gwt-maven-plugin:1.0-rc-9:test (default-test) @ basic-client ---
[INFO] [INFO] No tests to run.
[INFO] [INFO]
[INFO] [INFO] --- gwt-maven-plugin:1.0-rc-9:compile (default-compile) @ basic-client ---
[INFO] [INFO] Compiling module it.pkg.Basic
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideHistorianFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideHistorianFactory.java'
[INFO] [INFO]          [ERROR] Line 6: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvidePlaceHistoryMapperFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvidePlaceHistoryMapperFactory.java'
[INFO] [INFO]          [ERROR] Line 6: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideUserNameFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideUserNameFactory.java'
[INFO] [INFO]          [ERROR] Line 5: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideRequestTransportFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideRequestTransportFactory.java'
[INFO] [INFO]          [ERROR] Line 6: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvidePlaceHistoryHandlerFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvidePlaceHistoryHandlerFactory.java'
[INFO] [INFO]          [ERROR] Line 9: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 12: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideCurrentUserFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideCurrentUserFactory.java'
[INFO] [INFO]          [ERROR] Line 5: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 7: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvidePlaceControllerFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvidePlaceControllerFactory.java'
[INFO] [INFO]          [ERROR] Line 10: Generated cannot be resolved to a type
[INFO] [INFO]          [ERROR] Line 7: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideSimpleEventBusFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideSimpleEventBusFactory.java'
[INFO] [INFO]          [ERROR] Line 6: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.MainActivityMapper_Factory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/MainActivityMapper_Factory.java'
[INFO] [INFO]          [ERROR] Line 4: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 7: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.GreetingViewImpl_Factory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/GreetingViewImpl_Factory.java'
[INFO] [INFO]          [ERROR] Line 6: Generated cannot be resolved to a type
[INFO] [INFO]          [ERROR] Line 4: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideIsAdminFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideIsAdminFactory.java'
[INFO] [INFO]          [ERROR] Line 4: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 7: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.HomeViewImpl_Factory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/HomeViewImpl_Factory.java'
[INFO] [INFO]          [ERROR] Line 6: Generated cannot be resolved to a type
[INFO] [INFO]          [ERROR] Line 4: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideSchedulerFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideSchedulerFactory.java'
[INFO] [INFO]          [ERROR] Line 6: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideBasicFactoryFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideBasicFactoryFactory.java'
[INFO] [INFO]          [ERROR] Line 10: Generated cannot be resolved to a type
[INFO] [INFO]          [ERROR] Line 7: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.DaggerBasicComponent'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/DaggerBasicComponent.java'
[INFO] [INFO]          [ERROR] Line 11: Generated cannot be resolved to a type
[INFO] [INFO]          [ERROR] Line 8: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.MainActivityMapper_MembersInjector'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/MainActivityMapper_MembersInjector.java'
[INFO] [INFO]          [ERROR] Line 4: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 7: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.GreetingActivityFactory_Factory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/GreetingActivityFactory_Factory.java'
[INFO] [INFO]          [ERROR] Line 5: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.HomeActivity_Factory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/HomeActivity_Factory.java'
[INFO] [INFO]          [ERROR] Line 5: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 8: Generated cannot be resolved to a type
[INFO] [INFO]    Tracing compile failure path for type 'it.pkg.BasicModule_ProvideLogoutUrlFactory'
[INFO] [INFO]       [ERROR] Errors in 'file:/C:/dev/workspaces/testgwt/gwt-maven-archetypes/dagger-guice-rf-activities/target/test-classes/projects/basic/project/basic/bas
urces/annotations/it/pkg/BasicModule_ProvideLogoutUrlFactory.java'
[INFO] [INFO]          [ERROR] Line 5: The import javax.annotation.processing cannot be resolved
[INFO] [INFO]          [ERROR] Line 7: Generated cannot be resolved to a type
[INFO] [INFO]    [ERROR] Aborting compile due to errors in some input files
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary:
[INFO] [INFO]
[INFO] [INFO] basic .............................................. SUCCESS [  0.000 s]
[INFO] [INFO] basic-shared ....................................... SUCCESS [  1.577 s]
[INFO] [INFO] basic-client ....................................... FAILURE [ 21.501 s]
[INFO] [INFO] basic-server ....................................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 23.858 s
[INFO] [INFO] Finished at: 2018-04-24T08:47:17+01:00
[INFO] [INFO] Final Memory: 43M/145M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:compile (default-compile) on project basic-client: GWT exited with status 1 -> [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:compile (default-compile) on project bas
atus 1
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
[INFO]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
[INFO]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
[INFO]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
[INFO]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
[INFO]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
[INFO]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[INFO]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[INFO]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[INFO]     at java.lang.reflect.Method.invoke (Method.java:564)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[INFO] Caused by: org.apache.maven.plugin.MojoExecutionException: GWT exited with status 1
[INFO]     at net.ltgt.gwt.maven.CommandLine.execute (CommandLine.java:50)
[INFO]     at net.ltgt.gwt.maven.CompileMojo.execute (CompileMojo.java:202)
[INFO]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
[INFO]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
[INFO]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
[INFO]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
[INFO]     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
[INFO]     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
[INFO]     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
[INFO]     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
[INFO]     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
[INFO]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[INFO]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[INFO]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[INFO]     at java.lang.reflect.Method.invoke (Method.java:564)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
[INFO]     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[INFO] [ERROR]
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR]   mvn <goals> -rf :basic-client
[INFO] Post-archetype-generation invoker exit code: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gwt-maven-archetypes ............................... SUCCESS [  2.946 s]
[INFO] GWT Modular GWT-RPC WebApp Archetype ............... SUCCESS [ 30.842 s]
[INFO] GWT Modular RequestFactory WebApp Archetype ........ SUCCESS [ 31.622 s]
[INFO] GWT Modular Dagger/Guice/RequestFactory/Activities WebApp Archetype FAILURE [ 25.935 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:32 min
[INFO] Finished at: 2018-04-24T08:47:17+01:00
[INFO] Final Memory: 19M/63M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:integration-test (default-integration-test) on project dagger-guice-rf-activities:
[ERROR] Archetype IT 'basic' failed: Execution failure: exit code = 1
[ERROR] -> [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 :dagger-guice-rf-activities

[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module (default-generate-module) on project project-client: Execution default-generate-module of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module failed: A required class was missing while executing net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module: Lorg/sonatype/plexus/build/incremental/BuildContext;

Hi,
i create my project using artifact modular-webapp. When i lunch mvn package i receive the error:
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module (default-generate-module) on project project-client: Execution default-generate-module of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module failed: A required class was missing while executing net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module: Lorg/sonatype/plexus/build/incremental/BuildContext;
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Valerio/.m2/repository/net/ltgt/gwt/maven/gwt-maven-plugin/1.0-rc-9/gwt-maven-plugin-1.0-rc-9.jar
[ERROR] urls[1] = file:/C:/Users/Valerio/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : org.sonatype.plexus.build.incremental.BuildContext
[ERROR] -> [Help 1]

i use the plugin version 1.0-rc-8 it works

What to enter for package on the command line?

I'm trying to use this plugin to create a modular-webapp but it asked for what 'package' to use on the command line, I can't find any docs that say what to add here.

It also asks for module-short-name, can't find any docs on that either.

Regarding the 'package' I get that now, I was thinking this was asking about the new custom packaging this plugin uses...I read someplace before I found this plugin...but this just wanted my java package name.

Memory Database file cannot be read error

This was working fine yesterday, and then I just started getting this. git reports no changes to any sensitive files in my proj. I tried putting a tomcat-users.xml into server/src/main/tomcatconf but that didnt get copied over. Any thoughts?

$mvn tomcat7:run -pl *-server -am -Denv=dev -Dgwt.logLevel=INFO

[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli)
 on project mailapp-server: Could not start Tomcat: Failed to start component [StandardServer[-1]]:
 Failed to start component [StandardService[Tomcat]]: Failed to start component 
[StandardEngine[Tomcat]]: Failed to start component [Realm[MemoryRealm]]: Memory database file
 /home/alex/workspace/cupofjoe/cupofjoe-server/target/tomcat/conf/tomcat-users.xml cannot be read ->
 [Help 1]

Superdev mode and changes in -shared project

I am not sure if this is an issue/bug or I am just making a mistake.

I somehow have problems compiling/starting superdev mode when I make changes in the -shared package/project and not running mvn install in the -shared project.

It seems that somehow the SuperDevMode mode won't see the changes in -shared despite the dev profile in the pom.xml file. It always uses the version that is installed in the local maven repository.

I start SuperDevMode with following command:

mvn gwt:run-codeserver -Dgwt.module=xxxx.xxxx.xxx.App_dev -Ddev

Here are some important lines from the mvn output log:

[DEBUG] Configuring mojo org.codehaus.mojo:build-helper-maven-plugin:1.7:add-resource from plugin realm ClassRealm[plugin>org.codehaus.mojo:build-helper-maven-plugin:1.7, parent: sun.misc.Launcher$AppClassLoader@4af6ae1c]
[DEBUG] Configuring mojo 'org.codehaus.mojo:build-helper-maven-plugin:1.7:add-resource' with basic configurator -->
[DEBUG]   (f) project = MavenProject: com.gmi.nordborglab.browser:genophenbrowser-client:1.0-SNAPSHOT @ xxxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/pom.xml
[DEBUG]   (s) directory = xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/../genophenbrowser-shared/src/main/java
[DEBUG]   (f) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/../genophenbrowser-shared/src/main/java, PatternSet [includes: {}, excludes: {}]}}]
[DEBUG] -- end configuration --
[DEBUG] Added resource: xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/../genophenbrowser-shared/src/main/java
[DEBUG] Configuring mojo 'org.codehaus.mojo:gwt-maven-plugin:2.5.0:run-codeserver' with basic configurator -->
[DEBUG]   (f) deploy = xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/target/gwtc/extra
[DEBUG]   (f) extraJvmArgs = -Xmx512m
[DEBUG]   (f) gen = xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/target/gwtc/gen
[DEBUG]   (f) genParam = false
[DEBUG]   (f) generateDirectory = xxxx/eclipse_workspaces/default/genophenbrowser/genophenbrowser-client/target/generated-sources/gwt
[DEBUG]   (f) gwtSdkFirstInClasspath = false
[DEBUG]   (f) inplace = false
[DEBUG]   (f) localRepository =        id: local
      url: file://xxxx/.m2/repository/
   layout: none

Do I have to pass the sources of shared with the -src argument to the codeserver?
Is it possible to handle this in the pom itself?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.