Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version

Tags:

maven-2

maven

I have a Maven 2 project which I build with the following parameters:

-B -f <path to pom.xml> clean site -P <several profiles>

I see the following warning message in the build log:

[INFO] --- maven-resources-plugin:2.6:resources (default) @ autotest ---
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory C:\Jenkins\workspace\selfTests\${localProfile}
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] --- maven-resources-plugin:2.6:testResources (default) @ autotest ---
[INFO] Copying 29 resources
[WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has     an empty version.
[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.
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7
[INFO] Relativizing decoration links with respect to project URL: http://maven.apache.org
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "Cobertura Test Coverage" report    --- cobertura-maven-plugin:2.6
[INFO] Cobertura 2.0.3 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

The part of the pom.xml section with org.apache.maven.plugins:

...
<plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.6</version>
            <executions>
                <execution>
                    <phase>test</phase>
                    <goals>
                        <goal>resources</goal>
                        <goal>testResources</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>src/main/generated-groovy-stubs</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.8</version>
        </plugin>
        ...

I tried to explicitly include in the dependencies section:

...
<dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.7</version>
</dependency>
...

But it did not resolve my issue. I still see the warning message in the log.

like image 399
zubactik Avatar asked Sep 11 '13 07:09

zubactik


People also ask

What is Maven project Info reports plugin?

The Maven Project Info Reports plugin is used to generate reports information about the project.

What is org Apache Maven plugins?

org.apache.maven.plugins » maven-javadoc-pluginApache. The Apache Maven Javadoc Plugin is a plugin that uses the javadoc tool for generating javadocs for the specified project. Last Release on Apr 20, 2022.

What is reporting in Maven?

Maven has several reports that you can add to your web site to display the current state of the project. These reports take the form of plugin goals, just like those used to build the project.

What is Maven surefire report plugin?

The Surefire Report Plugin parses the generated TEST-*. xml files under ${basedir}/target/surefire-reports and renders them using DOXIA, which creates the web interface version of the test results.


1 Answers

Include info for the maven-project-info-reports-plugin in the plugin section (where for example also the maven-resources-plugin is specified):

<plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.6</version>
            <executions>
                <execution>
                    <phase>test</phase>
                    <goals>
                        <goal>resources</goal>
                        <goal>testResources</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-project-info-reports-plugin</artifactId>
            <version>2.7</version>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>src/main/generated-groovy-stubs</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
</plugins>
like image 108
zubactik Avatar answered Sep 30 '22 02:09

zubactik