Hi sourcex,

It's incredible easy. In the WAR pom, declare <packaging>war</packaging>. Example:

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.your.company</groupId>
    <artifactId>yourArtifact</artifactId>
    <packaging>war</packaging>
    <name>Web Application Name</name>
    <version>1.0-SNAPSHOT</version>
    <url>http://maven.apache.org</url>
    <dependencies>
        <dependency>
            <groupId>com.your.dependency</groupId>
            <artifactId>artifact-id</artifactId>
            <version>version</version>
        </dependency>
    </dependencies>

...

</project>


All its dependencies will be bundle in a .war file, including your JSE library. I suggest you to read any maven 2 book, there are some free in the web, see:

http://maven.apache.org/articles.html

Good luck!

sourcex escreveu:
Hi there, I'm new with Maven and I'm trying to create a .WAR archive to be
deployed on a remote server with no Maven installed. I also need that .WAR
archive to be bundled with all the libraries that the project uses. There is
also a connection between a JSE project and JEE project, so I tried to
create a separate .pom file which creates a JAR file from my JSE project,
creates a WAR file for my JEE project and includes the first archive (and
all other libs) in the .WAR file (as with ant). Well, I didn't succeed with that.
Any recommendations? Thanks in advance.


--
Fabio Braga de Oliveira
Gerente de Projetos de Software
Work:   +55 19 3295-2111
Mobile: +55 19 9270-6574
E-mail: [EMAIL PROTECTED]

Símula Sistemas de Planejamento e Comércio Ltda.
Url:     http://www.simula.com.br
Address: Av. José Bonifácio, 2510
         Zipcode 13093-240
         Campinas - SP - Brazil


begin:vcard
fn:Fabio Oliveira
n:Oliveira;Fabio
org;quoted-printable:S=C3=ADmula Sistemas de Planejamento e Com=C3=A9rcio Ltda.
adr;quoted-printable:;;Av. Jos=C3=A9 Bonif=C3=A1cio, 2510;Campinas;SP;13093-240;Brazil
email;internet:[EMAIL PROTECTED]
title:Gerente de Projetos de Software
tel;work:+55 19 3295-2111
tel;cell:+55 19 9270-6574
x-mozilla-html:FALSE
url:http://www.simula.com.br
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to