#Maven

26 messages · Page 1 of 1 (latest)

candid bay
#

Hello, I'm trying to make an app using a maven package and I have a few issues with maven. In intellij i get the error java: package .... does not exist and in eclipse it seems i can't even find the package in the maven central repo. please help

fallen saffronBOT
#

This post has been reserved for your question.

Hey @candid bay! Please use /close or the Close Post button above when your problem is solved. 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.

ruby sail
#

Is it a Maven project?

#

Which dependency are you talking about?

#

How did you add the dependency?

candid bay
ruby sail
candid bay
#

this is maven

#
<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.dani</groupId>
    <artifactId>OneLivingCutting</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <containerPackingVersion>3.0.9</containerPackingVersion>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.github.skjolber.3d-bin-container-packing</groupId>
            <artifactId>core</artifactId>
            <version>${containerPackingVersion}</version>
        </dependency>
    </dependencies>

</project>``` this is my pom
#

no matter what i try

ruby sail
#

Can you show the import?

candid bay
ruby sail
#

yeah that import looks wrong

#

try importing com.github.skjolber.packing.api.*

#

or com.github.skjolber.packing.core.*

candid bay
ruby sail
#

Did you run mvn compile?

candid bay
#

with api it says

ruby sail
#

and that you can't do new Packager()

candid bay
#

mvn compile shows like the image above

candid bay
#

well, i guess so far so good, thanks

fallen saffronBOT
# candid bay well, i guess so far so good, thanks

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.