I am using Apache Maven 3.3.9.
I have a jar file (util.jar) I have copied that under (/src/lib/) directory in my project. This jar file is built using Ant that has no jar version number specified in it. I checked MANIFEST.MF and it has the following information:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.7
Created-By: 1.8.0_05-b13 (Oracle Corporation)
Class-Path: ./guava/19.0/guava-19.0.jar ./log4j/1.2.17/log4j-1.2.17.ja r ./joda-time/2.9.4/joda-time-2.9.4.jar
I would like to include this jar file in my Spark project. How do I include that in my pom.xml?
<dependency>
<groupId>com.companyname</groupId>
<artifactId>util</artifactId>
<version>what to specify here</version>
</dependency>
<repository>
<id>my-local-repo</id>
<url>file://${basedir}/src/lib/</url>
</repository>
How do I specify version number since that information is missing in my jar file. If I don't specify version number I get error, that version number is not specified. Is there a way to resolve this?