我在尝试在Maven应用程序的POM.xml文件中执行包目标时遇到问题。 我在尝试打包到jar文件时遇到错误
Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default-descriptor) on project codesign-maven-plugin: Error extracting plugin descriptor: 'Goal: version already exists in the plugin descriptor for prefix: getversion
[ERROR] Existing implementation is: com.ios.plugin.VersionMojo
[ERROR] Conflicting implementation is: com.ios.plugin.VersionMojo'
我的项目是从版本控制的系统中检出的,我的项目中有一些版本控制的文件,似乎它们在执行期间被包含在内
这是我的POM.xml文件
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>com.ios.ccss</groupId>
<artifactId>ios-client</artifactId>
<version>3.0-Beta</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ios-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>ios-maven-plugin</name>
<dependencies>
<dependency>
<groupId>com.ios.ccss</groupId>
<artifactId>ios-lib</artifactId>
<version>3.0-Beta</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<executions>
<execution>
<id>default-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<packagingExcludes>**/.ade_path/**</packagingExcludes>
<excludes>
<exclude>**/.ade_path/**</exclude>
</excludes>
<testExcludes>
<exclude>**/.ade_path/**</exclude>
</testExcludes>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
<appendAssemblyId>false</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- this is used for inheritance merges -->
<phase>package</phase>
<!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>ios-maven-plugin</finalName>
</build>
</project>