I can't import LWJGUI in maven
GarnicaJR opened this issue · 7 comments
Hi all,
Yesterday I tried import the library in a maven project but i am getting the message shown below
[ERROR] Failed to execute goal on project wglw: Could not resolve dependencies for project org.example:wglw:jar:1.0-SNAPSHOT: Failure to find com.github.orange451:
LWJGUI:jar:Tag in https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack.io has elapsed or
updates are forced -> [Help 1]
[ERROR]
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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>wglw</artifactId>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.orange451</groupId>
<artifactId>LWJGUI</artifactId>
<version>Tag</version>
</dependency>
</dependencies>
</project>
I have executed this command from terminal
mvn clean install
The project is empty so i dont know why i can't import the library.
I believe the jitpack info is out-dated and no longer works. LWJGUI is now a gradle project. Before, it came as a pre-packaged jar, but not anymore. Will check with @Guerra24
Version value is incorrect, it needs to be master-SNAPSHOT
or a commit hash.
Version value is incorrect, it needs to be
master-SNAPSHOT
or a commit hash.
gotcha, i will try that more later ,
thanks,
I believe the jitpack info is out-dated and no longer works. LWJGUI is now a gradle project. Before, it came as a pre-packaged jar, but not anymore. Will check with @Guerra24
so do you recommend avoid use the version of LWJGUI published in jitpack for a new project?
If you can get it to work, then it'll be fine. The code base you get from that is the same one you get from cloning directly from github via gradle.
Was your issue solved?