My pom file's packaging is pom.
I would like to upload generated jar and pom files to repository like below.
<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>
I get the following error.
[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]
Also jar packaging pom deploy files such as jar, sha1, md5, pom and zip. How can I exclude some of them?