Hello,
have you tried to use the <jar> tag inside the dependency? There you can specify the 
name
of the jar itself. Therefor you then have to type 

      <dependency>
            <id>web-client</id>
            <version>1.0</version>
            <properties>
                <ear.bundle.war>true</ear.bundle.war>
            </properties>
            <jar>web-client-1.0.war</jar>
       </dependency>

Personally I don't have much experience with the repository stuff, because we are using
jars as the only type of artifacts, so there is no problem. But probably you can also 
use
<artifactType>war</artifactType>. 

Please take a look in the UserGuide for more details about this.

Greets,

Markus




> -----Urspr�ngliche Nachricht-----
> Von:  [EMAIL PROTECTED]

> Gesendet: Wednesday, 22. January 2003 08:54
> An: [EMAIL PROTECTED]
> Betreff: Problem with EAR plugin.
> 
> Hi all,
> 
> I am trying to build a J2EE project with MAVEN. And I have a problem with
> the ear plugin.
> I understand that you use dependencies to put a war  into the ear with the
> following code :
>      <dependency>
>            <id>web-client</id>
>            <version>1.0</version>
>            <properties>
>                <ear.bundle.war>true</ear.bundle.war>
>            </properties>
>       </dependency>
> But my problem is that when downloading dependencies from the repository, Maven 
>thinks that it is a jar
> and not a war.That means Maven tries to download web-client-1.0.jar instead of 
>web-client-1.0.war.
> Is there anyway to specify that this dependency is a war ?
> 
> Thanks for the help !
> 
> 
> 
> 
> 
> 
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential. 
> If you receive this message in error, please delete it and 
> immediately notify the sender. Any use not in accord with 
> its purpose, any dissemination or disclosure, either whole 
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message. 
> BNP PARIBAS (and its subsidiaries) shall (will) not 
> therefore be liable for the message if modified. 
> 
>                 ---------------------------------------------
> 
> Ce message et toutes les pieces jointes (ci-apres le 
> "message") sont etablis a l\'intention exclusive de ses 
> destinataires et sont confidentiels. Si vous recevez ce 
> message par erreur, merci de le detruire et d\'en avertir 
> immediatement l\'expediteur. Toute utilisation de ce 
> message non conforme a sa destination, toute diffusion 
> ou toute publication, totale ou partielle, est interdite, sauf 
> autorisation expresse. L\'internet ne permettant pas 
> d\'assurer l\'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce 
> message, dans l\'hypothese ou il aurait ete modifie.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 

-- 
--------------------------------------
Javafreedom - providing Java projects for free
--------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to