Comments (6)
seems like the plugin you built cannot be rescanned at runtime. You will have to rerun your code server each time yo build your external module. There is another option still.
<profile>
<id>superdevmode-server</id>
<build>
<defaultGoal>org.codehaus.mojo:exec-maven-plugin:java</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.google.gwt.dev.codeserver.CodeServer</mainClass>
<environmentVariables>-DlogLevel=DEBUG</environmentVariables>
<arguments>
<argument>org.something.gwt.demo.DemoWidgetSet</argument>
<argument>-src</argument>
<argument>../demo/src/main/java</argument>
</arguments>
<classpathScope>compile</classpathScope>
</configuration>
</plugin>
</plugins>
</build>
</profile>```
Specify your sources path for _-src_ argument which corresponds your external module sources root.
This will make maven plugin to watch for these sources too. You will even have no need to rebuild that module every time.
from gwt-maven-archetypes.
Sorry, still not working,
is there anyway to debug or track why my external module changes are not picked up in the incremental compilation process? or is there a way to construct my external module to be detectable by incremental compilation?
from gwt-maven-archetypes.
@asdnf A much cleaner way when working on multiple projects simultaneously is to make an aggregator POM for your projects and work from it:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>whatever</groupId>
<artifactId>whatever</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>/path/to/first/project</module>
<module>/path/to/second/project</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-6</version>
<inherited>false</inherited>
<configuration>
…
</configuration>
</plugin>
</plugins>
</build>
</project>
That way, the "other project" will be part of the reactor build.
from gwt-maven-archetypes.
@vegegoku AFAICT, JARs in the classpath are cached by the JVM, so you have to restart the JVM whenever you make a change for it. To have the JVM see the changes, you have to give the sources as discrete files in a root folder, and for that you should (with the net.ltgt.gwt.maven:gwt-maven-plugin
, and without hacks) put all your projects in the same reactor build, so that the gwt-maven-plugin
passes the module's source roots as -src
arguments to the GWT CodeServer
.
from gwt-maven-archetypes.
By adding my external module to my workspace then add it as a sub module in the main module pom file -same as the shared module- it worked like a charm, now i can change that sub-module and when i refresh the browser it re-compiles.
the only thing remaining now is to apply incremental compilation, i wonder if this possible with the this plugin?!
from gwt-maven-archetypes.
I figured I'd follow up with my angle. It's possible in any configuration as long as the [project].nocache.js has the sdm initialization to do the first compile and subsequent incremental compiles. (As long as that xxx.nocache.js file hostname points to the code server.)
from gwt-maven-archetypes.
Related Issues (20)
- Generate 1.0-SNAPSHOT archetype not working HOT 3
- Should be updated to use GWT 2.8.0 release instead of 2.8.0-rc1 HOT 1
- modular-webapp artifact does not work with env-dev maven profile HOT 2
- How to add Spring Boot to this GWT project? HOT 2
- generated sources are not available to the gwt compiler HOT 1
- What to enter for package on the command line? HOT 1
- mygwtnew-server cannot be added to tomcat sever ? HOT 1
- dagger-guice-rf-activities archetypes not working HOT 2
- Why is codehaus maven plugin used in archetype for ltgt maven plugin? HOT 11
- [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; HOT 2
- Fails on mvn clean install HOT 4
- no clear/seamless way or mechanism to shutdown the running jetty and codeserver HOT 1
- Newly created archetype has build failure HOT 1
- mvn jetty:run: Address already in use HOT 4
- Is there any sample to using ltgt plugin for GWTP? HOT 1
- Is 2.9.0 ready?
- ${module.toLowerCase()} isn't replaced but lands somewhere in the source as is HOT 2
- Archetype for gwt-lib HOT 4
- update version of GWT to 2.11.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maven-archetypes.