Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro no arquivo casadocodigo/pom.xml

<?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="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.casadocodigo</groupId>
  <artifactId>casadocodigo</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>war</packaging> ----> Esta dando erro nesta linha
  <build>
    <finalName>casadocodigo</finalName>
  </build>
  <properties>
    <failOnMissingWebXml>false</failOnMissingWebXml>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
</project>

Erro abaixo
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out

Multiple annotations found at this line:
    - Execution default-testResources of goal org.apache.maven.plugins:maven-resources-
     plugin:2.6:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 
     or one of its dependencies could not be resolved: The following artifacts could not be 
     resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, org.apache.maven:maven-project:jar:
     2.0.6, org.apache.maven:maven-profile:jar:2.0.6, org.apache.maven:maven-artifact-
     manager:jar:2.0.6, org.apache.maven:maven-plugin-registry:jar:2.0.6, 
     org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-parameter-
     documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out 
     (org.apache.maven.plugins:maven-resources-plugin:2.6:testResources:default-
     testResources:process-test-resources) org.apache.maven.plugin.PluginExecutionException: 
     Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:
     2.6:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one 
     of its dependencies could not be resolved: The following artifacts could not be resolved: 
     org.apache.maven:maven-plugin-api:jar:2.0.6, org.apache.maven:maven-project:jar:2.0.6, 
     org.apache.maven:maven-profile:jar:2.0.6, org.apache.maven:maven-artifact-manager:jar:
     2.0.6, org.apache.maven:maven-plugin-registry:jar:2.0.6, org.apache.maven:maven-core:jar:
     2.0.6, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6, 
     org.apache.maven:maven-repository-metadata:jar:2.0.6, org.apache.maven:maven-error-
     diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-descriptor:jar:2.0.6, 
     classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:2.0.6, 
     org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
     106) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331) at 
     org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362) at 
     org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     112) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360) at 
     org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:
     52) at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:
     137) at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172) 
     at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1) at 
     org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:
     115) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     112) at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod
     $1.call(MavenBuilder.java:105) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     151) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     99) at org.eclipse.m2e.core.internal.builder.MavenBuilder
     $BuildMethod.execute(MavenBuilder.java:86) at 
     org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200) at 
     org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) at 
     org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at 
     org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at 
     org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at 
     org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at 
     org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at 
     org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at 
     org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at 
     org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: 
     org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-
     resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts 
     could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, 
     org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:2.0.6, 
     org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-
     registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-
     parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal(DefaultPluginDependenciesResolver.java:
     218) at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:
     149) at 
     org.eclipse.m2e.core.internal.project.registry.EclipsePluginDependenciesResolver.resolve(EclipsePluginDependenciesResolver.java:
     59) at 
     org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:
     400) at 
     org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:
     372) at 
     org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:
     231) at 
     org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
     102) ... 31 more Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The 
     following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, 
     org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:2.0.6, 
     org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-
     registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-
     parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
     444) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
     246) at 
     org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:
     367) at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal(DefaultPluginDependenciesResolver.java:
     210) ... 37 more Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Failure to 
     transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from https://repo.maven.apache.org/
     maven2 was cached in the local repository, resolution will not be reattempted until the 
     update interval of central has elapsed or updates are forced. Original error: Could not transfer 
     artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central (https://
     repo.maven.apache.org/maven2): connect timed out at 
     org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:
     238) at 
     org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:
     206) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:
     585) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:
     503) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
     421) ... 40 more
    - Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:
     2.6:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of 
     its dependencies could not be resolved: The following artifacts could not be resolved: 
     org.apache.maven:maven-plugin-api:jar:2.0.6, org.apache.maven:maven-project:jar:2.0.6, 
     org.apache.maven:maven-profile:jar:2.0.6, org.apache.maven:maven-artifact-manager:jar:
     2.0.6, org.apache.maven:maven-plugin-registry:jar:2.0.6, org.apache.maven:maven-core:jar:
     2.0.6, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6, 
     org.apache.maven:maven-repository-metadata:jar:2.0.6, org.apache.maven:maven-error-
     diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-descriptor:jar:2.0.6, 
     classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:2.0.6, 
     org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out 
     (org.apache.maven.plugins:maven-resources-plugin:2.6:resources:default-resources:process-
     resources) org.apache.maven.plugin.PluginExecutionException: Execution default-resources 
     of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Plugin 
     org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not 
     be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-
     api:jar:2.0.6, org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:
     2.0.6, org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-
     registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-
     parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
     106) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331) at 
     org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362) at 
     org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     112) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360) at 
     org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:
     52) at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:
     137) at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172) 
     at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1) at 
     org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:
     115) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     112) at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod
     $1.call(MavenBuilder.java:105) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:
     176) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     151) at 
     org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:
     99) at org.eclipse.m2e.core.internal.builder.MavenBuilder
     $BuildMethod.execute(MavenBuilder.java:86) at 
     org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200) at 
     org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) at 
     org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at 
     org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at 
     org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at 
     org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at 
     org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at 
     org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at 
     org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at 
     org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at 
     org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: 
     org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-
     resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts 
     could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, 
     org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:2.0.6, 
     org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-
     registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-
     parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal(DefaultPluginDependenciesResolver.java:
     218) at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:
     149) at 
     org.eclipse.m2e.core.internal.project.registry.EclipsePluginDependenciesResolver.resolve(EclipsePluginDependenciesResolver.java:
     59) at 
     org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:
     400) at 
     org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:
     372) at 
     org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:
     231) at 
     org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
     102) ... 31 more Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The 
     following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.6, 
     org.apache.maven:maven-project:jar:2.0.6, org.apache.maven:maven-profile:jar:2.0.6, 
     org.apache.maven:maven-artifact-manager:jar:2.0.6, org.apache.maven:maven-plugin-
     registry:jar:2.0.6, org.apache.maven:maven-core:jar:2.0.6, org.apache.maven:maven-plugin-
     parameter-documenter:jar:2.0.6, org.apache.maven:maven-repository-metadata:jar:2.0.6, 
     org.apache.maven:maven-error-diagnostics:jar:2.0.6, org.apache.maven:maven-plugin-
     descriptor:jar:2.0.6, classworlds:classworlds:jar:1.1, org.apache.maven:maven-artifact:jar:
     2.0.6, org.apache.maven:maven-settings:jar:2.0.6, org.apache.maven:maven-model:jar:2.0.6, 
     org.apache.maven:maven-monitor:jar:2.0.6, org.codehaus.plexus:plexus-container-default:jar:
     1.0-alpha-9-stable-1: Failure to transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from 
     https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not 
     be reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central 
     (https://repo.maven.apache.org/maven2): connect timed out at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
     444) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
     246) at 
     org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:
     367) at 
     org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal(DefaultPluginDependenciesResolver.java:
     210) ... 37 more Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Failure to 
     transfer org.apache.maven:maven-plugin-api:jar:2.0.6 from https://repo.maven.apache.org/
     maven2 was cached in the local repository, resolution will not be reattempted until the 
     update interval of central has elapsed or updates are forced. Original error: Could not transfer 
     artifact org.apache.maven:maven-plugin-api:jar:2.0.6 from/to central (https://
     repo.maven.apache.org/maven2): connect timed out at 
     org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:
     238) at 
     org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:
     206) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:
     585) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:
     503) at 
     org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:
     421) ... 40 more
    - Plugin execution not covered by lifecycle configuration: 
     org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-
     testCompile, phase: test-compile)
    - CoreException: Could not calculate build plan: Plugin 
     org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be 
     resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-
     plugin:jar:3.1: ArtifactResolutionException: Failure to transfer 
     org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from https://
     repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 
     reattempted until the update interval of central has elapsed or updates are forced. Original 
     error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 
     from/to central (https://repo.maven.apache.org/maven2): connect timed out
    - Plugin execution not covered by lifecycle configuration: 
     org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, 
     phase: compile)
2 respostas

Opa, tudo bem? Deu problema na hora de resolver uma dependência e ele manteve essa informação cacheada. Minha sugestão é que você apague a pasta .m2 do seu usuário e tente rodar o comando de novo.

solução!

Obrigado ai meu amigo. resolvido