Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从Maven Artifactory中提取所有工件,而不仅仅是JAR工件_Java_Maven_Jar_Artifactory - Fatal编程技术网

Java 从Maven Artifactory中提取所有工件,而不仅仅是JAR工件

Java 从Maven Artifactory中提取所有工件,而不仅仅是JAR工件,java,maven,jar,artifactory,Java,Maven,Jar,Artifactory,我已向artifactory发布了一个具有以下工件和结构的库: test-1.3-20191219-1-jar-with-dependencies.jar test-1.3-20191219-1-jar-with-dependencies.jar.md5 test-1.3-20191219-1-jar-with-dependencies.jar.sha1 test-1.3-20191219-1-javadoc.jar test-1.3-20191219-1-javadoc.jar.md5 tes

我已向artifactory发布了一个具有以下工件和结构的库:

test-1.3-20191219-1-jar-with-dependencies.jar
test-1.3-20191219-1-jar-with-dependencies.jar.md5
test-1.3-20191219-1-jar-with-dependencies.jar.sha1
test-1.3-20191219-1-javadoc.jar
test-1.3-20191219-1-javadoc.jar.md5
test-1.3-20191219-1-javadoc.jar.sha1
test-1.3-20191219-1.bin
test-1.3-20191219-1.bin.md5
test-1.3-20191219-1.bin.sha1
当我从artifactory中提取时,我只在m2文件夹中看到这些jar工件:

_remote.repositories
test-1.3.jar
test-1.3.jar.sha1
我没有看到
.bin
工件被拉入

这是我的POM:

<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.github.test</groupId>
    <artifactId>test.client</artifactId>
    <version>1.3</version>

    <packaging>jar</packaging>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <jdk.version>1.7</jdk.version>

        <log4j.version>1.7.12</log4j.version>

        <junit.version>4.11</junit.version>

        <es.version>2.3.2</es.version>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.github.test</groupId>
            <artifactId>test</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>org.bytedeco</groupId>
            <artifactId>javacpp</artifactId>
            <version>1.3.1</version>
        </dependency>
    </dependencies>
       <repositories>
        <repository>
        <id>my-test-repository</id>
        <name>my-test</name>
        <url>artifactory-url</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
    </repositories>
</project>

4.0.0
com.github.test
测试客户端
1.3
罐子
UTF-8
UTF-8
1.7
1.7.12
4.11
2.3.2
org.apache.maven.plugins
maven编译器插件
真的
1.8
1.8
com.github.test
测试
1.3
org.bytedeco
javacpp
1.3.1
我的测试存储库
我的测试
人工url
假的
真的

我需要在POM中修改什么才能从artifactory中提取所有工件

没有
的依赖项隐式地具有
jar
。要下载其他工件,您需要将
bin
等条目添加到依赖项中,如


com.github.test
测试
1.3
箱子

没有
的依赖项隐式地具有
jar
。要下载其他工件,您需要将
bin
等条目添加到依赖项中,如


com.github.test
测试
1.3
箱子

谢谢!我应该在哪里添加POM?我试过了,现在我得到了一个[ERROR]编译错误。我是否还需要修改我的settings.xml?我希望您在已有条目的基础上添加了上述条目?要获取jar和bin,您需要两个独立的
条目。谢谢!我应该在哪里添加POM?我试过了,现在我得到了一个[ERROR]编译错误。我是否还需要修改我的settings.xml?我希望您在已有条目的基础上添加了上述条目?要获取jar和bin,需要两个独立的
条目。