I have a group of jars, yanfs.jar
, yanfs-javadoc.jar
, and yanfs-sources.jar
. These are third party jars that Maven cannot resolve.
I have plan to use the Maven install command:
mvn install:install-file -Dfile=path -DpomFile=path
to add the jars to my maven repository so that I can use it in my code.
I just can't figure out how to write the pom file for the jar so the at least the sources jar is included along with the standard jar file.
This is what I have so far:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun</groupId>
<artifactId>yanfs</artifactId>
<version>1.2</version>
<description>Artifactory auto generated POM</description>
</project>
Does anyone else know what else I need to include?