nyholku / purejavacomm

Pure Java implementation of JavaComm SerialPort
http://www.sparetimelabs.com/purejavacomm/index.html
BSD 3-Clause "New" or "Revised" License
362 stars 146 forks source link

sparetimelabs maven repo is empty #137

Closed timcu closed 3 years ago

timcu commented 3 years ago

https://www.sparetimelabs.com/maven2/ shows no files

Trying to package project throws an error because can't download artifact

<dependency>
  <groupId>com.sparetimelabs</groupId>
  <artifactId>purejavacomm</artifactId>
  <version>1.0.1</version>
</dependency>

<repository>
  <id>com.sparetimelabs</id>
  <url>https://www.sparetimelabs.com/maven2</url>
</repository>

Failed to read artifact descriptor for com.sparetimelabs:purejavacomm:jar:1.0.1: Could not transfer artifact com.sparetimelabs:purejavacomm:pom:1.0.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [com.sparetimelabs (http://www.sparetimelabs.com/maven2, default, releases+snapshots)]

I also tried version 1.0.3 and http instead of https

timcu commented 3 years ago

I have worked around this issue for now by cloning this repo locally and installing the jar to my local maven repo.

git clone https://github.com/nyholku/purejavacomm.git
cd purejavacomm
mvn clean install

Then, in my pom.xml, I changed the groupid to match the current groupid of this project.

    <dependency>
      <groupId>com.github.purejavacomm</groupId>
      <artifactId>purejavacomm</artifactId>
      <version>1.0.3</version>
    </dependency>
timcu commented 3 years ago

I see now that, if I am content with version 1.0.2.RELEASE I can get it from maven central with the new groupId.

    <dependency>
      <groupId>com.github.purejavacomm</groupId>
      <artifactId>purejavacomm</artifactId>
      <version>1.0.2.RELEASE</version>
    </dependency>