[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] duplicate name&signature

I have recently refactored my code splitting one maven module into two.  My project was working, but now I get this error when running my tests:

I see this:
Bug 223226 - [Generics + ITD] ClassFormatError: Duplicate method name&signature in class

java.lang.ClassFormatError: Duplicate method name&signature

My code is not exactly the same as the example.

I am using 1.6.12, so could this scenario be caused by something else?

The maven structure is:
module 1 core code
module 2 aspects that weave code from module 1

could my pom.xml be causing problems?

Mike

<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";>
	<parent>
		<artifactId>EsoteraM</artifactId>
		<groupId>com.oni.esotera</groupId>
		<version>0.0.1-SNAPSHOT</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.oni.esotera.mobile</groupId>
	<artifactId>com.oni.esotera.m.dbms.core</artifactId>
	<name>EsoteraM: dbms core</name>
	<dependencies>
		<!-- <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>javacc-maven-plugin</artifactId> 
			<version>2.6</version> <type>maven-plugin</type> </dependency> -->
		<dependency>
			<groupId>com.oni.esotera.mobile</groupId>
			<artifactId>query.language</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.10</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.9.0-rc1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.oni.esotera.m</groupId>
			<artifactId>api</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>com.oni.esotera.m</groupId>
			<artifactId>schema</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>${aspectj.version}</version>
		</dependency>
	</dependencies>
	<description>the core of the dbms</description>
	<organization>
		<name>Object Nirvana, Inc.</name>
		<url>http://www.objectnirvana.com/</url>
	</organization>
	<build>
		<sourceDirectory>src/main/java</sourceDirectory>
		<!-- <aspectSourceDirectory>src/main/aspectj</aspectSourceDirectory> -->
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>aspectj-maven-plugin</artifactId>
				<version>1.4</version>
				<dependencies>
					<dependency>
						<groupId>com.oni.esotera.m</groupId>
						<artifactId>schema</artifactId>
						<version>${project.version}</version>
					</dependency>
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjrt</artifactId>
						<version>${aspectj.version}</version>
					</dependency>
					<dependency>
						<groupId>org.aspectj</groupId>
						<artifactId>aspectjtools</artifactId>
						<version>${aspectj.version}</version>
					</dependency>
				</dependencies>
				<configuration>
					<aspectLibraries>
						<!-- <aspectLibrary> <groupId>com.oni.esotera.mobile</groupId> <artifactId>com.oni.esotera.util</artifactId> 
							</aspectLibrary> -->
						<aspectLibrary>
							<groupId>com.oni.esotera.m</groupId>
							<artifactId>api</artifactId>
						</aspectLibrary>
						<aspectLibrary>
							<groupId>com.oni.esotera.m</groupId>
							<artifactId>schema</artifactId>
						</aspectLibrary>
					</aspectLibraries>
					<source>1.6</source>
					<complianceLevel>1.6</complianceLevel>
					<verbose>true</verbose>
					<showWeaveInfo>true</showWeaveInfo>
					<target>1.6</target>
					<weaveDependencies>
						<weaveDependency>
							<groupId>com.oni.esotera.m</groupId>
							<artifactId>api</artifactId>
						</weaveDependency>
						<weaveDependency>
							<groupId>com.oni.esotera.m</groupId>
							<artifactId>schema</artifactId>
						</weaveDependency>
					</weaveDependencies>
				</configuration>
				<executions>
					<execution>
						<id>compile</id>
						<configuration>
							<ajdtBuildDefFile>build.ajproperties</ajdtBuildDefFile>
						</configuration>
						<goals>
							<goal>compile</goal>
						</goals>
					</execution>
					<execution>
						<id>test-compile</id>
						<configuration>
							<ajdtBuildDefFile>test.ajproperties</ajdtBuildDefFile>
						</configuration>
						<goals>
							<goal>test-compile</goal>
						</goals>
					</execution>
				</executions>
				<!-- -->
			</plugin>
			<!-- -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<excludes>
						<exclude>**/*.*</exclude>
					</excludes>
				</configuration>
				<executions>
					<execution>
						<id>comp</id>
						<phase>compile</phase>
						<goals></goals>
						<configuration>
							<excludes>
								<exclude>**/*.*</exclude>
							</excludes>
						</configuration>
					</execution>
					<execution>
						<id>test-comp</id>
						<phase>test-compile</phase>
						<goals></goals>
						<configuration>
							<excludes>
								<exclude>**/*.*</exclude>
							</excludes>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> 
				<version>2.5.1</version> <configuration> <instrumentation> <ignores> <ignore>org.aspectj.runtime.*</ignore> 
				</ignores> <excludes> <exclude>mypackage/aspects/*.class</exclude> <exclude>**/*$AjcClosure*</exclude> 
				</excludes> </instrumentation> <check> <branchRate>85</branchRate> <lineRate>85</lineRate> 
				<haltOnFailure>true</haltOnFailure> <totalBranchRate>85</totalBranchRate> 
				<totalLineRate>85</totalLineRate> <packageLineRate>85</packageLineRate> <packageBranchRate>85</packageBranchRate> 
				<regexes> <regex> <pattern>com.example.reallyimportant.*</pattern> <branchRate>90</branchRate> 
				<lineRate>80</lineRate> </regex> <regex> <pattern>com.example.boringcode.*</pattern> 
				<branchRate>40</branchRate> <lineRate>30</lineRate> </regex> </regexes> </check> 
				</configuration> <executions> <execution> <goals> <goal>clean</goal> <goal>check</goal> 
				</goals> </execution> </executions> </plugin> -->
		</plugins>
	</build>
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.5.1</version>
			</plugin>
		</plugins>
	</reporting>
</project>