1

我的 java 项目在经典架构上正常工作,即冯诺依曼架构。但是,maven 无法解决对我的 Jetson AGX 的依赖,即 ARM 架构。在 ARM 架构上编译我的项目需要进行哪些更改?maven上有对应的包吗?

pom.xml:

    <dependencies>
        <dependency>
            <groupId>org.deeplearning4j</groupId>
            <artifactId>deeplearning4j-core</artifactId>
            <classifier>aarch64</classifier>
            <version>1.0.0-beta4</version>
        </dependency>
        <dependency>
            <groupId>org.nd4j</groupId>
            <artifactId>nd4j-native-platform</artifactId>
            <classifier>aarch64</classifier>
            <version>1.0.0-beta4</version>
        </dependency>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <classifier>aarch64</classifier>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <classifier>aarch64</classifier>
            <version>RELEASE</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jcuda</groupId>
            <artifactId>jcuda</artifactId>
            <classifier>aarch64</classifier>
            <version>10.1.0</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <classifier>aarch64</classifier>
            <version>RELEASE</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.esotericsoftware</groupId>
            <artifactId>kryo</artifactId>
            <classifier>aarch64</classifier>
            <version>4.0.1</version>
        </dependency>
    </dependencies>

出现以下错误:

Downloading from central: https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/maven-metadata.xml (1.5 kB at 577 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml (1.1 kB at 2.2 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/nd4j/nd4j-native-platform/1.0.0-beta4/nd4j-native-platform-1.0.0-beta4-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/deeplearning4j/deeplearning4j-core/1.0.0-beta4/deeplearning4j-core-1.0.0-beta4-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/nd4j/nd4j-native/1.0.0-beta4/nd4j-native-1.0.0-beta4-linux-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/bytedeco/openblas/0.3.5-1.5/openblas-0.3.5-1.5-linux-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/bytedeco/mkl/2019.3-1.5/mkl-2019.3-1.5-linux-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/bytedeco/mkl-dnn/0.18.1-1.5/mkl-dnn-0.18.1-1.5-linux-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/javax/mail/mail/1.4/mail-1.4-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/5.5.1/junit-jupiter-api-5.5.1-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/jcuda/jcuda/10.1.0/jcuda-10.1.0-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/jcuda/jcuda-natives/10.1.0/jcuda-natives-10.1.0-linux-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/4.13-beta-3/junit-4.13-beta-3-aarch64.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/esotericsoftware/kryo/4.0.1/kryo-4.0.1-aarch64.jar
Downloading from maven-restlet: http://maven.restlet.org/org/nd4j/nd4j-native/1.0.0-beta4/nd4j-native-1.0.0-beta4-linux-aarch64.jar
Downloading from maven-restlet: http://maven.restlet.org/org/bytedeco/openblas/0.3.5-1.5/openblas-0.3.5-1.5-linux-aarch64.jar
Downloading from maven-restlet: http://maven.restlet.org/org/bytedeco/mkl-dnn/0.18.1-1.5/mkl-dnn-0.18.1-1.5-linux-aarch64.jar
Downloading from maven-restlet: http://maven.restlet.org/org/bytedeco/mkl/2019.3-1.5/mkl-2019.3-1.5-linux-aarch64.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.554 s
[INFO] Finished at: 2019-08-15T10:07:47+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cnn-cpca-kwta: Could not resolve dependencies for project com.github.champib:cnn-cpca-kwta:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.deeplearning4j:deeplearning4j-core:jar:aarch64:1.0.0-beta4, org.nd4j:nd4j-native-platform:jar:aarch64:1.0.0-beta4, org.nd4j:nd4j-native:jar:linux-aarch64:1.0.0-beta4, org.bytedeco:openblas:jar:linux-aarch64:0.3.5-1.5, org.bytedeco:mkl:jar:linux-aarch64:2019.3-1.5, org.bytedeco:mkl-dnn:jar:linux-aarch64:0.18.1-1.5, javax.mail:mail:jar:aarch64:1.4, org.junit.jupiter:junit-jupiter-api:jar:aarch64:RELEASE, org.jcuda:jcuda:jar:aarch64:10.1.0, org.jcuda:jcuda-natives:jar:linux-aarch64:10.1.0, junit:junit:jar:aarch64:RELEASE, com.esotericsoftware:kryo:jar:aarch64:4.0.1: Could not find artifact org.deeplearning4j:deeplearning4j-core:jar:aarch64:1.0.0-beta4 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
4

1 回答 1

0

尝试完全删除本地 m2 目录并运行 mvn clean install 或尝试“mvn clean install -U”命令,这将强制更新快照依赖项。

于 2019-08-14T18:42:28.287 回答