MangoAutomation / BACnet4J

BACnet/IP stack written in Java. Forked from http://sourceforge.net/projects/bacnet4j/
GNU General Public License v3.0
183 stars 110 forks source link

Broken dependency #14

Closed egcodes closed 6 years ago

egcodes commented 6 years ago

For these libraries maven is giving 404 error.

Could not resolve dependencies for project com.serotonin:bacnet4j:jar:4.1.2: Failed to collect dependencies at lohbihler:sero-scheduler:jar:[1.0.0,2): No versions available for lohbihler:sero-scheduler:jar:[1.0.0,2) within specified range -> [Help 1]

        <dependency>
            <groupId>lohbihler</groupId>
            <artifactId>sero-scheduler</artifactId>
            <version>[1.0.0,2)</version>
        </dependency>

        <dependency>
            <groupId>lohbihler</groupId>
            <artifactId>sero-warp</artifactId>
            <version>[1.0.0,2)</version>
        </dependency>
splatch commented 6 years ago

For these libraries maven is giving 404 error.

Make sure you included in your project additional repository where these binaries are located. They are not pushed to maven central so you need to point where they are.

Chunk of config for project or your maven profile.

    <repositories>
        <repository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>ias-snapshots</id>
            <name>Infinite Automation Snapshot Repository</name>
            <url>https://maven.mangoautomation.net/repository/ias-snapshot/</url>
        </repository>
        <repository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>ias-releases</id>
            <name>Infinite Automation Release Repository</name>
            <url>https://maven.mangoautomation.net/repository/ias-release/</url>
        </repository>
    </repositories>
egcodes commented 6 years ago

Another error

Downloading: https://maven.mangoautomation.net/repository/ias-release/org/mockito/mockito-core/maven-metadata.xml
Downloading: https://maven.mangoautomation.net/repository/ias-snapshot/org/mockito/mockito-core/maven-metadata.xml

Could not transfer metadata org.mockito:mockito-core/maven-metadata.xml from/to ias-snapshots (https://maven.mangoautomation.net/repository/ias-snapshot/): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
Could not transfer metadata org.mockito:mockito-core/maven-metadata.xml from/to ias-releases (https://maven.mangoautomation.net/repository/ias-release/): sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
splatch commented 6 years ago

Ok, all clear - security certificate expired 4 days ago. Definitely something which needs to be solved on other side.

terrypacker commented 6 years ago

Yes sorry about that. We will get the server back up and running as soon as possible.

AlexMAS commented 4 years ago

Hello,

Probably we have this bug again...

> Could not resolve lohbihler:sero-scheduler:[1.0.0,2).
  Required by:
   > com.serotonin:bacnet4j:4.1.6
   > Failed to list versions for lohbihler:sero-scheduler.
      > Unable to load Maven meta-data from https://maven.mangoautomation.net/repository/ias-release/lohbihler/sero-scheduler/maven-metadata.xml.
         > Could not HEAD 'https://maven.mangoautomation.net/repository/ias-release/lohbihler/sero-scheduler/maven-metadata.xml'.
            > sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Could not resolve lohbihler:sero-warp:[1.0.0,2).
  Required by:
   > com.serotonin:bacnet4j:4.1.6
   > Failed to list versions for lohbihler:sero-warp.
      > Unable to load Maven meta-data from https://maven.mangoautomation.net/repository/ias-release/lohbihler/sero-warp/maven-metadata.xml.
         > Could not HEAD 'https://maven.mangoautomation.net/repository/ias-release/lohbihler/sero-warp/maven-metadata.xml'.
            > sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

P.s. Are these dependencies really needed at runtime? Or they are used only for testing?

terrypacker commented 4 years ago

Our maven repository went down over the weekend. As for the P.S. yes they are used at runtime, I reviewed that last week so we cannot make them test only.