Hello, The installation of the jar file ncso.jar as the artifact com.ncso:ncso:1.0looks fine. However, what I noticed is that Maven2 tries to look for the version 8.1. Could you have made a typo in your pom.xml?
Kindly show us your pom.xml, it would really help resolve your problem. :) Cheers! Nap On 2/27/06, tanya Rust <[EMAIL PROTECTED]> wrote: > > 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. >