In this case the standard layout doesn't work for me as I am working
off a single source tree, i.e. just one directory called com. Hence I
need a pom file at each package that represents an artifact.
The sourceDirectory I'm trying to use isn't from war, it's the tag
just under <build>. Don't know if I can refer to a variable from
further up, but my point is even when I specify crazy text it doesn't
(seem to) pick up on it. However I just tried specifying an absolute
directory and that worked, although I don't like it.
On 7 Sep 2005, at 14:58, Kenney Westerhof wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]