Thats neat! thank you.
Karthik.
Tim Davies <[EMAIL PROTECTED]> wrote: You can use the install command to get a
jar into your local repository.
eg. for suns activation.jar which I happen to have at hand
mvn install:install-file -DgroupId=javax.activation
-DartifactId=activation
-Dversion=1.0.2
-Dfile=activation.jar
-Dpackaging=jar
-DgeneratePom=true
For remote repositories there will in future be a deploy:deploy-file
equivalent but this is still in the snapshot at present.
regards,
TD
Karthik V wrote:
>In maven 2, do I have a way to add jar files to repositories manually? I need
>a few jars for my project that dont seem to be present in the maven 2 remote
>repository. Instead of hunting down a url for it, I'd prefer using my local
>copy. The repository folder in maven 2 seems to be different from maven 1.x.
>In 1.x, it used to work fine if I just copy my jars to the jars folder of each
>artifact. But in m2, it seems to be requiring a pom file along with this jar,
>I get an error like this -
>
>[INFO] Error building POM (may not be this project's POM).
>Project ID: xdoclet:xdoclet-web-module
>Reason: Error getting POM for 'xdoclet:xdoclet-web-module' from the repository:
>Error transferring file
> xdoclet:xdoclet-web-module:pom:1.2.2 from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
>
>
>Some of my required jars include xdoclet's 1.2.2 version modules, which aren't
>present in m2's default repository. I dropped a xdoclet-web-module-1.2.2.jar
>in .m2\repository\xdoclet\xdoclet-web-module\1.2.2 folder, and that caused the
>above error.
>
>Thanks
>Karthik.
>
>
>
>
>---------------------------------
>Yahoo! Photos
> Ring in the New Year with Photo Calendars. Add photos, events, holidays,
> whatever.
>
>
--
Tim Davies
Analyst Developer
KTS PLC: Service you can bank on
8th Floor, Finsbury Tower,
103-105 Bunhill Row,
London EC1Y 8LZ
tel: +44 (0)20 7256 2300
fax: +44 (0)20 7256 2301
email: [EMAIL PROTECTED]
web: http://www.ktsplc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less