is it possible to filter artifacts in Maven-release-plugin?

348 views Asked by At

Is it possible to exclude some artifacts during release:prepare or release:perform? We don't need all the artifacts put on nexus, only two main ones.

1

There are 1 answers

0
Michał Kalinowski On BEST ANSWER

I believe what you actually want to do is to release all modules (to handle proper versioning, dependencies, etc.) and only skip deploying some of them.

If so, you can skip particular module for maven-deploy-plugin by its configuration:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-deploy-plugin</artifactId>
    <configuration>
        <skip>true</skip>
    </configuration>
</plugin>

or user property:

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