I have a compressed tar.gz file and I want use it as dependency for other projects.
I am unable upload it in maven repository with the following command because maven doesn't support tar.gz packaging :
mvn install:install-file -Dfile=/path-to-file/XXX-0.0.1-SNAPSHOT.tar.gz -DpomFile=/path-to-pom/pom.xml
Sample pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<name>XXX</name>
<groupId>com.example.file</groupId>
<artifactId>xxx</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>tar.gz</packaging>
</project>
If I use the above mentioned command with rar packaging then maven does upload XXX-0.0.1-SNAPSHOT.tar.gz file but with .rar extension.
Beside developing maven plugin for custom package, is there any way to upload tar.gz in maven repository and later use it in other project as dependency?
(Note: I just want to use tar.gz and not any other compression e.g rar, etc).
tar.gz
package come from? Maven build? – khmarbaise