Arquivo da tag: Plugin

Plugin “maven-artun-plugin”

Com esse plugin quando formos gerar o build do projeto com o comando “mvn install”, ele vai pegar o *.war no final e cola na pasta do tomcat que eu especifiquei.

<plugin>
   <artifactId>maven-antrun-plugin</artifactId>
   <version>1.7</version>
   <executions>
      <execution>
         <phase>install</phase>
         <configuration>
            <target>
               <copy file="${project.build.directory}/projeto.war" todir="C:\TomCat7\webapps" />
	    </target>
         </configuration>
         <goals>
            <goal>run</goal>
         </goals>
      </execution>
   </executions>
</plugin>