Skip to main content

Posts

Showing posts from July, 2010

Deals You Can't Miss

1 Year Subscription

Manually installing jars in Maven Repository

Occasionally we stumble upon a situation where in we may find dependency of a jar that falls under the following category: it is propriety jar file which will never be part of maven repository it is not in official maven repository, for whatever reason it be In this situation, you add this jar (“install” in Maven’s jargon) to your local Maven repository. How do you do this? If you know and\or understand the layout of the maven repository, you can copy the jar directly into where it is meant to go. Maven will find this file next time it is run. If you are not confident about the layout of the maven repository, then you can adapt the command below to load in your jar file. mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> -DgeneratePom=true Where:  <path-to-file> the path to the file to load <group-id> the group that the file sho