Adding ancient dependency to maven.

How does one add a local jar dependency to maven without a package/group ID?
<dependency>
<groupId>tld.domain.Project</groupId>
<artifactId>Name</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/local.jar</systemPath>
</dependency>
<dependency>
<groupId>tld.domain.Project</groupId>
<artifactId>Name</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/local.jar</systemPath>
</dependency>
Normally, this ^ is the way to do it... but the jar was built with ant, is ancient, and doesn't have an apparent groupID.🐜
11 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @Pheotis! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Pheotis
PheotisOP2y ago
(the dependency has everything directly in its src)
src
|_ file1.java
|_ file2.java
|_ file3.java
|_ '''.java
src
|_ file1.java
|_ file2.java
|_ file3.java
|_ '''.java
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Pheotis
PheotisOP2y ago
Thanks! Trying this now
JavaBot
JavaBot2y ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Pheotis
PheotisOP2y ago
No description
Pheotis
PheotisOP2y ago
It seems to have generated the pom file, but I can't get my netbeans or mvn to recognise the file as jar as the required dependency
Pheotis
PheotisOP2y ago
No description
Pheotis
PheotisOP2y ago
(I'm probably missing something obvious, but I'm quite new with building stuff, so I'm oblivious atm) found the problem
Pheotis
PheotisOP2y ago
No description
JavaBot
JavaBot2y ago
Post Closed
This post has been closed by <@928755449665298432>.
Want results from more Discord servers?
Add your server