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>
      [...]

你可能感兴趣的:(deploy)