One of the best strategies recommended for adding of JARs files in maven's project with no public repository is using of static in-project repository. Nice blog : http://charlie.cu.cc/2012/06/how-add-external-libraries-maven/ or one of the most popular as I found StackOverflow posts Can I add jars to maven 2 build classpath without installing them? Does someone have had next issue when make totally same steps for integrating of the solution (my particular case is adding of filters-1.0.jar file): "Missing artifact imageUtil:filters:jar:0.1:compile" or in other words, nevertheless the static in-project repository is set up in pom.xml at the end also could not be recognized ? Does something is missed by me ?
Here are my steps integrating of the solution:
- create a "repo" folder in root of my maven project
- in pom.xml I registered static in-repository :
<repository>
<id>repo</id> <releases> <enabled>true</enabled> <checksumPolicy>ignore</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <url>file://${project.basedir}/repo</url>
</repository>
- Again in pom.xml added mention dependency :
<dependency>
<groupId>imageUtil</groupId> <artifactId>filters</artifactId> <version>0.1</version>
</dependency>
last step is copy-pacing of mention JAR in next sub-folder structure
/repo/imageUtil/filters/0.1/filters-0.1.jar
When I checked in buildpath for the project (I am using Eclipse) I also saw that mention JAR is looking in my local repository or - /home/simeon/.m2/repository/imageUtil/filters/0.1 (missing)
Maybe the question here is "how to say to my maven project that this JAR should be searched in my static in-project repository" ?
Thanks in advance, SImeon