I want to add this GitHub project as a Maven dependency
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.mariuszgromada</groupId>
<artifactId>MathParser.org-mXparser</artifactId>
<version>5.2.1</version>
</dependency>
</dependencies>
However, Maven can’t find the artifact in the “JitPack” repository
Could not find artifact com.github.mariuszgromada:MathParser.org-mXparser:pom:5.2.1 in jitpack.io (https://jitpack.io)
I visited jitpack.io
, pasted the URL of the project, https://github.com/mariuszgromada/MathParser.org-mXparser
, clicked Look up
, navigated to the error log, and discovered JitPack can’t build the artifact since there’s no build file in the project’s root. It’s true, it isn’t there
Build starting...
Start: Fri Feb 10 02:59:45 UTC 2023 236fe1ae2d19
Git:
v.5.2.1-0-ga10668f
commit a10668fa063d56f2d1f64bcd1c96041dcfcc8024
Author: Mariusz Gromada
Date: Wed Feb 8 20:56:50 2023 +0100
5.2.1 doc
Init SDKMan
ERROR:
No build file found. Looking for Gradle/Maven/Sbt/Lein build file in the root of the project
See the documentation at https://docs.jitpack.io
Files:
CONTRIBUTING.md
CURRENT
ISSUE_TEMPLATE.md
LICENSE.txt
README.md
Unicode Math.xlsx
cloc.txt
2023-02-10T02:59:45.964389405Z
Exit code: 1
⚠️ ERROR: No build artifacts found
The pom.xml
file is present, though. It’s in the CURRENT/java
directory
I also want to note that when I pasted https://github.com/mariuszgromada/MathParser.org-mXparser/tree/master/CURRENT/java
in the jitpack.io
GUI form, it didn’t recognize it as a Git project. My guess is JitPack’s default expectations are that the root contains both a build file and a .git
directory
How do I add that project as a Maven dependency? Can I tell JitPack where it can find the build file?
demavi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.