You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Aaron Bell <aa...@clockworklogic.co.uk> on 2005/04/11 17:31:16 UTC
[M2] 'Getting Started' guide fails in current state
Hello,
If you work through the current 'Getting Started' page for Maven 2, the
last step (multiple modules) fails at the install goal. This is because
a WAR with a non-default name cannot be installed in the repository.
1. The example given to create a WAR uses a 'plugins' element in the
pom.xml. This creates a war file with the short name "my-webapp.war".
2. This war file cannot be installed in the repository. The 'install'
goal fails as it looks for the fully-qualified artifact name (including
version string) in the target directory.
Fix: if you remove the plugins element from the webapp pom.xml, the app
builds and installs correctly.
Question: Is there some parameter I can use to install a WAR with a
non-default name?
Thanks
- Aaron
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Aaron Bell
Principal Consultant
Clockwork Logic Ltd.
1/8 Sunbury Place, Dean Village
EDINBURGH, EH4 3BY
m. +44 (0)7900 423577
t/f. +44 (0)131 226 6575
w. http://clockworklogic.co.uk
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M2] 'Getting Started' guide fails in current state
Posted by Brett Porter <br...@gmail.com>.
On Apr 12, 2005 1:31 AM, Aaron Bell <aa...@clockworklogic.co.uk> wrote:
> Hello,
>
> If you work through the current 'Getting Started' page for Maven 2, the
> last step (multiple modules) fails at the install goal. This is because
> a WAR with a non-default name cannot be installed in the repository.
Good catch. Actually, you missed the step that had already removed it
during the tutorial :)
> Question: Is there some parameter I can use to install a WAR with a
> non-default name?
No, this is not the intention of the repository (see the mail archives
for a greater explanation).
Thanks,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org