我正在构建一个Maven项目,该项目由不使用Maven的第三方提供的库构建。他们每两周提供一次新版本。作为构建过程的一部分,我如何自动将外部罐子部署到我的存储库?
我试图尽可能自动化工作,使代码在我们的项目中可用。其中一项任务是从目录中取出一组jar并将其作为工件上传到我们的存储库。
作为构建的一部分,可以做到这一步吗?理想情况下,我想最终得到一个类似的转换项目。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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.convertor</groupId>
<artifactId>thirdpartyconvertor</artifactId>
<version>THIRD_PARTY_VERSION</version>
<packaging>jar</packaging>
<properties>
<jarLocation>${someKnownLocation}\${version}</caplinSdkVersion>
</properties>
<build>
<plugins>
<plugin>
<!--
Mystery plugin that goes through the third party jar directory and deploys each jar file as
<groupId>com.thirdparty</groupId>
<artifactId>THE_JAR_NAME</artifactId>
<version>${version}</version>
-->
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.thirdparty</groupId>
<artifactId>all-jars</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
</project>
任何想法?
是的,更自动的东西是我正在寻找。 – 2011-06-16 04:19:12