Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Maven 3 environment properties not set from the build engine

 Hello everyone,
We are integrating Maven 3 and RTC and got into an issue. I am not able to pass custom properties using java arguments. I have a variable defined as enviornment.name whose default value is dev. When I pass -Denvironment.name=test, the value is still dev. The same works fine in command line using maven. 
"mvn -Denvironment.name=test clean" works fine from the command line. It looks like it is an issue with RTC and maven integration. 
Has anyone seen this issue before with Maven 3 and RTC?

Any help will be greatly appreciated. 

Thank you,
Shyam

0 votes



One answer

Permanent link
 Update:
It looks like if the default values exist then RTC is not using the JVM arguments. I removed the default values from the POM and it works. It seems like an issue with RTC and Maven integration. 


0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,026

Question asked: Sep 21 '12, 3:09 p.m.

Question was seen: 3,909 times

Last updated: Sep 21 '12, 5:06 p.m.

Confirmation Cancel Confirm