NeplatnyUdaj
NeplatnyUdaj

Reputation: 6242

Maven disable copying artifact to local repository

I'm trying to disable one artifact from the project to be installed to local repository on install phase. According to the maven webpages(http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html#skip), there should be a parameter skip, but it's not in the xsd of model version 4.0.0 and is not working.

Here's what I think should work, but does not:

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

How can I do that? I need to keep the install phase intact. I need a change only for a single artifact. I also need to have it in the pom, not as a command line parameter.

Maven version: 3.0.4
Maven-install-plugin version: 2.3

Upvotes: 2

Views: 2223

Answers (1)

NeplatnyUdaj
NeplatnyUdaj

Reputation: 6242

The problem was using old version of the maven-install-plugin.

Parameter "skip" is there since version 2.4.

Upvotes: 3

Related Questions