Request to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Error

huangapple 未分类评论49阅读模式
英文:

Request to http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom Error

问题

我需要帮助。

在构建项目时,在回答Maven时,项目标记了一个错误,你能帮我解决吗?

然后我会提供POM文件如下:

<?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="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <name>VirtualOffice</name>
    <groupId>FormatAdmin</groupId>
    <artifactId>VirtualOffice</artifactId>
    <modelVersion>4.0.0</modelVersion>
    <version>0.1.0</version>

    <properties>
        <vertx.version>3.5.1</vertx.version>
        <main.verticle>main.MainVerticle</main.verticle>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <!-- dependencyManagement and dependencies sections -->

    <build>
        <!-- pluginManagement and plugins sections -->
    </build>

</project>

这是我当前的POM.XML文件,您能解释一下如何解决这个问题吗?我已经研究了3天。

我正在使用NetBeans,其他文件已经准备好了,没有错误,我只需要解决构建项目时出现的这个错误。

错误日志:

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.312s
Finished at: Mon Apr 06 15:56:21 MDT 2020
Final Memory: 10M/241M
------------------------------------------------------------------------
Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
英文:

i need help.

When Building a the project marks me error when answering the maven, could you help me?

Then I leave the POM

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;>

&lt;name&gt;VirtualOffice&lt;/name&gt;
&lt;groupId&gt;FormatAdmin&lt;/groupId&gt;
&lt;artifactId&gt;VirtualOffice&lt;/artifactId&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;version&gt;0.1.0&lt;/version&gt;

&lt;properties&gt;
    &lt;vertx.version&gt;3.5.1&lt;/vertx.version&gt;
    &lt;main.verticle&gt;main.MainVerticle&lt;/main.verticle&gt;
    &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
&lt;/properties&gt;




&lt;dependencyManagement&gt;
    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;io.vertx&lt;/groupId&gt;
            &lt;artifactId&gt;vertx-dependencies&lt;/artifactId&gt;
            &lt;version&gt;${vertx.version}&lt;/version&gt;
            &lt;type&gt;pom&lt;/type&gt;
            &lt;scope&gt;import&lt;/scope&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;
&lt;/dependencyManagement&gt;

&lt;dependencies&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-core&lt;/artifactId&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-web&lt;/artifactId&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
        &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
        &lt;version&gt;1.2.3&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-unit&lt;/artifactId&gt;
        &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-jdbc-client&lt;/artifactId&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;mysql&lt;/groupId&gt;
        &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
        &lt;!--&lt;version&gt;5.1.6&lt;/version&gt;--&gt;
        &lt;version&gt;5.1.6&lt;/version&gt;
         &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
        &lt;artifactId&gt;jjwt&lt;/artifactId&gt;
        &lt;version&gt;0.7.0&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
        &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
        &lt;version&gt;3.5&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-web-client&lt;/artifactId&gt;
        &lt;version&gt;3.6.3&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
        &lt;artifactId&gt;guava&lt;/artifactId&gt;
        &lt;version&gt;15.0&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.newrelic.agent.java&lt;/groupId&gt;
        &lt;artifactId&gt;newrelic-java&lt;/artifactId&gt;
        &lt;version&gt;4.9.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
        &lt;type&gt;zip&lt;/type&gt;
      &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;io.vertx&lt;/groupId&gt;
        &lt;artifactId&gt;vertx-rx-java&lt;/artifactId&gt;
        &lt;version&gt;3.6.3&lt;/version&gt;
        &lt;type&gt;jar&lt;/type&gt;
    &lt;/dependency&gt;
&lt;/dependencies&gt;

&lt;build&gt;
    &lt;pluginManagement&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;version&gt;3.5.1&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;source&gt;1.8&lt;/source&gt;
                    &lt;target&gt;1.8&lt;/target&gt;
                    &lt;useIncrementalCompilation&gt;false&lt;/useIncrementalCompilation&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.8.2&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;skip&gt;true&lt;/skip&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
        &lt;/plugins&gt;
    &lt;/pluginManagement&gt;

    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.3&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;phase&gt;package&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;shade&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;transformers&gt;
                            &lt;transformer implementation=&quot;org.apache.maven.plugins.shade.resource.ManifestResourceTransformer&quot;&gt;
                                &lt;manifestEntries&gt;
                                    &lt;Main-Class&gt;io.vertx.core.Launcher&lt;/Main-Class&gt;
                                    &lt;Main-Verticle&gt;${main.verticle}&lt;/Main-Verticle&gt;
                                &lt;/manifestEntries&gt;
                            &lt;/transformer&gt;
                            &lt;transformer implementation=&quot;org.apache.maven.plugins.shade.resource.AppendingTransformer&quot;&gt;
                                &lt;resource&gt;META-INF/services/io.vertx.core.spi.VerticleFactory&lt;/resource&gt;
                            &lt;/transformer&gt;
                        &lt;/transformers&gt;
                        &lt;artifactSet&gt;
                        &lt;/artifactSet&gt;
                        &lt;outputFile&gt;${project.build.directory}/${project.artifactId}-${project.version}-fat.jar&lt;/outputFile&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;

        &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
            &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.5.0&lt;/version&gt;
            &lt;configuration&gt;
                &lt;mainClass&gt;io.vertx.core.Launcher&lt;/mainClass&gt;
                &lt;systemProperties&gt;
                    &lt;systemProperty&gt;
                        &lt;key&gt;hsqldb.reconfig_logging&lt;/key&gt;
                        &lt;value&gt;false&lt;/value&gt;
                    &lt;/systemProperty&gt;
                &lt;/systemProperties&gt;
                &lt;arguments&gt;
                    &lt;argument&gt;run&lt;/argument&gt;
                    &lt;argument&gt;${main.verticle}&lt;/argument&gt;
                &lt;/arguments&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
        
        &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
            &lt;version&gt;3.1.1&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;id&gt;unpack-newrelic&lt;/id&gt;
                    &lt;phase&gt;package&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;unpack-dependencies&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;includeGroupIds&gt;com.newrelic.agent.java&lt;/includeGroupIds&gt;
                        &lt;includeArtifactIds&gt;newrelic-java&lt;/includeArtifactIds&gt;
                        &lt;!-- you can optionally exclude files --&gt;
                        &lt;!-- &lt;excludes&gt;**/newrelic.yml&lt;/excludes&gt; --&gt;
                        &lt;overWriteReleases&gt;false&lt;/overWriteReleases&gt;
                        &lt;overWriteSnapshots&gt;false&lt;/overWriteSnapshots&gt;
                        &lt;overWriteIfNewer&gt;true&lt;/overWriteIfNewer&gt;
                        &lt;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
    &lt;/plugins&gt;
&lt;/build&gt;

</project>

That is my current POM.XML, they could explain to me how to solve this problem, I already have 3 days investigating.

I am using netbeans, I already have everything ready without errors the other files, I only need this error that I present when I build the project

**Error Log:
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom

BUILD FAILURE

Total time: 1.312s
Finished at: Mon Apr 06 15:56:21 MDT 2020
Final Memory: 10M/241M

Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]**

huangapple
  • 本文由 发表于 2020年4月7日 06:07:53
  • 转载请务必保留本文链接:https://java.coder-hub.com/61069719.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定