Discussion:
Specifying maven settings.xml
dciarnie
2010-01-28 21:05:51 UTC
Permalink
Is there any way to specify an arbitrary settings.xml file for a maven project? I'm looking for behaviour similar to the "mvn -s" command from within NetBeans.

Alternatively, is there a way to specify a local repository on a per project basis?

Thanks,
Dan.
mkleint
2010-01-28 21:54:34 UTC
Permalink
you can set the settings file only globally in Tools/Options. Same
applies to local repository. IMHO if you need multiple local repos, you
are doing something wrong. The local repo is just a cache. It means your
remote repos or locallly built projects have inconsistent coordinates.

Milos
Post by dciarnie
Is there any way to specify an arbitrary settings.xml file for a maven project? I'm looking for behaviour similar to the "mvn -s" command from within NetBeans.
Alternatively, is there a way to specify a local repository on a per project basis?
Thanks,
Dan.
dciarnie
2010-01-28 23:11:42 UTC
Permalink
That's unfortunate. While it may very well be that we are not doing things in the "proper" way, the fact is that Maven does allow one to specify the location of settings.xml via the -s switch and it would be nice if NetBeans supported this.

Thanks,
Dan.
mkleint
2010-01-29 10:48:30 UTC
Permalink
Post by dciarnie
That's unfortunate. While it may very well be that we are not doing things in the "proper" way, the fact is that Maven does allow one to specify the location of settings.xml via the -s switch and it would be nice if NetBeans supported this.
it does support it. globally only though. "There is to be just one local
repository cache" is a basic constraint to make most inter-project
features work (like finding sources for binary, hyperlinking, project
file ownership).

Milos
Post by dciarnie
Thanks,
Dan.
dciarnie
2010-01-29 17:03:04 UTC
Permalink
Then it doesn't support it. Specifying the settings file by specifying the repository is the opposite of specifying the repositories, remote or local, by specifying the settings file. "mvn -s" gives one the ability to do this and NetBeans should support it.
mkleint
2010-01-30 15:52:52 UTC
Permalink
let me reiterate. netBeans will never support it. if you need different
remote repos, you can use profiles in the settings file and enable these
profiles in each project. Having per project settings file/local repo
will never be supported.

Milos
Post by dciarnie
Then it doesn't support it. Specifying the settings file by specifying the repository is the opposite of specifying the repositories, remote or local, by specifying the settings file. "mvn -s" gives one the ability to do this and NetBeans should support it.
dciarnie
2010-01-31 07:13:37 UTC
Permalink
So let me get this straight. You are reiterating something that you never, at least not in this thread, said?
Loading...