包含多个罐子的Maven工件

时间:2018-04-04 13:17:14

标签: java maven gradle artifactory

我们最近已将常春藤迁移到maven存储库,但我遇到了一些问题,其中包含一些工件,每个工件包含多个jar。例如,工件位于 org.apache.xml:xalan-j:2.7.1 ,并且在该位置有以下我需要访问的罐子

  • serializer.jar
  • xalan.jar
  • xsltc.jar

maven可以处理这种情况,如果是这样,我们将非常感谢您的指导。

---的代码 ---

<?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>org.apache.xml</groupId>
<artifactId>xalan-j</artifactId>
<packaging>pom</packaging>
<version>2.7.1</version>
<url>http://xml.apache.org/xalan-j/</url>
<dependencies>
    <dependency>
        <groupId>org.apache.xerces</groupId>
        <artifactId>xerces</artifactId>
        <version>[2.7,)</version>
    </dependency>
    <dependency>
        <groupId>org.apache.xml</groupId>
        <artifactId>xml-commons-external</artifactId>
        <version>[1.3,)</version>
    </dependency>
    <dependency>
        <groupId>org.apache.xml</groupId>
        <artifactId>xalan-j</artifactId>
        <version>2.7.1</version>
        <classifier>xalan</classifier>
    </dependency>
    <dependency>
        <groupId>org.apache.xml</groupId>
        <artifactId>xalan-j</artifactId>
        <version>2.7.1</version>
        <classifier>xsltc</classifier>
    </dependency>
    <dependency>
        <groupId>org.apache.xml</groupId>
        <artifactId>xalan-j</artifactId>
        <version>2.7.1</version>
        <classifier>serializer</classifier>
    </dependency>
</dependencies>

0 个答案:

没有答案