maven 跳过deploy



Avoid artifact deployment in the remote repo

The deployment of the artifact in the remote repository is done by the maven-deploy-plugin, by the goal is deploy:deploy, which offers a skip parameter that allow easily to reach our purpose.
So this is the configuration that must added to our pom:

  <build>
    <plugins>
      [...]
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      [...]

猜你喜欢

转载自mark-ztw.iteye.com/blog/1811292