What I do is to setup a remote repository using the "file:" protocol and
${basedir} to point to a nested folder:

<repository>
 <id>local-mime4j-stage-repository</id>
 <name>Local mime4j stage repository</name>
 <!-- Please note that due to http://jira.codehaus.org/browse/MNG-2896 -->
 <!-- If you don't have james-project checked out in ../james-project -->
 <!-- you will have to place your absolute path to the project instead -->
 <!-- of ${basedir}, or, otherwise, manually install the parent poms -->
 <!--
   mvn -fignorepom.xml install:install-file
      -Dfile=stage\org.apache.james\poms\james-parent-1.1.pom
      -Dpackaging=pom
      -DgroupId=org.apache.james
      -DartifactId=james-parent
      -Dversion=1.1
   mvn -fignorepom.xml install:install-file
      -Dfile=stage\org.apache.james\poms\james-project-1.1.pom
      -Dpackaging=pom
      -DgroupId=org.apache.james
      -DartifactId=james-project
      -Dversion=1.1
 -->
 <url>file://${basedir}/stage</url>
 <layout>legacy</layout>
 <snapshots>
  <enabled>true</enabled>
  <checksumPolicy>ignore</checksumPolicy>
 </snapshots>
 <releases>
  <enabled>true</enabled>
  <checksumPolicy>ignore</checksumPolicy>
 </releases>
</repository>

Then I place my jars/poms in stage/groupId/jars/artifactId-version.jar
and stage/groupId/poms/artifactId-version.pom and so on.

This does not work correctly in multi module builds, but it fixed my
needs ATM.

HTH,
Stefano

Maarten Volders ha scritto:
> All,
> 
> I have a lot of libs which are not in the repository (central) each of them
> depending on a whole bunch of other libs, and manually putting them in the
> internal repository is really a lot of work, type-work :-) because all the
> dependencies have to be declared manually. So instead I want to make use of
> a lib directory instead of retrieving all my jar from the repository.
> 
> How can this be accomplished with Maven?
> 
> Grtz
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to