After going through the book, I am trying to get one of our modules compile and 
package into jar. How do I include 3rd party Jars?   Here is my directory 
structure and pom.xml  
 
Seems to be very elementary but the examples I am coming across seems to be NOT 
real world cases.
 
Thank you for your help.
 
 
mymodule-
     -doc (not to be included in jar)
     -lib  (has third party jars from       1.  un-common vendors (say - 
somevendor.jar) ..AND 
                                                      2.   more common jars 
like xercesImpl.jar, log4j.jar
     -src  which has java sorce
     -somedir  (not to be included in built jar)
 
pom.xml-
 
<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.tmobile.app</groupId>
  <artifactId>MyModule</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>MY Module </name>
  <url>http://tempurl.com</url>
  <build>
  <sourceDirectory>./src</sourceDirectory>
  </build>
</project>

 

 
________________________________

From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
Sent: Sat 12/30/2006 8:21 AM
To: Maven Users List
Subject: Re: Sample/Best Practice for Maven 2 and WebLogic J2EE application.



Sagare, Vipul wrote:
> I am trying convert "ant" scripts for J2EE application (with JAR, WAR,
> EAR) to Maven 2.0.  We use WebLogic 8.1 SP4.  
>
> I have tough time finding "a complete" sample for J2EE project with
> source code.  I see several bits and pieces on several Maven related
> websites.  The documentation is poor at best.
>
> An example similar to Vincent Massol's Maven 1.1 article on O'Reilly
> (http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html?page=1) would
> be great.
>
> Anybody successfully using Maven WebLogic-Plugin for creating EAR files
> for WL 8.1 SP4 (EJB 2.0)? (As we use appc)
>
> Your help is appreciated.
>
> Thanks
> Vipul

If you haven't read "Better Builds With Maven" I suggest you start with
that. It's great and it's available as a free download:

   http://www.mergere.com/m2book_download.jsp

--
Dennis Lundberg

---------------------------------------------------------------------
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