Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » how do you pass properties to the build configuration
how do you pass properties to the build configuration [message #20899] Thu, 04 June 2009 14:06 Go to next message
Bill Brown is currently offline Bill BrownFriend
Messages: 2
Registered: July 2009
Junior Member
Greetings:

I am using IAM in eclipse 3.4 on windows. I have a project configuration
where I need to pass the property "-Plocal -Dmaven.test.skip=true" to the
build process so that it pulls in the correct environment properties and
skips running the tests. I can do this on the command in one line "mvn
clean install -Plocal -Dmaven.test.skip=true"

Within eclipse If I go to run configuration and pick a new maven build, I
can specify the project goals "clean install" in the goals input box but
it does not allow me to pass the "-Plocal -Dmaven.test.skip=true" there.
When I do that, I get an "Invalid task '-Plocal'..." error and the build
doesn't complete. I try adding them as key/value pairs below in the other
input area, but that doesn't work either.

Does anyone here know how to pass this extra parameters to the build
within the editor? Thanks for your input.

Bill.
Re: how do you pass properties to the build configuration [message #20904 is a reply to message #20899] Thu, 04 June 2009 19:10 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Bill,

You need to specify the profile (-Plocal) and the properties
(-Dmaven.test.skip) separately.

To enable a profile, open the Profile view (CTRL+3 "Profile"). You should
see all the defined profiles when selecting a project and be able to
enable them by clicking on the checkbox.

You can also define globally active profiles in the preferences (Maven >
Profiles) or per project (Project Properties > Maven JDT).

Properties can be enabled on custom maven launches (Maven 2 > Execute
Goal) and launch configurations.
In both cases, just click the "New" button in the Goal Properties section.

Note that you can also define properties on your profiles (this is allowed
by Maven, IAM does nothing special).

Hope this helps!
--
Abel Muiño

Bill Brown wrote:

> Greetings:

> I am using IAM in eclipse 3.4 on windows. I have a project configuration
> where I need to pass the property "-Plocal -Dmaven.test.skip=true" to the
> build process so that it pulls in the correct environment properties and
> skips running the tests. I can do this on the command in one line "mvn
> clean install -Plocal -Dmaven.test.skip=true"

> Within eclipse If I go to run configuration and pick a new maven build, I
> can specify the project goals "clean install" in the goals input box but
> it does not allow me to pass the "-Plocal -Dmaven.test.skip=true" there.
> When I do that, I get an "Invalid task '-Plocal'..." error and the build
> doesn't complete. I try adding them as key/value pairs below in the other
> input area, but that doesn't work either.

> Does anyone here know how to pass this extra parameters to the build
> within the editor? Thanks for your input.

> Bill.
Re: how do you pass properties to the build configuration [message #569698 is a reply to message #20899] Thu, 04 June 2009 19:10 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Bill,

You need to specify the profile (-Plocal) and the properties
(-Dmaven.test.skip) separately.

To enable a profile, open the Profile view (CTRL+3 "Profile"). You should
see all the defined profiles when selecting a project and be able to
enable them by clicking on the checkbox.

You can also define globally active profiles in the preferences (Maven >
Profiles) or per project (Project Properties > Maven JDT).

Properties can be enabled on custom maven launches (Maven 2 > Execute
Goal) and launch configurations.
In both cases, just click the "New" button in the Goal Properties section.

Note that you can also define properties on your profiles (this is allowed
by Maven, IAM does nothing special).

Hope this helps!
--
Abel Muiño

Bill Brown wrote:

> Greetings:

> I am using IAM in eclipse 3.4 on windows. I have a project configuration
> where I need to pass the property "-Plocal -Dmaven.test.skip=true" to the
> build process so that it pulls in the correct environment properties and
> skips running the tests. I can do this on the command in one line "mvn
> clean install -Plocal -Dmaven.test.skip=true"

> Within eclipse If I go to run configuration and pick a new maven build, I
> can specify the project goals "clean install" in the goals input box but
> it does not allow me to pass the "-Plocal -Dmaven.test.skip=true" there.
> When I do that, I get an "Invalid task '-Plocal'..." error and the build
> doesn't complete. I try adding them as key/value pairs below in the other
> input area, but that doesn't work either.

> Does anyone here know how to pass this extra parameters to the build
> within the editor? Thanks for your input.

> Bill.
Previous Topic:how do you pass properties to the build configuration
Next Topic:PluginDescriptor not found
Goto Forum:
  


Current Time: Sat Sep 22 19:11:22 GMT 2018

Powered by FUDForum. Page generated in 0.02064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top