Yes, although it's not good practice. One project should only produce
one main artifact.

To have the maven-war-plugin create an additional jar artifact with
the java classes, have a look at this config parameter:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses

/Anders

On Fri, Jul 6, 2012 at 1:27 PM, sivarenati <[email protected]> wrote:
> hi frnds,
>
> Is it possible to create war and jar files with single pom.xml file.
>
> i have to create jar file for my project along with war.
>
> please help me on this if know how to do it.
>
>
>
>
>
> Regrds.
> Siva
>
>
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/is-it-possible-to-creating-war-and-jar-files-with-single-POM-xml-file-tp5713154.html
> Sent from the Maven Developers mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to