O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
While Maven is an improvement on Ant, Ant can still be useful when describing parts of the build process. Ant provides a set of tasks which can come in handy when you need to perform file operations o...
You need to execute an external Ant script in a Maven build.
Configure the run goal form the Maven AntRun plugin. Define any properties you wish to pass to the external Ant build, and then call the ...
You need to run an inline Ant script as a part of your Maven build.
Configure the run goal of the Maven AntRun plugin to execute an inline Ant script. The POM shown in configures the run goal to exe...
Groovy is a dynamic language based on the Java Virtual Machine which compiles to Java bytecode. Groovy is a project in the Codehaus community. If you are fluent in Java, Groovy will seem like a natura...
You need to execute one or more groovy scripts in a Maven build.
Configure the execute goal of the GMaven plugin, reference the Groovy script in the source configuration for the execution. The follow...
You need to run some Groovy script as a part of your build process.
Put some Groovy in your project's POM like this:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xml...
You need to execute an external Scala script as a part of your Maven build.
Configure the script goal of the Maven Scala plugin and specify a Scala script in the scriptFile configuration parameter.
...
You need to execute an inline Scala script as a part of your Maven build.
Configure the script goal of the maven-scala-plugin, and pass a Scala script to the script configuration parameter.
<pro...
To start a new Maven project, use the Maven Archetype plugin from the command line. Run the archetype:generate goal, select archetype #15, and then enter "Y" to confirm and generate the new ...