C:\sample-mvn\sub>set sub-home=D:
  C:\sample-mvn\sub>set group-id=com.ncso
  C:\sample-mvn\sub>set version=1.0
  C:\sample-mvn\sub>set packaging=jar
  C:\sample-mvn\sub>set path-to-file=%sub-home%/ncso/ncso.jar
  C:\sample-mvn\sub>set artifact-id=ncso
  C:\sample-mvn\sub>mvn install:install-file -Dfile=%path-to-file% 
-DgroupId=%group
-id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging%
   
  till this step it is ok 
  when i compile using mvn compile
   
  C:\sample-mvn\sub>mvn compile
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [compile]
[INFO] -------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
[INFO] -------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Failed to resolve artifact.
   
  

Kevin Wang <[EMAIL PROTECTED]> wrote:
  
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:

com.bea.mytest
weblogic
9.1



Thanks,
----------------------------------------------
Qiang Wang [Kevin]
-----Original Message-----
From: tanya Rust [mailto:[EMAIL PROTECTED] 
Sent: 2006Äê2ÔÂ27ÈÕ 14:43
To: users@maven.apache.org
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]



                
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

Reply via email to