• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

Πρόβλημα με την Βιβλιοθήκη Countdown

Scheduled Pinned Locked Moved Αντικειμενοστρεφής Προγραμματισμός 2
5 Posts 3 Posters 86 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    it2023025
    wrote on last edited by
    #1

    Καλησπέρα.
    Όταν γράφω στο terminal 'mvn package --' εμφανίζεται το:

    [INFO] Scanning for projects...
    [INFO] 
    [INFO] ---------------------< Ergasia2:countdown-example >---------------------
    [INFO] Building Archetype - countdown-example 1.0-SNAPSHOT
    [INFO]   from pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO] 
    [INFO] --- resources:3.3.1:resources (default-resources) @ countdown-example ---
    [INFO] Copying 0 resource from src\main\resources to target\classes
    [INFO]
    [INFO] --- compiler:3.13.0:compile (default-compile) @ countdown-example ---
    [INFO] Recompiling the module because of changed source code.
    [INFO] Compiling 14 source files with javac [debug target 21] to target\classes
    [INFO]
    [INFO] --- resources:3.3.1:testResources (default-testResources) @ countdown-example ---
    [INFO] skip non existing resourceDirectory C:\Users\adrin\IdeaProjects\Ergasia Java2.2\src\test\resources
    [INFO]
    [INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ countdown-example ---
    [INFO] Recompiling the module because of changed dependency.
    [INFO]
    [INFO] --- surefire:3.2.5:test (default-test) @ countdown-example ---
    [INFO]
    [INFO] --- jar:3.3.0:jar (default-jar) @ countdown-example ---
    [INFO] Building jar: C:\Users\adrin\IdeaProjects\Ergasia Java2.2\target\countdown-example-1.0-SNAPSHOT.jar
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  1.771 s
    [INFO] Finished at: 2025-01-09T18:54:49+02:00
    [INFO] -------------------------------------------------------------------
    

    Δεν εμφανίζεται όμως ποτέ το 'downloading from gitlab' και δεν έχω πρόσβαση στην βιβλιοθήκη.
    Το 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/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>Ergasia2</groupId>
        <artifactId>countdown-example</artifactId>
        <version>1.0-SNAPSHOT</version>
        <name>Archetype - countdown-example</name>
        <url>http://maven.apache.org</url>
    
        <properties>
            <maven.compiler.source>21</maven.compiler.source>
            <maven.compiler.target>21</maven.compiler.target>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>
    
        <dependencies>
            <dependency>
                <groupId>gr.hua.dit.oop2</groupId>
                <artifactId>countdown</artifactId>
                <version>1.0.0</version>
            </dependency>
        </dependencies>
    
        <repositories>
            <repository>
                <id>gitlab-maven</id>
                <url>https://gitlab.com/api/v4/projects/41008035/packages/maven</url>
            </repository>
        </repositories>
    
        <distributionManagement>
            <repository>
                <id>gitlab-maven</id>
                <url>https://gitlab.com/api/v4/projects/41008035/packages/maven</url>
            </repository>
    
            <snapshotRepository>
                <id>gitlab-maven</id>
                <url>https://gitlab.com/api/v4/projects/41008035/packages/maven</url>
            </snapshotRepository>
        </distributionManagement>
    
        <build>
            <plugins>
                <!-- Maven Jar Plugin -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.3.0</version>
                    <configuration>
                        <archive>
                            <manifest>
                                <mainClass>Ergasia2.Main</mainClass>
                            </manifest>
                        </archive>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </project>
    

    Επίσης είδα στο direcrtory: ~/.m2/repository/gr/hua/dit/oop2/countdown/1.0.0/ ότι υπάρχει το countdown
    5d6bf66b-3395-42d2-8b1d-cf7aeef9ec4c-image.png

    Επίσης γίνεται και αυτό:
    7c759829-1d73-4a2e-8463-a6507e614187-image.png

    1 Reply Last reply
    0
  • A Offline
    A Offline
    acharal
    wrote on last edited by
    #2

    Δεν εμφανίζει Downloading γιατί το βρίσκει στο .m2/repository/.... Αν το σβήσεις από εκεί όλο το directory gr/hua/... και ξανατρέξεις το mvn package λογικά θα γράψει downloading και θα το έχει ξαναφτιάξει στο .m2.

    Για το τελευταίο έχεις κάνει Maven -> Reload με δεξί κλικ στο project;

    1 Reply Last reply
    0
  • I Offline
    I Offline
    it2023105
    wrote on last edited by it2023105
    #3

    κανω την εργασια μαζι με το παιδι το καναμε αυτο διεγραψα τον φακελο εδειξε downloading αλλα παλι λεει cannot resolve symbol εκανα και reload το maven

    image.png

    1 Reply Last reply
    0
  • A Offline
    A Offline
    acharal
    wrote on last edited by
    #4

    Είναι gr.hua.dit.oop2.countdown.Countdown και gr.hua.dit.oop2.countdown.Notifier αντι για gr.hua.dit.oop2.Countdown και gr.hua.dit.oop2.Notifier.

    1 Reply Last reply
    0
  • I Offline
    I Offline
    it2023105
    wrote on last edited by
    #5

    Εντάξει φτιάχτηκε ευχαριστώ.

    1 Reply Last reply
    0

  • Login

Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups