In Windows Explorer
In Eclipse
Assumptions
<groupId>edu.cornell.clo</groupId> <artifactId>messageQueue</artifactId> <version>0.4.1</version> <packaging>jar</packaging> |
In Project (that wants to access the jars)
add directories for each level of the groupID (ex. /repo
<b>/edu/cornell/clo/</b> |
)
add jar name (aka artifactId) without the version (ex. /repo/edu/cornell/clo
<b>/messageQueue</b> |
)
add directory for the version of the jar (ex. /repo/edu/cornell/clo/messageQueue
<b>/0.4.1</b> |
)
put the jar in that directory (ex. /repo/edu/cornell/clo/messageQueue/0.4.1
<b>/messageQueue-0.4.1.jar</b> |
)
In POM (for the project that wants to access the jars)
<repositories> <repository> <id>data-local</id> <name>data</name> <url>file://${project.basedir}/repo</url> </repository> </repositories> |
<dependency> <groupId>_package-path_</groupId> <artifactId>_jar-name-without-version_</artifactId> <version>_version_</version> </dependency> |
From our example above, this would be...
<dependency> <groupId>edu.cornell.clo</groupId> <artifactId>messageQueue</artifactId> <version>0.4.1</version> </dependency> |
Rebuild