Spring Boot 未找到依赖项“org.openpnp:opencv-face:4.5.4-1”

0g0grzrc  于 2023-02-12  发布在  Spring
关注(0)|答案(1)|浏览(431)

我刚开始穿春 Boot 。我想

<dependency>
            <groupId>org.openpnp</groupId>
            <artifactId>opencv-face</artifactId>
            <version>4.5.4-1</version>
            <classifier>windows-x86_64</classifier>
        </dependency>

但是我得到这个错误:-依赖'org. opennp:opencv-face:4.5.4-1'没有找到
下面是我的pom.xml代码-

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.0.2</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.square</groupId>
    <artifactId>square</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>square</name>
    <description>square</description>
    <properties>
        <java.version>17</java.version>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
    </properties>
    <repositories>
        <repository>
            <id>openpnp-releases</id>
            <url>https://repo.openpnp.org/release/</url>
        </repository>

        <repository>
            <id>opencv-releases</id>
            <url>https://repo.opencv.org/maven2/</url>
        </repository>
    </repositories>
    <dependencies>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.openpnp</groupId>
            <artifactId>opencv</artifactId>
            <version>3.4.2-1</version>
        </dependency>

        <dependency>
            <groupId>org.openpnp</groupId>
            <artifactId>opencv</artifactId>
            <version>4.5.3-1</version>
            <classifier>windows-x86_64</classifier>
        </dependency>

        <dependency>
            <groupId>org.openpnp</groupId>
            <artifactId>opencv-face</artifactId>
            <version>4.5.4-1</version>
            <classifier>windows-x86_64</classifier>
        </dependency>

        <dependency>
            <groupId>com.mysql</groupId>
            <artifactId>mysql-connector-j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.firebase</groupId>
            <artifactId>firebase-admin</artifactId>
            <version>8.0.1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>

我不知道pom.xml文件中的问题在哪里。我已经尝试了所有可能的方法来解决这个问题,但我无法完成它。请有人帮助我。

xmjla07d

xmjla07d1#

艺术品不在玛文中心?据我所知,玛文的回答是正确的。
https://search.maven.org/search?q=org.openpnp
https://mvnrepository.com/search?q=org.openpnp
根据我的DNS解析器,DNS名称repo.openpnp.org不存在,所以我在maven central中查找,甚至无法看到存储库,这个问题真的有效吗?
您尝试使用的依赖项是否还存在?

相关问题