
Originally Posted by
krimple
Why are you using external dependencies, is it because these JARs don't exist in Maven central, or because they are from other company projects / libraries?
Maven does have a scope of system for cases like this... but you should have it path-relative, since if you don't check in the libraries in SVN in an expected place, they won't be found.
I'd suggest looking into why you have these libraries stored outside of the Maven / Maven Repository infrastructure and try to live within it instead.
Other suggestions:
- You can do mvn dependency:install if you don't have a repository for non-public Maven dependency, then use the coordinates you set for groupId, artifactId, and version in your build. You can put the JARs in version control, then put a shell script in the same directory to run those mvn dependency:install commands on another PC or Mac when you want to set it up. (not ideal)
- You can see if your artifacts (assuming they are open source) are available to use from the Maven coordinate system (groupId, artifactId, version) using search.maven.org and replace your manual JAR locations with those (better)
- You can download a Nexus free repository server, put it online in your location, and load your non-maven artifacts into it. Companies do this so they can share artifacts. Then you can add it as a repository for your project. (better)
Ken