Hi Team,

I have a demo plugin. I have written code to fetch the transitive dependency 
for a direct dependency. 

But when i invoke the goal for this it throws error stack trace attached.
maven Command to call the task : mvn 
com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch
Could you please help me in this.
Thanks in advance.

Thanks,

Jyoti

 
<?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>com.demo</groupId>
  <artifactId>rootTransitivePlugin</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>maven-plugin</packaging>

  <name>rootTransitivePlugin Maven Plugin</name>

  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>


  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-core</artifactId>
      <version>3.6.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.plugin-tools</groupId>
      <artifactId>maven-plugin-annotations</artifactId>
      <version>3.6.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.plugin-testing</groupId>
      <artifactId>maven-plugin-testing-harness</artifactId>
      <version>3.3.0</version>
      <scope>test</scope>
    </dependency>
        <dependency>
        <groupId>com.jcabi</groupId>
        <artifactId>jcabi-aether</artifactId>
        <version>0.10</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
         <plugin>
                                  <groupId>org.apache.maven.plugins</groupId>
                                  <artifactId>maven-shade-plugin</artifactId>
                                  <version>2.3</version>
                                  <executions>
                                  <execution>
                                        <phase>install</phase>
                                        <goals>
                                                <goal>shade</goal>
                                        </goals>
                                        <configuration>
                                        <filters>
                                        <filter>
                                            <artifact>*:*</artifact>
                                            <excludes>
                                                <exclude>META-INF/*.SF</exclude>
                                                
<exclude>META-INF/*.DSA</exclude>
                                                
<exclude>META-INF/*.RSA</exclude>
                                            </excludes>
                                        </filter>
                                    </filters>
                                          <transformers>
                                  <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                                </transformer>
                                          </transformers>
                                        </configuration>
                                      </execution>
                                  </executions>
                        </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>3.6.0</version>
      </plugin>
    </plugins>
  </build>

</project>
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 
2015-04-22T17:27:37+05:30)
Maven home: D:\Backup_htmls\rootTransitivePlugin\EMBEDDED
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[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.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\jkhuntia.ORADEV\.m2\settings.xml
[DEBUG] Reading global toolchains from EMBEDDED\conf\toolchains.xml
[DEBUG] Reading user toolchains from C:\Users\jkhuntia.ORADEV\.m2\toolchains.xml
[DEBUG] Using local repository at C:\Users\jkhuntia.ORADEV\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for 
C:\Users\jkhuntia.ORADEV\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project 
com.demo:rootTransitivePlugin:maven-plugin:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging maven-plugin from 
ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.demo:rootTransitivePlugin:maven-plugin:1.0-SNAPSHOT
[DEBUG] Tasks:   [com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building rootTransitivePlugin Maven Plugin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[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] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       com.demo:rootTransitivePlugin:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central 
(https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central 
(https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch 
(default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <mavenSession>${session}</mavenSession>
  <project default-value="${project}">${project}</project>
</configuration>
[DEBUG] =======================================================================
[INFO] 
[INFO] --- rootTransitivePlugin:1.0-SNAPSHOT:touch (default-cli) @ 
rootTransitivePlugin ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=2, 
ConflictMarker.markTime=1, ConflictMarker.nodeCount=106, 
ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=1, 
ConflictIdSorter.conflictIdCount=48, ConflictIdSorter.conflictIdCycleCount=0, 
ConflictResolver.totalTime=9, ConflictResolver.conflictItemCount=94, 
DefaultDependencyCollector.collectTime=1710, 
DefaultDependencyCollector.transformTime=18}
[DEBUG] com.demo:rootTransitivePlugin:jar:1.0-SNAPSHOT:
[DEBUG]    com.jcabi:jcabi-aether:jar:0.10:compile
[DEBUG]       org.hibernate:hibernate-validator:jar:5.1.0.Alpha1:runtime
[DEBUG]          org.jboss.logging:jboss-logging:jar:3.1.3.GA:runtime
[DEBUG]          com.fasterxml:classmate:jar:0.8.0:runtime
[DEBUG]       com.jcabi:jcabi-aspects:jar:0.17.1:compile
[DEBUG]       com.jcabi:jcabi-log:jar:0.14.1:compile
[DEBUG]          org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]       org.aspectj:aspectjrt:jar:1.8.1:compile
[DEBUG]       javax.validation:validation-api:jar:1.1.0.Final:compile
[DEBUG]       org.kuali.maven.wagons:maven-s3-wagon:jar:1.1.20:compile
[DEBUG]          org.kuali.common:kuali-s3:jar:1.0.1:compile
[DEBUG]          com.amazonaws:aws-java-sdk:jar:1.4.2:compile
[DEBUG]             org.apache.httpcomponents:httpclient:jar:4.1:compile
[DEBUG]                org.apache.httpcomponents:httpcore:jar:4.1:compile
[DEBUG]             commons-codec:commons-codec:jar:1.3:compile
[DEBUG]             org.codehaus.jackson:jackson-core-asl:jar:1.8.9:compile
[DEBUG]             org.codehaus.jackson:jackson-mapper-asl:jar:1.8.9:compile
[DEBUG]          org.springframework:spring-core:jar:3.1.2.RELEASE:compile
[DEBUG]          commons-io:commons-io:jar:2.4:compile
[DEBUG]          commons-lang:commons-lang:jar:2.6:compile
[DEBUG]          org.kuali.common:kuali-threads:jar:1.0.9:compile
[DEBUG]          org.slf4j:jcl-over-slf4j:jar:1.6.4:compile
[DEBUG]       org.sonatype.aether:aether-api:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-spi:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-util:jar:1.13.1:compile
[DEBUG]       org.sonatype.aether:aether-connector-file:jar:1.13.1:compile
[DEBUG]       
org.sonatype.aether:aether-connector-asynchttpclient:jar:1.13.1:compile
[DEBUG]          com.ning:async-http-client:jar:1.6.5:compile
[DEBUG]             org.jboss.netty:netty:jar:3.2.5.Final:compile
[DEBUG]       org.sonatype.aether:aether-connector-wagon:jar:1.13.1:compile
[DEBUG]          org.codehaus.plexus:plexus-classworlds:jar:2.4:compile
[DEBUG]          org.codehaus.plexus:plexus-utils:jar:2.0.7:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-plexus:jar:2.2.3:compile
[DEBUG]             org.sonatype.sisu:sisu-inject-bean:jar:2.2.3:compile
[DEBUG]                org.sonatype.sisu:sisu-guice:jar:no_aop:3.0.3:compile
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.13.1:compile
[DEBUG]       org.apache.maven:maven-aether-provider:jar:3.0.5:compile
[DEBUG]          org.apache.maven:maven-model:jar:3.0.5:compile
[DEBUG]          org.apache.maven:maven-model-builder:jar:3.0.5:compile
[DEBUG]             org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:3.0.5:compile
[DEBUG]          
org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:2.4:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:3.0.5:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.3.2:compile
[DEBUG]       org.apache.maven.shared:maven-dependency-tree:jar:2.1:compile
[DEBUG]          org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[DEBUG] Created new class realm 
plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
[DEBUG] Importing foreign packages into class realm 
plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
[DEBUG]   Included: com.demo:rootTransitivePlugin:jar:1.0-SNAPSHOT
[DEBUG]   Included: com.jcabi:jcabi-aether:jar:0.10
[DEBUG]   Included: org.hibernate:hibernate-validator:jar:5.1.0.Alpha1
[DEBUG]   Included: org.jboss.logging:jboss-logging:jar:3.1.3.GA
[DEBUG]   Included: com.fasterxml:classmate:jar:0.8.0
[DEBUG]   Included: com.jcabi:jcabi-aspects:jar:0.17.1
[DEBUG]   Included: com.jcabi:jcabi-log:jar:0.14.1
[DEBUG]   Included: org.aspectj:aspectjrt:jar:1.8.1
[DEBUG]   Included: javax.validation:validation-api:jar:1.1.0.Final
[DEBUG]   Included: org.kuali.maven.wagons:maven-s3-wagon:jar:1.1.20
[DEBUG]   Included: org.kuali.common:kuali-s3:jar:1.0.1
[DEBUG]   Included: com.amazonaws:aws-java-sdk:jar:1.4.2
[DEBUG]   Included: org.apache.httpcomponents:httpclient:jar:4.1
[DEBUG]   Included: org.apache.httpcomponents:httpcore:jar:4.1
[DEBUG]   Included: commons-codec:commons-codec:jar:1.3
[DEBUG]   Included: org.codehaus.jackson:jackson-core-asl:jar:1.8.9
[DEBUG]   Included: org.codehaus.jackson:jackson-mapper-asl:jar:1.8.9
[DEBUG]   Included: org.springframework:spring-core:jar:3.1.2.RELEASE
[DEBUG]   Included: commons-io:commons-io:jar:2.4
[DEBUG]   Included: commons-lang:commons-lang:jar:2.6
[DEBUG]   Included: org.kuali.common:kuali-threads:jar:1.0.9
[DEBUG]   Included: org.slf4j:jcl-over-slf4j:jar:1.6.4
[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.13.1
[DEBUG]   Included: org.sonatype.aether:aether-connector-file:jar:1.13.1
[DEBUG]   Included: 
org.sonatype.aether:aether-connector-asynchttpclient:jar:1.13.1
[DEBUG]   Included: com.ning:async-http-client:jar:1.6.5
[DEBUG]   Included: org.jboss.netty:netty:jar:3.2.5.Final
[DEBUG]   Included: org.sonatype.aether:aether-connector-wagon:jar:1.13.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.7
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:2.2.3
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.0.3
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.14
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG]   Included: org.apache.commons:commons-lang3:jar:3.3.2
[DEBUG]   Included: org.apache.maven.shared:maven-dependency-tree:jar:2.1
[DEBUG]   Included: org.eclipse.aether:aether-util:jar:0.9.0.M2
[DEBUG] Configuring mojo com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch from 
plugin realm ClassRealm[plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT, 
parent: sun.misc.Launcher$AppClassLoader@55f96302]
[WARNING] Error injecting: com.demo.MyMojo
java.lang.NoClassDefFoundError: org/sonatype/aether/artifact/Artifact
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
        at java.lang.Class.getDeclaredConstructors(Class.java:2020)
        at 
com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
        at 
com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
        at 
com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:657)
        at 
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:875)
        at 
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:798)
        at 
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:281)
        at 
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:213)
        at 
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:998)
        at 
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031)
        at 
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:994)
        at 
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
        at 
org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
        at 
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
        at 
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
        at 
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at 
org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
        at 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
        at 
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
        at 
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at 
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
        at 
com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
        at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
        at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
        at 
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
        at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
        at 
org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:546)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        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.buildProject(LifecycleModuleBuilder.java:116)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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.lang.ClassNotFoundException: 
org.sonatype.aether.artifact.Artifact
        at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 55 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.538 s
[INFO] Finished at: 2019-04-16T19:14:54+05:30
[INFO] Final Memory: 8M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch 
(default-cli) on project rootTransitivePlugin: Execution default-cli of goal 
com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch failed: A required class was 
missing while executing com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch: 
org/sonatype/aether/artifact/Artifact
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/demo/rootTransitivePlugin/1.0-SNAPSHOT/rootTransitivePlugin-1.0-SNAPSHOT.jar
[ERROR] urls[1] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aether/0.10/jcabi-aether-0.10.jar
[ERROR] urls[2] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/hibernate/hibernate-validator/5.1.0.Alpha1/hibernate-validator-5.1.0.Alpha1.jar
[ERROR] urls[3] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar
[ERROR] urls[4] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/fasterxml/classmate/0.8.0/classmate-0.8.0.jar
[ERROR] urls[5] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aspects/0.17.1/jcabi-aspects-0.17.1.jar
[ERROR] urls[6] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-log/0.14.1/jcabi-log-0.14.1.jar
[ERROR] urls[7] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/aspectj/aspectjrt/1.8.1/aspectjrt-1.8.1.jar
[ERROR] urls[8] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
[ERROR] urls[9] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/maven/wagons/maven-s3-wagon/1.1.20/maven-s3-wagon-1.1.20.jar
[ERROR] urls[10] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-s3/1.0.1/kuali-s3-1.0.1.jar
[ERROR] urls[11] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/amazonaws/aws-java-sdk/1.4.2/aws-java-sdk-1.4.2.jar
[ERROR] urls[12] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar
[ERROR] urls[13] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
[ERROR] urls[14] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[15] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar
[ERROR] urls[16] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar
[ERROR] urls[17] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar
[ERROR] urls[18] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] urls[19] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[20] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-threads/1.0.9/kuali-threads-1.0.9.jar
[ERROR] urls[21] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
[ERROR] urls[22] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[23] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-file/1.13.1/aether-connector-file-1.13.1.jar
[ERROR] urls[24] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-asynchttpclient/1.13.1/aether-connector-asynchttpclient-1.13.1.jar
[ERROR] urls[25] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/ning/async-http-client/1.6.5/async-http-client-1.6.5.jar
[ERROR] urls[26] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar
[ERROR] urls[27] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar
[ERROR] urls[28] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.7/plexus-utils-2.0.7.jar
[ERROR] urls[29] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.2.3/sisu-inject-bean-2.2.3.jar
[ERROR] urls[30] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-guice/3.0.3/sisu-guice-3.0.3-no_aop.jar
[ERROR] urls[31] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[32] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[33] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
[ERROR] urls[34] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
[ERROR] urls[35] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: 
org.sonatype.aether.artifact.Artifact
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch (default-cli) on project 
rootTransitivePlugin: Execution default-cli of goal 
com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch failed: A required class was 
missing while executing com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch: 
org/sonatype/aether/artifact/Artifact
-----------------------------------------------------
realm =    plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/demo/rootTransitivePlugin/1.0-SNAPSHOT/rootTransitivePlugin-1.0-SNAPSHOT.jar
urls[1] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aether/0.10/jcabi-aether-0.10.jar
urls[2] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/hibernate/hibernate-validator/5.1.0.Alpha1/hibernate-validator-5.1.0.Alpha1.jar
urls[3] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar
urls[4] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/fasterxml/classmate/0.8.0/classmate-0.8.0.jar
urls[5] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aspects/0.17.1/jcabi-aspects-0.17.1.jar
urls[6] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-log/0.14.1/jcabi-log-0.14.1.jar
urls[7] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/aspectj/aspectjrt/1.8.1/aspectjrt-1.8.1.jar
urls[8] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
urls[9] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/maven/wagons/maven-s3-wagon/1.1.20/maven-s3-wagon-1.1.20.jar
urls[10] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-s3/1.0.1/kuali-s3-1.0.1.jar
urls[11] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/amazonaws/aws-java-sdk/1.4.2/aws-java-sdk-1.4.2.jar
urls[12] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar
urls[13] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
urls[14] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
urls[15] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar
urls[16] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar
urls[17] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar
urls[18] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
urls[19] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[20] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-threads/1.0.9/kuali-threads-1.0.9.jar
urls[21] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
urls[22] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
urls[23] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-file/1.13.1/aether-connector-file-1.13.1.jar
urls[24] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-asynchttpclient/1.13.1/aether-connector-asynchttpclient-1.13.1.jar
urls[25] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/ning/async-http-client/1.6.5/async-http-client-1.6.5.jar
urls[26] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar
urls[27] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar
urls[28] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.7/plexus-utils-2.0.7.jar
urls[29] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.2.3/sisu-inject-bean-2.2.3.jar
urls[30] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-guice/3.0.3/sisu-guice-3.0.3-no_aop.jar
urls[31] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
urls[32] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[33] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
urls[34] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
urls[35] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

        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.buildProject(LifecycleModuleBuilder.java:116)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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.apache.maven.plugin.PluginExecutionException: Execution 
default-cli of goal com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch failed: A 
required class was missing while executing 
com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch: 
org/sonatype/aether/artifact/Artifact
-----------------------------------------------------
realm =    plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/demo/rootTransitivePlugin/1.0-SNAPSHOT/rootTransitivePlugin-1.0-SNAPSHOT.jar
urls[1] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aether/0.10/jcabi-aether-0.10.jar
urls[2] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/hibernate/hibernate-validator/5.1.0.Alpha1/hibernate-validator-5.1.0.Alpha1.jar
urls[3] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar
urls[4] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/fasterxml/classmate/0.8.0/classmate-0.8.0.jar
urls[5] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aspects/0.17.1/jcabi-aspects-0.17.1.jar
urls[6] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-log/0.14.1/jcabi-log-0.14.1.jar
urls[7] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/aspectj/aspectjrt/1.8.1/aspectjrt-1.8.1.jar
urls[8] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
urls[9] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/maven/wagons/maven-s3-wagon/1.1.20/maven-s3-wagon-1.1.20.jar
urls[10] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-s3/1.0.1/kuali-s3-1.0.1.jar
urls[11] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/amazonaws/aws-java-sdk/1.4.2/aws-java-sdk-1.4.2.jar
urls[12] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar
urls[13] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
urls[14] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
urls[15] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar
urls[16] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar
urls[17] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar
urls[18] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
urls[19] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[20] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-threads/1.0.9/kuali-threads-1.0.9.jar
urls[21] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
urls[22] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
urls[23] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-file/1.13.1/aether-connector-file-1.13.1.jar
urls[24] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-asynchttpclient/1.13.1/aether-connector-asynchttpclient-1.13.1.jar
urls[25] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/ning/async-http-client/1.6.5/async-http-client-1.6.5.jar
urls[26] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar
urls[27] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar
urls[28] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.7/plexus-utils-2.0.7.jar
urls[29] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.2.3/sisu-inject-bean-2.2.3.jar
urls[30] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-guice/3.0.3/sisu-guice-3.0.3-no_aop.jar
urls[31] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
urls[32] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[33] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
urls[34] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
urls[35] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:168)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: org.apache.maven.plugin.PluginContainerException: A required class 
was missing while executing com.demo:rootTransitivePlugin:1.0-SNAPSHOT:touch: 
org/sonatype/aether/artifact/Artifact
-----------------------------------------------------
realm =    plugin>com.demo:rootTransitivePlugin:1.0-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/demo/rootTransitivePlugin/1.0-SNAPSHOT/rootTransitivePlugin-1.0-SNAPSHOT.jar
urls[1] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aether/0.10/jcabi-aether-0.10.jar
urls[2] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/hibernate/hibernate-validator/5.1.0.Alpha1/hibernate-validator-5.1.0.Alpha1.jar
urls[3] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar
urls[4] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/fasterxml/classmate/0.8.0/classmate-0.8.0.jar
urls[5] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-aspects/0.17.1/jcabi-aspects-0.17.1.jar
urls[6] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/jcabi/jcabi-log/0.14.1/jcabi-log-0.14.1.jar
urls[7] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/aspectj/aspectjrt/1.8.1/aspectjrt-1.8.1.jar
urls[8] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
urls[9] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/maven/wagons/maven-s3-wagon/1.1.20/maven-s3-wagon-1.1.20.jar
urls[10] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-s3/1.0.1/kuali-s3-1.0.1.jar
urls[11] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/amazonaws/aws-java-sdk/1.4.2/aws-java-sdk-1.4.2.jar
urls[12] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar
urls[13] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
urls[14] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
urls[15] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar
urls[16] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar
urls[17] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar
urls[18] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
urls[19] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[20] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/kuali/common/kuali-threads/1.0.9/kuali-threads-1.0.9.jar
urls[21] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
urls[22] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
urls[23] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-file/1.13.1/aether-connector-file-1.13.1.jar
urls[24] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-asynchttpclient/1.13.1/aether-connector-asynchttpclient-1.13.1.jar
urls[25] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/com/ning/async-http-client/1.6.5/async-http-client-1.6.5.jar
urls[26] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/jboss/netty/netty/3.2.5.Final/netty-3.2.5.Final.jar
urls[27] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/aether/aether-connector-wagon/1.13.1/aether-connector-wagon-1.13.1.jar
urls[28] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.7/plexus-utils-2.0.7.jar
urls[29] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.2.3/sisu-inject-bean-2.2.3.jar
urls[30] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/sonatype/sisu/sisu-guice/3.0.3/sisu-guice-3.0.3-no_aop.jar
urls[31] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
urls[32] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[33] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
urls[34] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
urls[35] = 
file:/C:/Users/jkhuntia.ORADEV/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:166)
        ... 21 more
Caused by: java.lang.NoClassDefFoundError: org/sonatype/aether/artifact/Artifact
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
        at java.lang.Class.getDeclaredConstructors(Class.java:2020)
        at 
com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
        at 
com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99)
        at 
com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:657)
        at 
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:875)
        at 
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:798)
        at 
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:281)
        at 
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:213)
        at 
com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:998)
        at 
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031)
        at 
com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:994)
        at 
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044)
        at 
org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
        at 
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
        at 
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54)
        at 
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at 
org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
        at 
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
        at 
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
        at 
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at 
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46)
        at 
com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
        at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
        at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
        at 
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:36)
        at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
        at 
org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at 
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:546)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
        ... 21 more
Caused by: java.lang.ClassNotFoundException: 
org.sonatype.aether.artifact.Artifact
        at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 55 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/AetherClassNotFound
package com.demo;

import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.sonatype.aether.artifact.Artifact;
import org.sonatype.aether.util.artifact.DefaultArtifact;
import org.sonatype.aether.util.artifact.JavaScopes;
import com.jcabi.aether.Aether;
import java.io.File;
import java.util.Collection;

/**
 * Goal which touches a timestamp file.
 */
@Mojo( name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES )
public class MyMojo
    extends AbstractMojo
{
    @Parameter(property = "project", defaultValue = "${project}")
        private MavenProject project;

        @Parameter(property = "session")
        private MavenSession mavenSession;

    public void execute()
        throws MojoExecutionException
    {
        
                String repo = mavenSession.getLocalRepository().getBasedir();
                try {
                        Collection<Artifact> deps = new Aether(project, new 
File(repo)).resolve(
                          new DefaultArtifact("junit", "junit-dep", "", "jar", 
"4.10"),
                          JavaScopes.RUNTIME
                        );
                } catch (Exception e1) {
                        e1.printStackTrace();
                }
                
        
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to