| how do you pass properties to the build configuration [message #20899] | 
Thu, 04 June 2009 10:06   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 15:10   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 15:10   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03867 seconds