我的 pom 文件的包装是 pom。
我想将生成的 jar 和 pom 文件上传到存储库,如下所示。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-cli</id>
<phase>package</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>target/${artifactId}-${version}.jar</file>
<repositoryId>SERVER-Snapshots</repositoryId>
<url>https://test.nexsus.com/content/repositories/snapshots/</url>
</configuration>
</execution>
</executions>
</plugin>
我收到以下错误。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy-file (default-cli) on project xxx: The artifact information is inco
mplete or not valid:
[ERROR] [0] 'groupId' is missing.
[ERROR] [1] 'artifactId' is missing.
[ERROR] [2] 'version' is missing.
[ERROR] -> [Help 1]
还有jar打包pom部署文件如jar、sha1、md5、pom和zip。我怎样才能排除其中一些?