You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Szczepan Faber <sz...@gmail.com> on 2006/03/16 15:51:34 UTC

[M2] dependencies-libraries that are not hosted - best practice

Hi,

What is the best practice in case of dependencies that are not hosted anywhere?

Should jars land in project's 'lib' dir? A mojo should install jar
into user's local repository? I assume that maven methodology requires
me to create corporate / team wide repository with those specific
jars...

Thanks,
Szczepan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M2] dependencies-libraries that are not hosted - best practice

Posted by Wayne Fay <wa...@gmail.com>.
I think the MAVEN best practice is to set up a corporate repository
with the specific jars and then add that repo to your project pom.

If you're just trying to make it work, and don't mind checking Jars
into your code versioning system, then you could perhaps use the
<scope>system</scope> and <systemPath> settings to make those jars
available to the project without the trouble of setting up your own
Maven repo.

<dependency>
  <groupId>aaa</groupId>
  <artifactId>bbb</artifactId>
  <version>1.0.1</version>
  <scope>system</scope>
  <systemPath>${basedir}\lib\aaa-bbb-1.0.1.jar</systemPath>
</dependency>

Wayne


On 3/16/06, Szczepan Faber <sz...@gmail.com> wrote:
> Hi,
>
> What is the best practice in case of dependencies that are not hosted anywhere?
>
> Should jars land in project's 'lib' dir? A mojo should install jar
> into user's local repository? I assume that maven methodology requires
> me to create corporate / team wide repository with those specific
> jars...
>
> Thanks,
> Szczepan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [M2] dependencies-libraries that are not hosted - best practice

Posted by Brad O'Hearne <br...@neurofire.com>.
Szczepan,

I would not install them into a local repository. Consider your local  
repository nothing more than a local cache, but not the master  
repository for jars. Any jars you have that are not hosted on ibiblio  
or another public repository, host in your own internal corporate  
repository. In fact, I'd recommend setting up maven-proxy, so that  
all dependencies from the user's view are coming from your internal  
corporate repository.

Brad

On Mar 16, 2006, at 7:51 AM, Szczepan Faber wrote:

> Hi,
>
> What is the best practice in case of dependencies that are not  
> hosted anywhere?
>
> Should jars land in project's 'lib' dir? A mojo should install jar
> into user's local repository? I assume that maven methodology requires
> me to create corporate / team wide repository with those specific
> jars...
>
> Thanks,
> Szczepan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org