Maven - *.jars landen nicht im lokalen Repository

ellidh

Mitglied
Hallo zusammen,

ich bin ein blutiger Anfänger mit dem Maven-Plugin.
Ich benutze m2e mit eclipse Indigo unter Windows 7.

Ich habe folgendes Problem:
Ich kann ein jar bauen, leider landet es aber nicht in meinem lokalen Repository, so dass ich das nächste jar nicht mehr bauen kann, da das erstere ja fehlt.

Kennt jemand dieses Problem und weiß spontan ein Lösung? Oder könnt ihr mir vielleicht helfen, wenn ich euch mehr Infos gebe? Und wenn ja, welche bnötigt ihr?

Vielen Dank schonmal und viele Grüße,
ellidh
 

ellidh

Mitglied
Als Goal habe ich package genommen. War das falsch?

Ja, versuche gerade mich einzuarbeiten. Aber zu diesem Fehler habe ich noch nicht die passende Lösung gefunden. :(
 

ellidh

Mitglied
Danke!

Mit Goal install hat es funktioniert.
Kannst du mir genau erklären, warum install und nicht package? Oder kannst du mir eine gute Quelle nennen, wo sowas gut erklärt ist. Wurschtel mich gerade noch durch verschiedenste Quellen durch, sie ich so bei google finde.
 
M

maki

Gast
"goal" war nicht der 100% passende Begriff von mir, eigentlich ist [c]install[/c] eine Phase...
Introduction to the Build Lifecycle

Einfach gesagt, [c]package[/c] stellt nur die Artifakte zusammen (zB. jars aus .class Dateien etc.), [c]install[/c] sorgt dafür dass die Artifakte ins lokale Repo kopiert werden, [c]release[/c] kopiert diese Artifakte in ein nicht-lokales Repo.

Für ein Multimodulprojekt sollte man immer [c]install[/c] aufrufen, sonst wundert man sich u.U. sehr, hattest noch "Glück" dass du einen Fehler bekommen hast, andere wundern sich warum ihre Änderungen in anderen Modulen nicht "durchschlagen" weil der letzte install schon länger her ist und dazwischen nur mit package gearbeitet wurde..

Das m2e für Eclipse kann auch die Projekte im Workspace ohne [c]install[/c] nutzen (Workspace resolution o.ä.) .

Die Original Doku ist bei Maven pflicht (wie bei allem eigentlich, falls vorhanden)
Users Centre

dann gibt es noch einige Bücher /Artikel zu Maven, manche davon sind veraltet da Maven 3 aktuell ist
External Resources on Maven

das hier ist imho recht aktuell
Maven: The Complete Reference / Documentation Sonatype.com
 
Zuletzt bearbeitet von einem Moderator:
Ähnliche Java Themen
  Titel Forum Antworten Datum
F Maven plugin für Eclipse: tld dependencies in jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
doopexxx Add an maven project to an existing maven project IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 23
MiMa Netbeans zu IntelliJ mit Maven konvertieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
MiMa IntelliJ Maven Projekt erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
Y IDEA IntelliJ Warum findet IntelliJ die maven property nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Robertop Maven Warnung "'version' contains an expression but should be a constant" in Eclipse verstecken IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
O NetBeans Java Projekt OHNE Maven erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
O NetBeans Java Projekt OHNE Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
P Maven für Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
mrBrown IntelliJ 2020.1 - Maven Projekte nicht ausführbar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
A Wie sind Multi-POM Maven Projects zu verwalten/releasen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
J Maven in Gradle builden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
D Jenkins/Gradle maven-publish Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
U Ich kann ein Plugin anhand von Maven nicht builden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
C Ändern der Hauptklasse und dependencys in maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
C maven startet jetty, netbeans "run" startet glassfish IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J Eclipse Nach Maven Einstellung -> Ordner /target im Arbeitsverzeichnis IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
D Gradle - DSL und Repositories von Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
K Eclipse Seltsames Maven Compiler Verhalten mit OpenCV IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K Netbeans + Maven: default pom Inhalt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Maven + GWT (+ Eclipse)? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
E Maven-Installation für Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse import eines maven projects "missing artifact" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
D Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N Maven dependencies Informationen finden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
F [Maven] cannot find plugins IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
J Eclipse Eclipse mit Maven mit Abhängigkeiten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
L Eclipse Eclipse - Projekte "mischen" Dynamisches Web Projekt + Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Maven - lokales Repository erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
D NetBeans Maven Projekt in Netbeans => WEKA wirft (java.lang.OutOfMemoryError: Java heap space) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
thet1983 Eclipse Eclipse - Maven - Wildfly - archetype:generate IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
G eclipse und Webprojekte mit Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
D Eclipse Eclipse deployment assmebly + Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
P Eclipse Maven Support IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
A IDEA IntelliJ IntelliJ Maven oder Webprojekt, kann keine normalen Java Klassen erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Tarrew Problem mit Maven und der Erkennung von generierten Antlr Files. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
M [Maven] Depencies mit in jar übernehmen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N Eclipse Maven , Javafx , SceneBuilder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Maven realer Classpath? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
R Eclipse Maven package mit dependencies IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
I Maven, Eclipse, building workspace loop IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
B Versionierung mit Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
DEvent [maven] property als parameter IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
S Eclipse Java + Shellscript mit Maven und Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
M Eclipse Maven/Eclipse ClassLoader Reihenfolge IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
Gregorrr Eclipse Best Practice: Multi-Projekt mit Eclipse + EGit (Git) + m2e (Maven) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
B Maven - Angeben welche Klassen/Packes für build benutzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J Eclipse Checkout/Import Maven Projekt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
C Eclipse Verständnisfrage Eclipse+Maven+Resources IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
C Eclipse Verständnisfrage Eclipse+Maven+Dependencies IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
H maven-javadoc-plugin: package does not exist IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
P Eclipse Maven integration IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Maven: Reporting zu einer bestimmten Revision IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
S Maven und Native-Libs IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
T Eclipse Maven-Plugin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S Maven: Abhängigkeiten + target in [b]eine[/b] Jar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G NetBeans Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
MQue Maven und SVN IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
S Maven / Javadoc als jar deployen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
Kessi Maven assembly vergisst eigene Klassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
D Einzelnen Unit-Test mit Maven ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J Ant-Tasks in Maven einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
M MyLyn und Maven installieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
D Maven vs. Ivy IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
J Konfigurationsdateien und Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Maven 2, XDoclet ejbdoclet und Java 1.5 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
E Maven mit WSDL2Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
Y Maven und JUnit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Y Maven und myEclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
F GIT Projekt importiert ... wie kann das Ding in Jars gewndelt werden ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
G Eclipse Automatisch referenced jars importieren wenn Project im build path IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J charset eines jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Kr0e Eclipse Tool für Jars - Automatisch Dependencies einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
E Eclipse External Jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Eclipse JARs mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
reibi Subversive - libs, jars, conf IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
H Netbeans - jar erstellen, externe Jars mit einbinden/ausgeben IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
reibi Eclipse Suche : in *.properties/gebunden in jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P External JARs bei Subversion IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
K Eclipse - lib ordner mit jars drin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B Eclipse - Jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
R Netbeans - externe Jars miteinbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
G Eclipse-Projekt, inkl. externe jars und Bilderordner zu jar? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
L Eclipse: Externe JARs in eigenes JAR einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
M Mal wieder Probleme beim Erstellen eines JARs mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
vogella ant findet classpath jars nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G Externe JARs einbinden! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G NetBeans 4.1 - externe jars in Projekt-jar einbinden ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S Exportieren von external jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
R Ant - Einbindung von externen Jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
R Newbie : Eclipse 3.01 Zwei ext.JArs in eigene einbinden ! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M Eclipse und JavaDoc von eigenen JARs etc. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4

Ähnliche Java Themen

Neue Themen


Oben