You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by th...@bnpparibas.com on 2003/01/22 08:54:48 UTC

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.


Re: Problem with EAR plugin.

Posted by "Markus M. May" <mm...@javafreedom.org>.
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:  thomas.durif@bnpparibas.com

> Gesendet: Wednesday, 22. January 2003 08:54
> An: turbine-maven-user@jakarta.apache.org
> 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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 

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