This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.