由于Maven异常未生成耳朵

时间:2019-07-05 11:59:32

标签: ear

我试图用mvn install来生成耳朵,每次我试图生成耳朵时,它都会引发所有战争,但无法生成耳朵文件,并且总是会出现此错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.10:ge
nerate-application-xml (default-generate-application-xml) on project octopus-ear
: Execution default-generate-application-xml of goal org.apache.maven.plugins:ma
ven-ear-plugin:2.10:generate-application-xml failed: Plugin org.apache.maven.plu
gins:maven-ear-plugin:2.10 or one of its dependencies could not be resolved: Fai
led to collect dependencies at org.apache.maven.plugins:maven-ear-plugin:jar:2.1
0 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-artifact
-manager:jar:2.2.1 -> backport-util-concurrent:backport-util-concurrent:jar:3.1:
 Failed to read artifact descriptor for backport-util-concurrent:backport-util-c
oncurrent:jar:3.1: Could not transfer artifact backport-util-concurrent:backport
-util-concurrent:pom:3.1 from/to releases (https://repo.utzcertified.org/artifac
tory/repo): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]

完整堆栈跟踪

**

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.10:ge
nerate-application-xml (default-generate-application-xml) on project octopus-ear
: Execution default-generate-application-xml of goal org.apache.maven.plugins:ma
ven-ear-plugin:2.10:generate-application-xml failed: Plugin org.apache.maven.plu
gins:maven-ear-plugin:2.10 or one of its dependencies could not be resolved: Fai
led to collect dependencies at org.apache.maven.plugins:maven-ear-plugin:jar:2.1
0 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-artifact
-manager:jar:2.2.1 -> backport-util-concurrent:backport-util-concurrent:jar:3.1:
 Failed to read artifact descriptor for backport-util-concurrent:backport-util-c
oncurrent:jar:3.1: Could not transfer artifact backport-util-concurrent:backport
-util-concurrent:pom:3.1 from/to releases (https://repo.utzcertified.org/artifac
tory/repo): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-ear-plugin:2.10:generate-application-xml (default-
generate-application-xml) on project octopus-ear: Execution default-generate-app
lication-xml of goal org.apache.maven.plugins:maven-ear-plugin:2.10:generate-app
lication-xml failed: Plugin org.apache.maven.plugins:maven-ear-plugin:2.10 or on
e of its dependencies could not be resolved: Failed to collect dependencies at o
rg.apache.maven.plugins:maven-ear-plugin:jar:2.10 -> org.apache.maven:maven-proj
ect:jar:2.2.1 -> org.apache.maven:maven-artifact-manager:jar:2.2.1 -> backport-u
til-concurrent:backport-util-concurrent:jar:3.1
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:224)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-g
enerate-application-xml of goal org.apache.maven.plugins:maven-ear-plugin:2.10:g
enerate-application-xml failed: Plugin org.apache.maven.plugins:maven-ear-plugin
:2.10 or one of its dependencies could not be resolved: Failed to collect depend
encies at org.apache.maven.plugins:maven-ear-plugin:jar:2.10 -> org.apache.maven
:maven-project:jar:2.2.1 -> org.apache.maven:maven-artifact-manager:jar:2.2.1 ->
 backport-util-concurrent:backport-util-concurrent:jar:3.1
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:104)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
        ... 19 more
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.
maven.plugins:maven-ear-plugin:2.10 or one of its dependencies could not be reso
lved: Failed to collect dependencies at org.apache.maven.plugins:maven-ear-plugi
n:jar:2.10 -> org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven
-artifact-manager:jar:2.2.1 -> backport-util-concurrent:backport-util-concurrent
:jar:3.1
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:204)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPlug
inRealm(DefaultMavenPluginManager.java:361)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPlugi
nRealm(DefaultMavenPluginManager.java:329)
        at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(Defa
ultBuildPluginManager.java:229)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:100)
        ... 20 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed t
o collect dependencies at org.apache.maven.plugins:maven-ear-plugin:jar:2.10 ->
org.apache.maven:maven-project:jar:2.2.1 -> org.apache.maven:maven-artifact-mana
ger:jar:2.2.1 -> backport-util-concurrent:backport-util-concurrent:jar:3.1
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDe
pendencies(DefaultDependencyCollector.java:291)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDepen
dencies(DefaultRepositorySystem.java:316)
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:192)
        ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to
read artifact descriptor for backport-util-concurrent:backport-util-concurrent:j
ar:3.1
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
loadPom(DefaultArtifactDescriptorReader.java:302)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCa
chedArtifactDescriptor(DefaultDependencyCollector.java:525)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifa
ctDescriptorResult(DefaultDependencyCollector.java:509)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:409)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:363)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(D
efaultDependencyCollector.java:351)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse
(DefaultDependencyCollector.java:494)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:458)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:363)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(D
efaultDependencyCollector.java:351)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse
(DefaultDependencyCollector.java:494)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:458)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDe
pendency(DefaultDependencyCollector.java:363)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(D
efaultDependencyCollector.java:351)
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDe
pendencies(DefaultDependencyCollector.java:254)
        ... 26 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not
transfer artifact backport-util-concurrent:backport-util-concurrent:pom:3.1 from
/to releases (https://repo.utzcertified.org/artifactory/repo): Not authorized ,
ReasonPhrase:Unauthorized.
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(Defa
ultArtifactResolver.java:444)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtif
acts(DefaultArtifactResolver.java:246)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtif
act(DefaultArtifactResolver.java:223)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
loadPom(DefaultArtifactDescriptorReader.java:287)
        ... 41 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not tran
sfer artifact backport-util-concurrent:backport-util-concurrent:pom:3.1 from/to
releases (https://repo.utzcertified.org/artifactory/repo): Not authorized , Reas
onPhrase:Unauthorized.
        at org.eclipse.aether.connector.basic.ArtifactTransportListener.transfer
Failed(ArtifactTransportListener.java:43)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunne
r.run(BasicRepositoryConnector.java:355)
        at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(Runn
ableErrorForwarder.java:67)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExe
cutor.execute(BasicRepositoryConnector.java:581)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(Basic
RepositoryConnector.java:249)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownl
oads(DefaultArtifactResolver.java:520)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(Defa
ultArtifactResolver.java:421)
        ... 44 more
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Not auth
orized , ReasonPhrase:Unauthorized.
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInp
utData(AbstractHttpClientWagon.java:1022)
        at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInp
utData(AbstractHttpClientWagon.java:977)
        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:11
6)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run
(WagonTransporter.java:560)
        at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTran
sporter.java:427)
        at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTranspor
ter.java:404)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRu
nner.runTask(BasicRepositoryConnector.java:447)
        at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunne
r.run(BasicRepositoryConnector.java:350)
        ... 49 more

**

我无法弄清楚, 任何帮助表示赞赏

0 个答案:

没有答案