In Maven2, if plugin or dependency can not be found in ibiblio, for example,
weblogic.jar, you can use below lines to install the jar into local repository:
set wl-home=D:/bea91/weblogic91
set group-id=com.bea.mytest
set version=9.1
set packaging=jar
@rem #weblogic
set path-to-file=%wl-home%/server/lib/weblogic.jar
set artifact-id=weblogic
mvn install:install-file -Dfile=%path-to-file% -DgroupId=%group-id%
-DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging%
then you can use the jar as a dependency, as:
<dependency>
<groupId>com.bea.mytest</groupId>
<artifactId>weblogic</artifactId>
<version>9.1</version>
</dependency>
Thanks,
----------------------------------------------
Qiang Wang [Kevin]
-----Original Message-----
From: tanya Rust [mailto:[EMAIL PROTECTED]
Sent: 2006年2月27日 14:43
To: [email protected]
Subject: How to use external jar's while compiling
Hi all,
I am new to maven environment
Can any one help me finding out solution for compiling my project as it
requires an external jar for compilation ..
Tanya
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
_______________________________________________________________________
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]