Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Passing additional parameters to maven buildet


 Hi there,

I am trying to use custom variables in my project’s POM like ${abc}.

Normally this variable initialized from command line arguments when maven build starts, e.g. mvn –Dabc=123

However, when the variable in not initialized with value (I will not explain too much details why the variable is used for) build fails because the variable is used for dependency management. Actually it’s fine for me when projects built in Bamboo/Jenkins/etc. But we got problems in Eclipse workspace when it can not resolve dependencies due to missing parameter.

So, summary of my question is how to pass custom arguments/parameters in Eclipse maven builder, which resolves dependencies on workspace.

 

Thanks in advance for any assistance.

 

 

 

Best regards,

Andrey Rusak

 




Sent from Samsung mobile

Back to the top