Error with outputDirectory tag

256 views
Skip to first unread message

omsrobert

unread,
Jun 24, 2009, 1:48:39 PM6/24/09
to Codehaus Mojo gwt-maven-plugin Users
How can I resolve this error? I am using GWT 1.6 and maven 2.x, gwt-
maven 1.1

<build>
<!-- Compile classes into the war transient directory for hosted
mode live editing -->
<outputDirectory>${gwt.output.directory}/WEB-INF/classes</
outputDirectory>

<plugins>
<plugin>

Error - cvc-complex-type.2.4.a: Invalid content was found starting
with element 'outputDirectory'. One of '{"http://maven.apache.org/POM/
4.0.0":defaultGoal, "http://maven.apache.org/POM/4.0.0":resources,
"http://maven.
apache.org/POM/4.0.0":testResources, "http://maven.apache.org/POM/
4.0.0":directory, "http://maven.apache.org/POM/4.0.0":finalName,
"http://maven.apache.org/POM/4.0.0":filters, "http://maven.apache.org/
POM/4.0.0":
pluginManagement, "http://maven.apache.org/POM/4.0.0":plugins}' is
expected.

Sam Brodkin

unread,
Jul 14, 2009, 3:49:04 AM7/14/09
to Codehaus Mojo gwt-maven-plugin Users
Robert maybe it will help if you compare your pom to the my working
example from the maven gwt starter app. There I'm using the war dir
as outputDirectory but that's probably irrelevant to your problem:

http://code.google.com/p/gwt-maven2-starter-app/source/browse/web/pom.xml

Sam
Reply all
Reply to author
Forward
0 new messages