Forgot to include

> As an intermediate solution you can use an embedded maven repository
> (basically this duplicates the maven file structure within you
> project.
>

see 
http://svn.apache.org/repos/asf/incubator/stanbol/trunk/contrib/reasoners/hermit/
as an example.

in the pom.xml

 <repositories>
     <repository>
       <id>reasoners-hermit-embedded</id>
       
<url>file://localhost/${project.basedir}/src/main/resources/maven/repo</url>
       <releases>
         <updatePolicy>always</updatePolicy>
       </releases>
       <snapshots>
         <updatePolicy>always</updatePolicy>
       </snapshots>
     </repository>
  </repositories>

and the files are located at

http://svn.apache.org/repos/asf/incubator/stanbol/trunk/contrib/reasoners/hermit/src/main/resources/maven/

As mentioned. This can only be an intermediate solution. The "correct"
way to deal with dependencies that are not available in maven central
is to provide a separate download that includes the jar file and a
shell script/bat that installs the dependency to the local repository.
However this is rather inconvenient for developers as their builds
will fail until they download this file and run the script.

best
Rupert

-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to