If you are getting errors like “Plugin blah or one of its dependencies could not be resolved” you may find this useful.

There is an issue with Maven 3.0.3 (and I assume earlier) in that plug-in repositories need to be separately configured from the normal repository. The maven settings file must contain something like this:

<pluginRepositories>
    <pluginRepository>
        <id>nexus-3rdParty</id>
        <name>Snapshots</name>
        <url>http://repo.mycompany.com:8081/nexus/content/repositories/thirdparty</url&gt;
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <releases>
            <enabled>true</enabled>
        </releases>
    </pluginRepository>
</pluginRepositories>   
           

With 3.0.4, maven will pick up the plugin repository information from the repositories configuration.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s