Hello all, I have a need to explain to a third party how to deploy a jar on my repository (Archiva). But - this jar is not generated by Maven (it contains DLLs to be loaded through JNA) - I'd like the third party to be able to declare dependencies of this jar (some zip containing some DLLs). So that by declaring a dependency on this jar I will also get it's dependencies - the goal is for me to make the third party totally independant and able to update his artifact or it's dependencies without my supervision
I came with the following pom that he may use runnning: mvn install -Drevision=1.0.0-WIN64-SNAPSHOT -DfileToDeploy=some-jar_master.jar Question is, is there anything simpler ? :) <?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.oleamedical.io</groupId> <artifactId>test-breast</artifactId> <version>${revision}</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <revision>TO-OVERRIDE-ON-COMMAND-LINE</revision> <fileToDeploy>TO-OVERRIDE-ON-COMMAND-LINE</fileToDeploy> </properties> <dependencies> <dependency> <groupId>thirdparties.intel</groupId> <artifactId>redist-cpp</artifactId> <version>2017.5.267</version> <classifier>natives-win</classifier> <scope>runtime</scope> <type>zip</type> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>package</phase> <configuration> <target> <copy file="${fileToDeploy}" tofile="${project.build.directory}/${project.build.finalName}.jar" overwrite="true" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>flatten-maven-plugin</artifactId> <version>1.0.1</version> <configuration> <updatePomFile>true</updatePomFile> </configuration> <executions> <execution> <id>flatten</id> <phase>process-resources</phase> <goals> <goal>flatten</goal> </goals> </execution> <execution> <id>flatten.clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> -- Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org