Loading
0

maven install/deploy排除指定module

通过设置属性:

<properties>
  <maven.install.skip>true</maven.install.skip>
  <maven.deploy.skip>true</maven.deploy.skip>
</properties>

通过插件:

<plugins>
            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-install-plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.2</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-deploy-plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.2</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
</plugins>

参考:

最后编辑于:2021/8/7作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭