Fehler beim Lesen der Artefakt-Deskriptor für org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5
Ich bauen möchte, eine web-app mit spring boot und reagieren js (folgte dem tutorial hier).
In pom.xml ich fügte hinzu:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.5</version>
<executions>
<execution>
<id>Copy frontend production build to resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/app/build/</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Beim ausführen von mvn clean package, bekomme ich den Fehler weiter unten. Maven version ist 3.0.5.
Plugin org.apache.maven.plugins:maven-resources-plugin:3.0.5 oder eine
seine Abhängigkeiten nicht aufgelöst werden konnte: Fehler beim Lesen Artefakt
Deskriptor für
org.apache.maven.plugins:maven-resources-plugin:jar:3.0.5: Fehler
finden org.apache.maven.plugins:maven-resources-plugin:pom:3.0.5 in
http://repo.maven.apache.org/maven2 zwischengespeichert wurde in der lokalen
repository, die Auflösung wird nicht reattempted, bis das update
Intervall der zentralen verstrichen ist oder updates sind gezwungen
BEARBEITEN:
Habe ich das geändert in maven-resources-plugin-tag, die maven version 3.0.2 aber jetzt bekomme ich Fehler auf:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>Install Node and Yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>Frontend production build</id>
<phase>package</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v7.2.0</nodeVersion>
<yarnVersion>v0.18.0</yarnVersion>
<installDirectory>.mvn</installDirectory>
<workingDirectory>src/main/app</workingDirectory>
</configuration>
</plugin>
FEHLER:
[ERROR] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:1.2:Installation-Knoten-und-Garn
(Knoten installieren und Garn) auf Projekt ema: Das plugin
com.github.eirslett:frontend-maven-plugin:1.2 erfordert Maven-version
3.1.0 -> [1]
auch im tutorial verwendet die version 3.0.1, so möchten Sie vielleicht, dass die version statt.
InformationsquelleAutor georgiana_e | 2017-04-27
Du musst angemeldet sein, um einen Kommentar abzugeben.
Kurz gesagt, dein problem ist hier:
Diese version gedacht ist, zu vermitteln, die version der
maven-resources-plugin
, nicht maven selbst.Sich die neueste version hier anwendbar ist
3.0.2
.Ich auch empfehlen, dass Sie aktualisieren Sie Ihre gesamte maven-installation auf das aktuellste release 3.5.0.
Ich bekomme die Meldung: [ERROR] Failed to execute goal-com.github.eirslett:frontend-maven-plugin:1.2:Installation-Knoten-und-Garn (Knoten Installieren und Garn) auf Projekt ema: Das Plug-in com.github.eirslett:frontend-maven-plugin:1.2 erfordert Maven version 3.1.0 -> [1] bei der Umstellung auf 3.0.2
Siehe Letzte Zeile meiner Antwort...
Installiert maven-3.5.0 und arbeitete. Dank
Erste Plugin-Ausführung nicht abgedeckt durch lifecycle-Konfiguration: org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (Ausführung: Standard-testCompile, phase: test-compile)
InformationsquelleAutor Steve C
Ich Stand vor dem gleichen problem, dann habe ich den code ändern 1.5.9.RELEASE funktioniert es jetzt perfectlty
InformationsquelleAutor Vijay Maurya
Problem ist, Ihr
maven resource plugin repository
version nicht gültig ist.Ändern Sie Ihre
pom.xml
Datei in das repository.InformationsquelleAutor pippi longstocking