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

前端 未结 1 2019
醉话见心
醉话见心 2021-02-07 00:43

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

-B -f  clean site -P 

I se

相关标签:
1条回答
  • 2021-02-07 01:06

    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>
    
    0 讨论(0)
提交回复
热议问题