It must have duplicate class somewhere in your source tree
google "duplicate class: maven" I found some discusssion similar to your problem -D On 7/17/06, Tung Nguyen <[EMAIL PROTECTED]> wrote:
My poms: Parents pom <?xml version="1.0" encoding="UTF-8"?> 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>com.gemplus.otacs</groupId> <artifactId>otacs</artifactId> <packaging>pom</packaging> <version>1.0.1</version> <name>OTA Connection Server</name> <description>OTACS SMS router software</description> <modules> <module>rj</module> <module>module-one</module> <module>module-two</module> <module>module-three</module> </modules> </project> Child pom (module-one) <?xml version="1.0"?> <project> <parent> <artifactId>otacs</artifactId> <groupId>com.gemplus.otacs</groupId> <version>1.0.1</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.gemplus.otacs</groupId> <artifactId>module-one</artifactId> <name>Module One</name> <description>Module One</description> <version>1.0.1</version> <dependencies> <dependency> <groupId>com.gemplus.otacs</groupId> <artifactId>comm</artifactId> <version>1.0.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.gemplus.otacs</groupId> <artifactId>rj</artifactId> <version>1.0.1</version> <scope>compile</scope> </dependency> </dependencies> </project> I don't see anything strange here in my poms. Those errors occur when M2 compile the module-one. ----- Original Message ---- From: dan tran <[EMAIL PROTECTED]> To: Maven Users List <users@maven.apache.org>; Tung Nguyen < [EMAIL PROTECTED]> Sent: Thursday, July 13, 2006 6:35:33 PM Subject: Re: [maven 2] "duplicate class" compilation error show your pom On 7/13/06, Tung Nguyen <[EMAIL PROTECTED]> wrote: > > Anyone could help me please, > I've just begun with maven and get stuck. > > ----- Original Message ---- > From: Tung Nguyen <[EMAIL PROTECTED]> > To: users@maven.apache.org > Sent: Thursday, July 13, 2006 10:33:51 AM > Subject: [maven 2] "duplicate class" compilation error > > Hi all, > I have another problem with M2: the compilation. > I once used the exec plug-in to compile my project 'cause it needed to > be compiled with java 1.2. Now I can build my project with java 1.4. But > to my surprise, in compiling a package, m2 told me that there're errors > meanwhile when I do the compilation by the CLI, java did it well. > > Compiling 140 source files to > D:\O\perso\temp\maven\otacs\hswe\target\classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > > D:\O\perso\temp\maven\otacs\hswe\src\main\java\com\gemplus\hsweCustom\TelefonicaMexico\AbsSS7AccessPoint.java:[18,0] > dup > licate class: com.gemplus.hsweCustom.AbsSS7AccessPoint > > D:\O\perso\temp\maven\otacs\hswe\src\main\java\com\gemplus\hsweCustom\prefixes\snmpCustom.java:[14,13] > duplicate class: > com.gemplus.hsweCustom.snmpCustom > ......................................................... > > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.BuildFailureException: Compilation failure > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals ( > DefaultLifecycleExecutor.java:555) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:47 > 5) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal ( > DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.jav > a:306) > > ......................................................... > > Anyone can please tell me where I was wrong ??? > > Best regards. > > Tung Nguyen > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >