Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6692

Maven is not building using 3.6 and jdk 1.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      Windows 10

      Description

      I have created a project using maven, but when I am building the project I am getting error.
      I am using jdk 1.7u21

      If I use jdk 1.8 it the build is working fine, its only I use jdk 1.7 then the issue is coming.

      Not able to build using maven and jdk7 but build is working using jdk 8

      below is maven structure

      <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>com.collibra.aig.profitcenter</groupId>
      <artifactId>ProfitCenterCodes</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <name>ProfitCenterCodes</name>
      <description>ProfitCenterCodes</description>
      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      <java.version>1.8</java.version>
      <log4j.version>2.3</log4j.version>
      <lombok.version>1.18.6</lombok.version>
      <apache.httpclient.version>4.5.3</apache.httpclient.version>
      <jackson.version>1.9.4</jackson.version>
      <spring.core.version>5.1.6.RELEASE</spring.core.version>
      <spring.context.version>5.1.6.RELEASE</spring.context.version>
      <jacksondatabind.version>2.9.9</jacksondatabind.version>
      <slf4j.version>1.7.12</slf4j.version>
      <spring.web>5.1.7.RELEASE</spring.web>
      </properties>
      <dependencies>
      <!-- Log4j API and Core implementation required for binding -->
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
      <version>${log4j.version}</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>${log4j.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
      <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>${slf4j.version}</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>${log4j.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
      <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>${lombok.version}</version>
      </dependency>
      <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>${apache.httpclient.version}</version>
      <optional>true</optional>
      </dependency>
      <!-- Jackson dependencies -->
      <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>${jackson.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
      <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>${jacksondatabind.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${spring.context.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>${spring.core.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.springframework/spring-web -->
      <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>${spring.web}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
      <!-- https://mvnrepository.com/artifact/org.json/json -->
      <dependency>
      <groupId>org.json</groupId>
      <artifactId>json</artifactId>
      <version>20180813</version>
      </dependency>
      </dependencies>
      <build>
      <resources>
      <resource>
      <directory>src/main/resources</directory>
      <excludes>
      <exclude>*/.properties</exclude>
      <exclude>**/log4j2.xml</exclude>
      </excludes>
      <filtering>false</filtering>
      </resource>
      </resources>
      <pluginManagement>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.3.1</version>
      <configuration>
      <source>1.7</source>
      <target>1.7</target>
      </configuration>
      </plugin>
      <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <configuration>
      <excludes>
      <exclude>*/.properties</exclude>
      </excludes>
      <archive>
      <manifest>
      <mainClass>com.test.MainClass</mainClass>
      </manifest>
      </archive>
      <descriptorRefs>
      <descriptorRef>jar-with-dependencies</descriptorRef>
      </descriptorRefs>
      </configuration>
      </plugin>
      <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <version>2.7</version>
      </plugin>
      </plugins>
      </pluginManagement>
      </build>
      </project>

      The error :

      Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-25T01:19:05+05:30)
      Maven home: C:\Users\avkhan\Documents\workspace-spring-tool-suite-4-4.2.0.RELEASE\ProfitCenterCodes\EMBEDDED
      Java version: 1.7.0_21, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.7.0_21\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"
      [DEBUG] Created new class realm maven.api
      [DEBUG] Importing foreign packages into class realm maven.api
      [DEBUG] Imported: javax.annotation.* < plexus.core
      [DEBUG] Imported: javax.annotation.security.* < plexus.core
      [DEBUG] Imported: javax.enterprise.inject.* < plexus.core
      [DEBUG] Imported: javax.enterprise.util.* < plexus.core
      [DEBUG] Imported: javax.inject.* < plexus.core
      [DEBUG] Imported: org.apache.maven.* < plexus.core
      [DEBUG] Imported: org.apache.maven.artifact < plexus.core
      [DEBUG] Imported: org.apache.maven.classrealm < plexus.core
      [DEBUG] Imported: org.apache.maven.cli < plexus.core
      [DEBUG] Imported: org.apache.maven.configuration < plexus.core
      [DEBUG] Imported: org.apache.maven.exception < plexus.core
      [DEBUG] Imported: org.apache.maven.execution < plexus.core
      [DEBUG] Imported: org.apache.maven.execution.scope < plexus.core
      [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
      [DEBUG] Imported: org.apache.maven.model < plexus.core
      [DEBUG] Imported: org.apache.maven.monitor < plexus.core
      [DEBUG] Imported: org.apache.maven.plugin < plexus.core
      [DEBUG] Imported: org.apache.maven.profiles < plexus.core
      [DEBUG] Imported: org.apache.maven.project < plexus.core
      [DEBUG] Imported: org.apache.maven.reporting < plexus.core
      [DEBUG] Imported: org.apache.maven.repository < plexus.core
      [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
      [DEBUG] Imported: org.apache.maven.settings < plexus.core
      [DEBUG] Imported: org.apache.maven.toolchain < plexus.core
      [DEBUG] Imported: org.apache.maven.usability < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
      [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
      [DEBUG] Imported: org.codehaus.classworlds < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.* < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.component < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.container < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.context < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
      [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
      [DEBUG] Imported: org.eclipse.aether.* < plexus.core
      [DEBUG] Imported: org.eclipse.aether.artifact < plexus.core
      [DEBUG] Imported: org.eclipse.aether.collection < plexus.core
      [DEBUG] Imported: org.eclipse.aether.deployment < plexus.core
      [DEBUG] Imported: org.eclipse.aether.graph < plexus.core
      [DEBUG] Imported: org.eclipse.aether.impl < plexus.core
      [DEBUG] Imported: org.eclipse.aether.installation < plexus.core
      [DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core
      [DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
      [DEBUG] Imported: org.eclipse.aether.repository < plexus.core
      [DEBUG] Imported: org.eclipse.aether.resolution < plexus.core
      [DEBUG] Imported: org.eclipse.aether.spi < plexus.core
      [DEBUG] Imported: org.eclipse.aether.transfer < plexus.core
      [DEBUG] Imported: org.eclipse.aether.version < plexus.core
      [DEBUG] Imported: org.fusesource.jansi.* < plexus.core
      [DEBUG] Imported: org.slf4j.* < plexus.core
      [DEBUG] Imported: org.slf4j.helpers.* < plexus.core
      [DEBUG] Imported: org.slf4j.spi.* < plexus.core
      [DEBUG] Populating class realm maven.api
      [INFO] Error stacktraces are turned on.
      [DEBUG] Message scheme: plain
      [DEBUG] Reading global settings from settings.xml
      [DEBUG] Reading user settings from \\pngssvmh02\avkhan\.m2\settings.xml
      [DEBUG] Reading global toolchains from toolchains.xml
      [DEBUG] Reading user toolchains from \\pngssvmh02\avkhan\.m2\toolchains.xml
      [DEBUG] Using local repository at \\pngssvmh02\avkhan\.m2\repository
      [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for \\pngssvmh02\avkhan\.m2\repository
      [INFO] Scanning for projects...
      [DEBUG] Extension realms for project com.collibra.aig.profitcenter:ProfitCenterCodes:jar:0.0.1-SNAPSHOT: (none)
      [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
      [DEBUG] === REACTOR BUILD PLAN ================================================
      [DEBUG] Project: com.collibra.aig.profitcenter:ProfitCenterCodes:jar:0.0.1-SNAPSHOT
      [DEBUG] Tasks: [clean, install]
      [DEBUG] Style: Regular
      [DEBUG] =======================================================================
      [INFO]
      [INFO] ---------< com.collibra.aig.profitcenter:ProfitCenterCodes >----------
      [INFO] Building ProfitCenterCodes 0.0.1-SNAPSHOT
      [INFO] -------------------------------[ jar ]--------------------------------
      [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
      [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
      [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
      [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
      [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
      [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
      [DEBUG] java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
      roleHint: https
      org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
      roleHint: https
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
      at org.eclipse.aether.internal.transport.wagon.PlexusWagonProvider.lookup(PlexusWagonProvider.java:65)
      at org.eclipse.aether.transport.wagon.WagonTransporter.lookupWagon(WagonTransporter.java:279)
      at org.eclipse.aether.transport.wagon.WagonTransporter.<init>(WagonTransporter.java:123)
      at org.eclipse.aether.transport.wagon.WagonTransporterFactory.newInstance(WagonTransporterFactory.java:136)
      at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:113)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:125)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:175)
      at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:116)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:494)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
      at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:181)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:286)
      at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:244)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:168)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:154)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:130)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:144)
      at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan(BuilderCommon.java:96)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:110)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: java.util.NoSuchElementException
      at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:118)
      at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:1)
      at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
      at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
      ... 43 more
      [DEBUG] Writing tracking file \\pngssvmh02\avkhan\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.pom.lastUpdated
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.728 s
      [INFO] Finished at: 2019-06-26T19:33:07+05:30
      [INFO] ------------------------------------------------------------------------
      [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Cannot access https://repo.maven.apache.org/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access https://repo.maven.apache.org/maven2 using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
      [ERROR] role: org.apache.maven.wagon.Wagon
      [ERROR] roleHint: https
      [ERROR] -> [Help 1]
      org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
      at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:181)
      at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:286)
      at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:244)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:168)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:154)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:130)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:144)
      at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan(BuilderCommon.java:96)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:110)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
      at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
      ... 26 more
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Cannot access https://repo.maven.apache.org/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
      ... 29 more
      Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Cannot access https://repo.maven.apache.org/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:509)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
      ... 32 more
      Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access https://repo.maven.apache.org/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory
      at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:177)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:494)
      ... 33 more
      Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access https://repo.maven.apache.org/maven2 using the registered transporter factories: WagonTransporterFactory
      at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:129)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:175)
      at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:116)
      ... 34 more
      Caused by: org.eclipse.aether.transfer.NoTransporterException: Cannot access https://repo.maven.apache.org/maven2 using the registered transporter factories: WagonTransporterFactory
      at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:154)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:125)
      ... 36 more
      Caused by: org.eclipse.aether.transfer.NoTransporterException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
      roleHint: https
      at org.eclipse.aether.transport.wagon.WagonTransporter.<init>(WagonTransporter.java:128)
      at org.eclipse.aether.transport.wagon.WagonTransporterFactory.newInstance(WagonTransporterFactory.java:136)
      at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:113)
      ... 37 more
      Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
      roleHint: https
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
      at org.eclipse.aether.internal.transport.wagon.PlexusWagonProvider.lookup(PlexusWagonProvider.java:65)
      at org.eclipse.aether.transport.wagon.WagonTransporter.lookupWagon(WagonTransporter.java:279)
      at org.eclipse.aether.transport.wagon.WagonTransporter.<init>(WagonTransporter.java:123)
      ... 39 more
      Caused by: java.util.NoSuchElementException
      at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:118)
      at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:1)
      at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
      at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1)
      at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
      ... 43 more
      [ERROR]
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Avishek007 Avishek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: