how do I specify build goals like development, test or production environment in the maven grails plugin when packaging a war file for deployment?
Thanks
how do I specify build goals like development, test or production environment in the maven grails plugin when packaging a war file for deployment?
Thanks
Set grails.env
when running maven:
mvn package -Dgrails.env=development
If you omit this option, the environment defaults to production
.
You can also set it in the <configuration>
section
<plugin>
<groupId>org.grails</groupId>
<artifactId>grails-maven-plugin</artifactId>
<version>1.3.7</version>
<executions>
<execution>
<goals>
<goal>maven-war</goal>
</goals>
<configuration>
<env>prod</env>
</configuration>
</execution>
</executions>
</plugin>