Visualizzazione dei risultati da 1 a 10 su 12

Hybrid View

  1. #1
    @andbin ecco qui l'errore:

    [INFO] Generating project in Interactive mode
    [INFO] Archetype repository not defined. Using the one from [org.openjdk.nashorn:nashorn-core:15.4 -> ] found in catalog local
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 20.912 s
    [INFO] Finished at: 2022-11-10T18:57:01+01:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ilureException
    jabjoint

  2. #2
    Utente di HTML.it L'avatar di andbin
    Registrato dal
    Jan 2006
    residenza
    Italy
    Messaggi
    18,284
    Quote Originariamente inviata da jabjoint Visualizza il messaggio
    The defined artifact is not an archetype
    Non devi generare nulla in quel modo. Lo dice il messaggio: "is not an archetype".

    Devi semplicemente creare un progetto Maven e editare il pom.xml.
    Andrea, andbin.devSenior Java developerSCJP 5 (91%) • SCWCD 5 (94%)
    java.util.function Interfaces Cheat SheetJava Versions Cheat Sheet

  3. #3
    Quote Originariamente inviata da andbin Visualizza il messaggio
    Non devi generare nulla in quel modo. Lo dice il messaggio: "is not an archetype".

    Devi semplicemente creare un progetto Maven e editare il pom.xml.
    Grazie, Ok ho fatto come mi hai detto, tuttavia non riesco a creare una classe in questo progetto maven.
    jabjoint

  4. #4
    Utente di HTML.it L'avatar di andbin
    Registrato dal
    Jan 2006
    residenza
    Italy
    Messaggi
    18,284
    Quote Originariamente inviata da jabjoint Visualizza il messaggio
    Grazie, Ok ho fatto come mi hai detto, tuttavia non riesco a creare una classe in questo progetto maven.
    Scusa ma non capisco il dubbio/difficoltà.

    Il pom.xml te l'avevo scritto io qui: https://forum.html.it/forum/showthre...1#post25572980
    E un sorgente di Prova te l'avevo scritto qui: https://forum.html.it/forum/showthre...1#post25572942
    Andrea, andbin.devSenior Java developerSCJP 5 (91%) • SCWCD 5 (94%)
    java.util.function Interfaces Cheat SheetJava Versions Cheat Sheet

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.