Hurence / opc-simple

OPC made simple
Apache License 2.0
17 stars 9 forks source link

can not find the dependency as follows? #4

Closed skyxh closed 2 years ago

skyxh commented 3 years ago
com.github.Hurence opc-simple 3.0.0-rc1
MiniPlayer commented 3 years ago

Hi @skyxh , I just tested on my laptop with a new fresh project with this pom below (opc-simple was not in my cache) and this worked just fine.

<?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>org.example</groupId>
    <artifactId>test-opc-simple</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.Hurence</groupId>
            <artifactId>opc-simple</artifactId>
            <version>3.0.0-rc1</version>
        </dependency>
    </dependencies>
</project>
skyxh commented 3 years ago

Whether the project is published to the maven repository? image

MiniPlayer commented 3 years ago

It is not, that's why we add the jitpack repository in the pom.