new bee maven aop plugin strugling with org/jboss/aop/standa
miroconnect Dec 8, 2008 9:35 PMI am new bee trying to use maven-jbossaop-plugin for my project here is my pom , I am using java 1.6
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>lab</groupId> <artifactId>my.testing</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version> <name>my.testing</name> <url>http://maven.apache.org</url> <build> <plugins> <plugin> <groupId>org.jboss.maven.plugins</groupId> <artifactId>maven-jbossaop-plugin</artifactId> <version>1.0.0.GA</version> <executions> <execution> <id>compile</id> <configuration> <!-- if you want to include dependencies from the current module (only needed if a class inherits a class thats not defined in this module --> <includeProjectDependency>true</includeProjectDependency> <aoppaths> <aoppath>src/main/resources/jboss-aop.xml</aoppath> <!-- for a second jboss-aop.xml file <aoppath>src/main/resources/jboss-aop.xml</aoppath> --> </aoppaths> <!-- You can specify to only aopc a specific set of classes <includes> <include>POJO.class</include> </includes> --> </configuration> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>maven.jboss.org</id> <name>JBoss Maven Repository</name> <url>http://repository.jboss.com/maven2</url> </repository> </repositories> </project>
when I run maven install I get this error
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building my.testing [INFO] [INFO] Id: lab:my.testing:jar:0.0.1-SNAPSHOT [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [jbossaop:compile] [ERROR] java.lang.UnsupportedClassVersionError: org/jboss/aop/standalone/Compiler (Unsupported major.minor version 49.0) [ERROR] at java.lang.ClassLoader.defineClass0(Native Method) [ERROR] at java.lang.ClassLoader.defineClass(Unknown Source) [ERROR] at java.security.SecureClassLoader.defineClass(Unknown Source) [ERROR] at java.net.URLClassLoader.defineClass(Unknown Source) [ERROR] at java.net.URLClassLoader.access$100(Unknown Source) [ERROR] at java.net.URLClassLoader$1.run(Unknown Source) [ERROR] at java.security.AccessController.doPrivileged(Native Method) [ERROR] at java.net.URLClassLoader.findClass(Unknown Source) [ERROR] at java.lang.ClassLoader.loadClass(Unknown Source) [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [ERROR] at java.lang.ClassLoader.loadClass(Unknown Source) [ERROR] at java.lang.ClassLoader.loadClassInternal(Unknown Source) [ERROR] Exception in thread "main"
please help me resolve this big problem