【发布时间】:2020-08-02 23:53:34
【问题描述】:
我正在尝试使用 Jetty第一次制作 HTTP 服务器。我仍在使用POM.xml 文件并遇到mavin-shade-plugin 错误。我想我有正确的GroupId 和ArtifactId 用于所说的插件,我很确定我有正确的版本(1.8)。还有很多我不知道的东西。
插件标签是这样的:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.3.v20170317</version>
</plugin>
这个错误只是Eclipse中的一个警告,并说
Description Resource Path Location Type
Plugin could not be resolved. Ensure the plugin's groupId, artifactId and version are present.
Additional information: Plugin org.apache.maven.plugins:maven-shade-plugin:1.8 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-shade-plugin:jar:1.8 pom.xml /doecanadahttp line 19 Language Servers
,但我感觉它会导致错误。
【问题讨论】:
-
您可以编辑您的问题并包含您收到的警告/错误的输出吗?
-
@Joakim-Erdfelt 是的
-
但现在不行,因为我现在没有它
-
@JoakimErdfelt 那里