java - What is the syntax to run a maven plugin from the command line. -


i see has been asked on here: how execute maven plugin command line? don't understand answer. looks syntax of form:

mvn foo:bar 

but i'm not sure foo , bar supposed be.

specifically have configured maven-resource-plugin this:

<plugin>     <artifactid>maven-resources-plugin</artifactid>     <version>2.5</version>     <executions>         <execution>             <id>copy-resources</id>             <phase>prepare-package</phase>             <goals>                 <goal>copy-resources</goal>             </goals>             <configuration>                 <!--configuration here-->             </configuration>         </execution>     </executions> </plugin> 

i've tried several permutations of mvn artifactid|id|phase|goal:artifactidid|id|phase|goal none of them working. figured i'd stop trying brute-force , ask internet. also, documented anywhere?

there 3 patterns:

groupid:artifactid:version:goal groupid:artifactid:goal prefix:goal 

if run location pom.xml , haven't specified version, maven search matching plugin in build-section. prefix can (not always) recognized part of artifactid, e.g. maven-help-plugin has prefix help. plugin documentation should give exact prefix.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -