Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to configure Maven 2 build?

build configure Maven
0
Posted

How to configure Maven 2 build?

0

No additional configuration on the agent side is needed to run Maven 2 builds. A snapshot version of Maven 2.1 is distributed as an agent plugin (just like bundled Ant 1.6.5) Note that Maven 2 build runner has two required parameters: • goals – a set of maven goals to be executed • pomLocation- the directory where the pom.xml file is located. In the example the “%build.working.dir%” macro is used, that is substituted with the real directory path on the concrete agent machine. Alternatevely, if there is a separate Maven 2.1.x installation on the agent machine, and either the environment variable “M2_HOME” or java system property “maven.home” is defined, the agent will try to start Maven from that location rather than using the bundled one. Note that because of more decent MavenEmbedder implementation, only Maven of version 2.1 can be run by the agent.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123