gwt-plugins / gwt-plugins/gwt-eclipse-plugin

runClasspathExcludes seems to be disregarded

Open
#387 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
117
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I'm using the `org.codehaus.mojo.gwt-maven-plugin` plugin in version `2.8.2`.

This is my configuration:

```xml

com.mycompany.myproject.gwt.App
-Xmx2G
app


storm-core-1.0.1.jar

```

the interesting part is the `runClasspathExclude`. When I run GWT Development Mode, the jar is *not* excluded from the war classpath :(.

This makes the JAR appear twice on the classpath which is something that it explicitly guards against:

> Found multiple defaults.yaml resources. You're probably bundling the Storm jars with your topology jar.
> [jar:file:/C:/Data/Maven%20Repository/org/apache/storm/storm-core/1.0.1/storm-core-1.0.1.jar!/defaults.yaml, jar:file:/C:/Git/myproject/myproject-ui/target/myproject-ui-2.0.5-SNAPSHOT/WEB-INF/lib/storm-core-1.0.1.jar!/defaults.yaml]

Is there any workaround I can do to exclude the jar?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing GWT Development Mode with the shown org.codehaus.mojo.gwt-maven-plugin 2.8.2 configuration and inspect how runClasspathExcludes is applied to the war classpath. Done means storm-core-1.0.1.jar is excluded and the duplicate defaults.yaml warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.