Re: [maven 2] "duplicate class" compilation error

2006-07-17 Thread dan tran

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



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";>
4.0.0
com.gemplus.otacs
otacs
pom
1.0.1
OTA Connection Server
OTACS SMS router software

rj
module-one
module-two
module-three



Child pom (module-one)




otacs
com.gemplus.otacs
1.0.1

4.0.0
com.gemplus.otacs
module-one
Module One
Module One
1.0.1


com.gemplus.otacs
comm
1.0.1
compile


com.gemplus.otacs
rj
1.0.1
compile




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 ; 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]
>
>





Re: [maven 2] "duplicate class" compilation error

2006-07-17 Thread Tung Nguyen
My poms:

Parents pom



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";>
4.0.0
com.gemplus.otacs
otacs
pom
1.0.1
OTA Connection Server
OTACS SMS router software

rj
module-one
module-two
module-three



Child pom (module-one)




otacs
com.gemplus.otacs
1.0.1

4.0.0
com.gemplus.otacs
module-one
Module One
Module One
1.0.1


com.gemplus.otacs
comm
1.0.1
compile


com.gemplus.otacs
rj
1.0.1
compile




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 ; 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] 








Re: [maven 2] "duplicate class" compilation error

2006-07-13 Thread dan tran

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]




Re: [maven 2] "duplicate class" compilation error

2006-07-13 Thread Tung Nguyen
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]