Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gwt-app should optionally publish a "deploy" artifact #9

Open
tbroyer opened this issue Jun 11, 2013 · 5 comments
Open

gwt-app should optionally publish a "deploy" artifact #9

tbroyer opened this issue Jun 11, 2013 · 5 comments
Labels
enhancement New feature or request

Comments

@tbroyer
Copy link
Owner

tbroyer commented Jun 11, 2013

Currently, the generated -deploy files are lost. It should be possible to have them in a JAR, ZIP or WAR with a deploy classifier so you can use e.g. stacktrace deobfuscation.

Workaround: use the maven-assembly-plugin.

@tbroyer tbroyer added the enhancement New feature or request label Apr 27, 2017
@ghost
Copy link

ghost commented Jan 2, 2018

Hello,

are there any plans to solve and release this enhancement?

@tbroyer
Copy link
Owner Author

tbroyer commented Jan 7, 2018

No short-term plan, no. Please experiment with the maven-assembly-plugin and report your experience here (should this be a ZIP? a JAR? how do you actually use it? etc.)

@ghost
Copy link

ghost commented Jan 8, 2018

We have multi-module projects, where the shared project is build as gwt-lib and client project as gwt-app. The server project creates an overlay war artifact based on client.war.
We always need the symbolMaps for stacktrace deobfuscation in our final server.war, otherwise we cannot get a hint where client exception has been thrown.
We now use the maven-resources-plugin configured just before your gwt-maven-plugin in prepare-package phase to copy gwt/deploy folder to the root of client.war before it is packaged.
Our RemoteLoggingService reads the symbolMaps from root of the final war and everything works as before.

Perhaps this is not the intent of this issue, but it works. The only thing to change in your plugin is to also package the gwt/deploy folder in the client.war.

@tbroyer
Copy link
Owner Author

tbroyer commented Jan 8, 2018

Or maybe you could “just” configure the plugin with:

    <deploy>${project.build.directory}/${project.build.finalName}</deploy>

instead of the ${project.build.directory}/gwt/deploy default value: https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html#deploy

@ghost
Copy link

ghost commented Jan 8, 2018

Also works and is a little bit smarter! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant