On Wed, 7 Sep 2005, Ashley Williams wrote:
Hi,
> Continuing on a theme, my directory layout looks like this:
>
> com/acme/proj/
> MyApp.java, resources/, webapp/
>
> i.e. the webapp directory is also in with the source code - therefore
> I would like to persuade the war plugin of this. I added the
Can't you conform to the standard layout:
src/main/
java/
com/acme/MyApp.java
webapp/
*.jsp
WEB-INF/web.xml
resources/
META-INF/....
other-resources.properties
That would make fiddling with the pom unnecessary.
> following section to my pom:
>
> <build>
> <sourceDirectory>.</sourceDirectory>
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0-beta-1-SNAPSHOT</version>
> <configuration>
> <warSourceDirectory>${sourceDirectory}/
> webapppppppppp/</warSourceDirectory>
> </configuration>
> </plugin>
>
try <warSourceDirectory>src/main/com/acme/webapp/</warSourceDirectory>
> Running m2 install resulted in a failure as it was still looking in
> the wrong place. In fact it wasn't even looking for my misspelled
> webappppppppp directory, which leads me to believe it isn't taking
> any notice of the variable.
IIRC there is no 'sourceDirectory' variable; there are compileSourceRoots
but that's a List.
> Have I specified the configuration correctly??
Other than what I said above, yes, it's correct, if you have
a <plugins> tag around the <plugin> tag.
> Is there a GUI for these POMs because I sure hate fiddling with
> them!!!!!!!!
Not yet; for maven 1 there's mevenide (plugins for eclipse e.a.),
we're still waiting for a maven-2 version of that.
-- Kenney
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]