I want to download some libraries (jars) from remote global repository but without adding them as dependecies to Maven Project in Eclipse.
I thought thta it is possible through Eclipse menu:
File>>Import >>Maven>>Materialize Maven Project from SCM >> Add (Maven Artifacts)
Then in artifact window I lookup for needed jar library i global repository. I choose one and hit finish. Some sha1 and pom files are downloaded to repository's folder automatically created for that project.
Next I try to install artifact:
File>>Import >>Maven>>Install or deploy an artifact to Maven reository
In the opened window I browse the pom file that was downloaded in previous step. I hit "finish". After this a jar file with appropriate name is created but it is not a jar indeed. It is wery small and winrar shows error while I'm tying to open it. It says that this is not a jar library.
You need to deploy the true jar file, which if you don't have a pom it will create one based
on your artifactId, version etc.
Deploying the pom itself, does not magically create the jar for you.
Joined: Feb 05, 2012
I was expecting that Eclipse would download the necessary library jar from repository as Maven does it when it downloads dependencies. I thought that pom contains necessary information for downloading that jar.
subject: Eclipse integrated with Maven - how to download libraries from global reopsitory using Eclipse IDE