Hi Tom
org.sonatype.aether.graph.DependencyFilter is located inside artifact aether-api http://www.grepcode.com/snapshot/repo1.maven.org/maven2/org.sonatype.aether/aether-api/1.13.1 and is being referenced by a downstream artifact How to make this error resolve? 2 options: 1)in current pom.xml place aether-api into dependencyManagement e.g. <dependencyManagement> <dependencies> <dependency> <groupId>org.sonatype.aether</groupId> <artifactId>aether-api</artifactId> </dependency> .......... </dependencies> .......... </dependencyManagement> this will suggest "org.sonatype.aether:aether-api" to be a declared dependency by downstream artifacts 2)the "preferred way" is to find which <plugin> is making the reference to aether-api .. what i do is mvn -e -X dependency:tree > tree.lst search for 'aether-api' in tree.lst you will something like org.apache.maven.plugins:maven-site-plugin:3.1:site org.sonatype.aether:aether-api <--------------- the "current repository" artifact of org.apache.maven.plugins:maven-site-plugin:3.1:site requires the <dependency> of aether-api e.g: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <!-- optional groupId --> <artifactId>maven-site-plugin</artifactId> <version>2.1</version> <!-- specifying version ALWAYS a good idea! --> .............. <dependencies> <dependency> <groupId>org.sonatype.aether</groupId> <artifactId>aether-api</artifactId> <version>! good idea to specify version otherwise you'll get version=LATEST !</version> </dependency> .......... </dependencies> Does this help? Martin > Date: Mon, 11 Nov 2013 09:38:40 -0600 > From: [email protected] > To: [email protected] > Subject: Maven Site Plugin 3.1 > > I am trying to use the maven site plugin 3.1 and I get this error: > > Failed to execute goal > org.apache.maven.plugins:maven-site-plugin:3.1:site (default-site) on > project acc-eao: Execution default-site of goal > org.apache.maven.plugins:maven-site-plugin:3.1:site failed: A required > class was missing while executing > org.apache.maven.plugins:maven-site-plugin:3.1:site: > org.sonatype.aether.graph.DependencyFilter > > I am not trying to use sonatype at the moment. My site plugin > configuration looks like this: > > ... > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-site-plugin</artifactId> > <version>3.1</version> > <executions> > <execution> > <id>attach-descriptor</id> > <goals> > <goal>attach-descriptor</goal> > </goals> > </execution> > </executions> > </plugin> > ... > > ... > <profiles> > <profile> > <id>full</id> > <reporting> > <plugins> > <!-- Java Documentation --> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <version>${javadoc.version}</version> > </plugin> > </plugins> > </reporting> > </profile> > </profiles> > ... > > I have been having various other issues with the site plugin that I was > not having with version 2.x. One question that I have is, is it > required to have a site.xml file now? Before, i did not need to include > any site configuration to get a site generated however, that > configuration (or lack thereof) did not work with version 3.1. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
