You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ashley Williams <ag...@mac.com> on 2005/09/07 14:30:40 UTC
[m2] war plugin config question
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
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>
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.
Have I specified the configuration correctly??
Is there a GUI for these POMs because I sure hate fiddling with
them!!!!!!!!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] war plugin config question
Posted by Ashley Williams <ag...@mac.com>.
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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] war plugin config question
Posted by Kenney Westerhof <fo...@neonics.com>.
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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org