Die Ausgabe-Verzeichnis für das Projekt festlegen, um /gwtproject/src/main/webapp/WEB-INF/classes

Habe ich eine GWT-Maven-Projekt in Eclipse mit New->Projekt->Maven-Projekt - >GWT Eclipse-plugin. Es wurde erstellt, aber es gibt einige Fehler, wie

The output directory for the project should be set to /gwtproject/src/main/webapp/WEB-INF/classes

Fehlt etwas bei der Konfiguration von meinem Projekt?

Meine pom.xml enthält:

<build>
        <!-- Generate compiled stuff in the folder used for developing mode -->
        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
        <plugins>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>gwt-maven-plugin</artifactId>
                                    <versionRange>[2.4.0,)</versionRange>
                                    <goals>
                                        <goal>resources</goal>
                                        <goal>compile</goal>
                                        <goal>i18n</goal>
                                        <goal>generateAsync</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-war-plugin</artifactId>
                                    <versionRange>[2.1.1,)</versionRange>
                                    <goals>
                                        <goal>exploded</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>

                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
  • Im Projekt-Klassenpfad-Einstellungen (project/Properties/Java Build Path/Registerkarte Quellen) was für eine Ausgabe-Pfad? Kannst du einen screenshot senden?
  • Ich habe eine ähnliche Frage beantwortet, und ich glaube, dass die Antwort in Ihrem Fall zu: stackoverflow.com/a/26359380/897041
InformationsquelleAutor pbhle | 2012-12-26
Schreibe einen Kommentar