saiddfhi / gwt-maven

Automatically exported from code.google.com/p/gwt-maven
0 stars 0 forks source link

maven2 for gwt: generate bad servelet path #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i have:<build>
        <plugins>
            <plugin>
                <groupId>com.totsp.gwt</groupId>
                <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
                <version>1.5.1</version>
                <configuration>
                    <runTarget>
                        com.blinco.wave3x.www.Launcher/Launcher.html
                    </runTarget>
                    <style>OBF</style>
                    <gwtHome>VALUE</gwtHome>
                    <compileTarget>
                        com.blinco.wave3x.www.Loader
                    </compileTarget>
                    <webXml>web.xml</webXml>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>mergewebxml</goal>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.0</version>
                <configuration>
                    <webXml>target/web.xml</webXml>
                </configuration>
            </plugin>
        </plugins>
    </build>

and the servelet:
<servlet
class="com.blinco.wave3x.www.reports.server.forecast.ForecastServiceImpl"
path="/ForecastService"/>

when i execute the program, it generates the following the web.xml:

<servlet-mapping>
<servlet-name>com.blinco.wave3x.www.reports.server.forecast.ForecastServiceImpl/
com.blinco.wave3x.www.reports.Loader/ForecastService</servlet-name>
<url-pattern>/com.blinco.wave3x.www.reports.Loader/com.blinco.wave3x.www.reports
.Loader/ForecastService</url-pattern>
</servlet-mapping>

what i expected is:
<servlet-mapping>
<servlet-name>com.blinco.wave3x.www.reports.server.forecast.ForecastServiceImpl/
com.blinco.wave3x.www.reports.Loader/ForecastService</servlet-name>
<url-pattern>/ForecastService</url-pattern>
</servlet-mapping>

i am stucked on this problem over 2 days, plz help!

thank you

Original issue reported on code.google.com by ballpe...@hotmail.com on 25 Aug 2008 at 6:06

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/gwt-maven/issues/detail?id=129

We know people want to do this differently, haven't had a chance to address it 
yet. 
As a workaround, you could skip the mergeWebXml goal and just put a source 
web.xml
file, as you see fit, in your project.  

Original comment by charlie....@gmail.com on 26 Aug 2008 at 6:58