You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Holger Hoffstaette <ho...@wizards.de> on 2007/02/20 17:37:51 UTC

New "feature" in 2.0.5: maven creates repo directories?!

I was more than a little miffed^h^h^h^h^h^hsurprised to learn that maven
2.0.5 has decided to create my repository directories for me. Thanks, but
no thanks!

Add the following convenience repo:

<repository>
<id>local (Maven 1)</id>
<name>Local module repository (lib)</name>
<url>file://lib</url>
..etc..

and suddenly you have a "lib" directory created in your project tree, even
if you didn't want one. I would be grateful for explanations about:

- wtf does this happen?
- is this worthy of a new JIRA?
- can I turn this off?

thanks
Holger



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


Re: New "feature" in 2.0.5: maven creates repo directories?!

Posted by Brett Porter <br...@gmail.com>.
It should definitely not create it - please file an issue.

On 21/02/07, Eric Redmond <er...@gmail.com> wrote:
> That is and isn't a bug. It is a bug insomuch that it is not expected
> behavior - it isn't a bug because you told Maven to create it. Maven (fairly
> universally) uses the Java convention: when you give an absolute path, it'll
> use it, otherwise, it's relative.
>
> If you are running windows that means your path must begin with drive
> letter. If you are using a *nix system, it must begin with root (/)... the
> example you gave does neither, so the Maven runtime assumes that the
> directory is local. If you want the repo to be in /lib, you'll need to set
> file:///lib (three slashes) not file://lib.
>
> Go head and file a JIRA though, since this might trip others up - I can't
> imagine why anyone would want a relative repo.
>
> Eric
>
> On 2/20/07, Holger Hoffstaette <ho...@wizards.de> wrote:
> >
> > Forgot to mention..
> >
> > > 2.0.5 has decided to create my repository directories for me.
> >
> > ..when running eclipse:eclipse for the project. It's repeatable
> > too: no lib dir is created with 2.0.4, it immediately appears when run
> > with 2.0.5.
> >
> > thanks
> > Holger
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Eric Redmond
> http://codehaus.org/~eredmond
>


-- 
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/

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


Re: New "feature" in 2.0.5: maven creates repo directories?!

Posted by Eric Redmond <er...@gmail.com>.
That is and isn't a bug. It is a bug insomuch that it is not expected
behavior - it isn't a bug because you told Maven to create it. Maven (fairly
universally) uses the Java convention: when you give an absolute path, it'll
use it, otherwise, it's relative.

If you are running windows that means your path must begin with drive
letter. If you are using a *nix system, it must begin with root (/)... the
example you gave does neither, so the Maven runtime assumes that the
directory is local. If you want the repo to be in /lib, you'll need to set
file:///lib (three slashes) not file://lib.

Go head and file a JIRA though, since this might trip others up - I can't
imagine why anyone would want a relative repo.

Eric

On 2/20/07, Holger Hoffstaette <ho...@wizards.de> wrote:
>
> Forgot to mention..
>
> > 2.0.5 has decided to create my repository directories for me.
>
> ..when running eclipse:eclipse for the project. It's repeatable
> too: no lib dir is created with 2.0.4, it immediately appears when run
> with 2.0.5.
>
> thanks
> Holger
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Eric Redmond
http://codehaus.org/~eredmond

Re: New "feature" in 2.0.5: maven creates repo directories?!

Posted by Holger Hoffstaette <ho...@wizards.de>.
Forgot to mention..

> 2.0.5 has decided to create my repository directories for me.

..when running eclipse:eclipse for the project. It's repeatable
too: no lib dir is created with 2.0.4, it immediately appears when run
with 2.0.5.

thanks
Holger



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