'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing.

1,506 views
Skip to first unread message

Roberto JR

unread,
Jul 15, 2016, 6:38:56 AM7/15/16
to VIVO Tech
Compiling with Netbeans, the warning 

"'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 121, column 21"

can be fixed replacing 

            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>overlays</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>

in pom.xml

with

<plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <id>auto-clean</id>
            <phase>initialize</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>


Graham Triggs

unread,
Jul 15, 2016, 9:20:31 AM7/15/16
to Roberto JR, VIVO Tech
Hi,

What version of NetBeans are you using? Do you know what version of Maven it includes?

Replacing the current maven-clean-plugin configuration with the proposed section is not the right way to resolve this - the configuration exists specifically to remove “temporary” files that otherwise would be left, and the replacement wouldn’t do this.

But I would like to look into why this is causing a problem in NetBeans - I haven’t seen the same problems occur from the command line.

Regards,
G
-- 

Graham Triggs
Technical Lead for VIVO
DuraSpace.org

--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To post to this group, send email to vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/de5e6755-5996-4725-9478-e7b05a5936c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roberto JR

unread,
Jul 15, 2016, 11:45:55 AM7/15/16
to Graham Triggs, VIVO Tech
Hello,

Thanks for answer.

Netbeans -> 8.1. The maven version is - >3.3.9.
I think that this solution is not the right way indeed, but worked and I could install the version 1.9-rc1 and test from NetBeans.
This issue does not occur from the command line.

Thanks again!

Roberto JR

unread,
Jul 15, 2016, 12:00:04 PM7/15/16
to VIVO Tech
After temporarily try to "fix" the above problem, this now occured:


'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 120, column 21

<dependency>
 <groupId>org.vivoweb</groupId>
 <artifactId>vivo-webapp</artifactId>
 <version>${vitro-version}</version> <<<<<<<
 <type>war</type>
</dependency>

Roberto JR

unread,
Jul 15, 2016, 12:13:08 PM7/15/16
to VIVO Tech
These problems DO occur with the command line (appears at the beginning, so I did not notice)

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.vivoweb:vivo-installer-solr:war:1.9.0-rc1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 120, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.vivoweb:vivo-installer-vivo:war:1.9.0-rc1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 122, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
Reply all
Reply to author
Forward
0 new messages