#dependency error in pom.xml

1 messages · Page 1 of 1 (latest)

vapid fossil
#

`<?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>Rat</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
    <maven.compiler.source>19</maven.compiler.source>
    <maven.compiler.target>19</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.MrPowerGamerBR</groupId>
    <artifactId>TemmieWebhook</artifactId>
    <version>-SNAPSHOT</version>
</dependency>

</project>`

it shows <dependency> as an error in intellij
how do i fix it?

frosty grailBOT
#

This post has been reserved for your question.

Hey @vapid fossil! 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.

vapid fossil
#

and also im using this dependency

compact snow
#

It was archived and moved elsewhere

#

try the new repository

#

and the -SNAPSHOT as a version also seems off

gray thicket
compact snow
#

stand alone?

gray thicket
#

those are typically published to another repository (Sonatype Snapshots)

compact snow
#

I thought it would be a.b.c-SNAPSHOT

gray thicket
gray thicket
compact snow
#

in this case I was confused because the -SNAPSHOT was standalone

gray thicket
#

if the version ends with -SNAPSHOT, Maven treats it as a snapshot version

compact snow
#

yeah, I was just confused at it being there without a proper version prefix

gray thicket
#

and hello is a legal version for Maven

#

not conventional but allowed

vapid fossil
vapid fossil
#

@compact snow

compact snow
#

you should be able to still if an artifact exists

#

im just saying that it might lead to inconsistencies

#

and you probably should use the new repo

vapid fossil
#

ok