settings.xml (still?) ignored

View: New views
3 Messages — Rating Filter:   Alert me  

settings.xml (still?) ignored

by Wouter van Reeven :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I found this thread via Google

http://www.nabble.com/Problem-with-Mevenide-2-in-NB6-td14135951.html

and theu bug Milos mentioned in the thread is resolved and closed. Hence the
subject of this mail.

In order to be able to use the maven-glassfish plugin I need to set several
properties for Maven, e.g. glassfishDirectory. Since the required properties may
vary per developer, I have included them in my local settings.xml file in my .m2
directory. From my pom I refer to them e.g.

<glassfishDirectory>${glassfish.home}</glassfishDirectory>

MevenIDE doesn't like this. I get errors like this

[ERROR]Missing parameters include:
[ERROR]glassfishDirectory

If I tell MevenIDE to use an external Maven (version 2.0.9) it works. However,
MevenIDE includes this in my pom

<netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven>

which I don't like cause now I have IDE specific code in my pom. Is there any
way to have MevenIDE use my settings.xml?


Thanks, Wouter

--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: settings.xml (still?) ignored

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

could be a bug in embedded maven instance.

netbeans 6.5 uses command line maven by default, therefore no
netbeans.hint.useExternalMaven property needs to be set.
in addition it also writes the property ti nbconfigurations.xml by default now.

On a general level I don't really understand the gripes about having
netbeans specific properties in pom.xml. They don't hurt anything (or
I yet have to see an example when they do) and at the same time a lot
of people seem to be happily adding eclipse:eclipse plugin
configuration to their poms.

Milos

On Wed, Oct 29, 2008 at 11:27 AM, Wouter van Reeven
<wouter@...> wrote:

> Hi,
>
>
> I found this thread via Google
>
> http://www.nabble.com/Problem-with-Mevenide-2-in-NB6-td14135951.html
>
> and theu bug Milos mentioned in the thread is resolved and closed. Hence the
> subject of this mail.
>
> In order to be able to use the maven-glassfish plugin I need to set several
> properties for Maven, e.g. glassfishDirectory. Since the required properties may
> vary per developer, I have included them in my local settings.xml file in my .m2
> directory. From my pom I refer to them e.g.
>
> <glassfishDirectory>${glassfish.home}</glassfishDirectory>
>
> MevenIDE doesn't like this. I get errors like this
>
> [ERROR]Missing parameters include:
> [ERROR]glassfishDirectory
>
> If I tell MevenIDE to use an external Maven (version 2.0.9) it works. However,
> MevenIDE includes this in my pom
>
> <netbeans.hint.useExternalMaven>true</netbeans.hint.useExternalMaven>
>
> which I don't like cause now I have IDE specific code in my pom. Is there any
> way to have MevenIDE use my settings.xml?
>
>
> Thanks, Wouter
>
> --
>
> People: "If she weighs the same as a Duck, she's made of wood!"
> Sir Bedevere: "And therefore...?"
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: settings.xml (still?) ignored

by Wouter van Reeven :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 29, 2008 at 11:43:27AM +0200, Milos Kleint wrote:
> could be a bug in embedded maven instance.
>
> netbeans 6.5 uses command line maven by default, therefore no
> netbeans.hint.useExternalMaven property needs to be set.
> in addition it also writes the property ti nbconfigurations.xml by default now.

That's good to know :-)

> On a general level I don't really understand the gripes about having
> netbeans specific properties in pom.xml. They don't hurt anything (or
> I yet have to see an example when they do) and at the same time a lot
> of people seem to be happily adding eclipse:eclipse plugin
> configuration to their poms.

I agree and I very much dislike that as well. IMHO, an IDE should support maven
the same way as it supports ant. Anyway, I get your point about the eclipse
plugin config so I will have MevenIDE add the netbeans specific config too.

Thanks a lot for your answer Milos!


Greets, Wouter

--

People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email