Re: SureFire (and surefire-reports) plugins

2006-08-03 Thread Tung Nguyen
AFAIK and as you said, JUnit is designed to complete a test suite even a test 
case is failed. So I think that your request would concern JUnit. Maybe all you 
need is find a way to tell your test suite fails when the first test case fails.

The surefire plug-in is just a classloader to run test and I think the 
 property aims only to tell M2 continue its tasks after the 
test phase and sure fire report can generate report. 

Personally, I'm using M2.0.4 and integrate the sure fire report in the 
generated web site so I need  to be true to have the report 
of failed tests. Moreover, all my tests are executed even some of them fail.

- Original Message 
From: Dennis Klavans <[EMAIL PROTECTED]>
To: users@maven.apache.org; [EMAIL PROTECTED]
Sent: Thursday, August 3, 2006 2:06:45 PM
Subject: RE: SureFire (and surefire-reports) plugins


This is odd. I just posted a request for the exact opposite to happen. I can't 
get the thing to stop on the first failure. First, are you running mvn 
surefire-report:report? If so then perhaps we could help each other by 
comparing environments. What version of maven are you using? I am on the 
latest: 2.04.

Also, the property you refered to is actually . Just wanted 
to confirm that. Still, I did not have that set and mine would not stop. Having 
looked at the surefire source, I cannot see what would make it stop. Perhaps if 
the tests were themselves defined in a suite within the testing framework, that 
suite would fail at the first test? My tests are all individually defined and 
surefire is the controller running them. I am using the JUnit framework and 
JUnit seems to trap the exception from an invididual test so that is why 
surefire keeps going. 




 --- On Thu 08/03, Jon SlinnHawkins < [EMAIL PROTECTED] > wrote:
From: Jon SlinnHawkins [mailto: [EMAIL PROTECTED]
To: users@maven.apache.org
Date: Thu, 3 Aug 2006 09:18:31 +0100
Subject: SureFire (and surefire-reports) plugins

Hi All,Is there any way of stop a failed surefire unit from immediatley 
failing a maven build, and allowing it to go on to create the report using 
the surefire-report plugin.  Then, after the reports hasve been created 
fail the build.I want to see reports of failed testsIs 
this possible... Can you switch off halt-on-failure for the Surefire 
plugin, and switch it on for the report plugin ?ThanksJon 
-To
 unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Re: SureFire (and surefire-reports) plugins

2006-08-03 Thread Tung Nguyen
You can configure the surefire plugin like this


org.apache.maven.plugins
maven-surefire-plugin

true
 
 

HTH

Tung Nguyen

- Original Message 
From: Jon SlinnHawkins <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Thursday, August 3, 2006 10:18:31 AM
Subject: SureFire (and surefire-reports) plugins

Hi All,

Is there any way of stop a failed surefire unit from immediatley failing a 
maven build, and allowing it to go on to create the report using the 
surefire-report plugin.  Then, after the reports hasve been created fail the 
build.

I want to see reports of failed tests

Is this possible... Can you switch off halt-on-failure for the Surefire 
plugin, and switch it on for the report plugin ?

Thanks

Jon 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Re: Super Pom

2006-07-27 Thread Tung Nguyen
Maybe this link response to your question:

http://maven.apache.org/ref/current/maven-model/maven.html

HTH

Tung Nguyen

- Original Message 
From: Lakshman Srilakshmanan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: users@maven.apache.org
Sent: Thursday, July 27, 2006 2:03:58 AM
Subject: RE: Super Pom

Hi Emmanuel,

Thanks for your reply. 

The http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html 
describes how to include a customised checkstyle within a POM.

I need to know the location of the super POM itself, if one exists.

Thanks
Lakshman


> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 26 July 2006 5:28 PM
> To: Maven Users List
> Subject: Re: Super Pom
> 
> http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html
> 
> Lakshman Srilakshmanan a écrit :
> > Hi All,
> >
> > I have used maven 1.x for a couple of years now and am in the process of
> > migrating to maven 2.x
> >
> > I need to set some configuration globally (eg customised checkstyle). I
> > find the appropriate place would be to include it in the super pom.
> >
> > Unfortunately I don't seem to be able to find it. Could you please
> > direct me to where it is located.
> >
> > Thanks
> > Lakshman
> >
> >
> > -
> > 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]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: [m2]How to activate a profile for the "test" phase in maven life cycle

2006-07-19 Thread Tung Nguyen
That was an error. Sorry for an urgly question.
Sincerely.

- Original Message 
From: Tung Nguyen <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Wednesday, July 19, 2006 5:44:31 PM
Subject: [m2]How to activate a profile for the "test" phase in maven life cycle

Hi all,

My question is because I want to inject some more dependencies when my tests 
are executed. I can't add them directly because of cyclic dependency

Illus:

B depend A
C depend A
A is tested with B.jar et C.jar

Can anyone show me ?

Thanks & Regards




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



[m2]How to activate a profile for the "test" phase in maven life cycle

2006-07-19 Thread Tung Nguyen
Hi all,

My question is because I want to inject some more dependencies when my tests 
are executed. I can't add them directly because of cyclic dependency

Illus:

B depend A
C depend A
A is tested with B.jar et C.jar

Can anyone show me ?

Thanks & Regards




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to create variable in pom file?

2006-07-18 Thread Tung Nguyen
You can use properties:


value1
value2
.


- Original Message 
From: Kapil Gupta(CT) <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Tuesday, July 18, 2006 2:46:31 PM
Subject: How to create variable in pom file?

Hi,

Is it possible to create an environment variable in a pom file? I want
to create a variable in parent pom which can be accessed in child pom
files.

Thanks & Regards,

Kapil

 

 





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



[maven 2] "duplicate class" compilation error

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



Re: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Yeah, but in my company, we are tied down with our revision control
process that requires in short term this kind of configuration. This 
configuration aims to facilitate a local and demonstration build without many 
steps of downloading plug-in, creating, editing the settings.xml file.


- Original Message 
From: [EMAIL PROTECTED]
To: users@maven.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:19:49 PM
Subject: RE: [m2] How to configure the local repository

Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A


Re: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Thank you, but in fact I need to do not use the 
/.m2/settings.xml and /.m2/repository 
at all. There's no way to place them in the project's folder ?


- Original Message 
From: EJ Ciramella <[EMAIL PROTECTED]>
To: Maven Users List ; Tung Nguyen <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2006 4:09:41 PM
Subject: RE: [m2] How to configure the local repository

Within the settings.xml, you should be able to have an entry like this:

some\path\you'd\like 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 9:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



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



[m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Hi everybody,

I'm contrained to place the repository of maven in the same folder of my projet 
but I can't figure out how to do that. I tried to place the settings.xml in the 
project folder (with the pom.xml) but it doesn't work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [M2]How to compile with JDK 1.2

2006-05-10 Thread Tung Nguyen
Yes, it was just a faute of typing, the executable argument must be 
 
C:\jdk1.2.2\bin\javac
 
By the way, even manven 2 requires java 1.4, in the official doc say that "You 
can use any JDK to compile, not only the one used to run Maven." and there's a 
parameter: "compilerArgument" which is "Unformatted argument string to be 
passed to the compiler if fork is set to true. This is because the list of 
valid arguments passed to a Java compiler varies based on the compiler version."

I think that Maven 2 tries to use all the arguments of its jdk by defaut even 
when I want to use an external jdk.

Thanks for all your helps.

>From [EMAIL PROTECTED]
Subject RE: [M2]How to compile with JDK 1.2
DateTue, 09 May 2006 16:23:55 GMT 

The executable must be linked to javac.exe. 
I do not try but the "official help" says: 
 
 
google search -> maven-compiler-plugin 
result: http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
 
> -Original Message- 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf  
> Of Carlos 
> Sanchez 
> Sent: dinsdag 9 mei 2006 18:17 
> To: Maven Users List 
> Subject: Re: [M2]How to compile with JDK 1.2 
>  
>  
> Can you file a jira issue at http://jira.codehaus.org/browse/PLX under 
> plexus-compiler component? 
>  
> I'm sure nobody tried 1.2 JDK 
>  
> On 5/9/06, Roald Bankras  wrote: 
> > Java 1.4 is the minimum required version for use with maven  
> 2. So I don't think it's going to work. 
> > 
> > Roald Bankras 
> > Software Engineer 
> > JTeam b.v. 
> > 
> > -Original Message- 
> > From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 09, 2006 11:06 AM 
> > To: users@maven.apache.org 
> > Subject: [M2]How to compile with JDK 1.2 
> > 
> > Hi everybody, 
> > 
> > I want to compile my source files with an external jdk1.2 :  
> I've tried this: 
> > 
> >  
> >  
> >
> > org.apache.maven.plugins 
> > maven-compiler-plugin 
> >  
> >   true 
> >   C:\jdk1.2.2\bin 
> >   1.2 
> >  
> >
> >  
> >
> > 
> > 
> > but it doesn't work 'cause javac 1.2 can't handle the  
> "source" argument meanwhile maven add automatically this  
> argument when executing the compilation. 
> > 
> > Thanks in advance. 
> > 
> > 
> > 
> > -- 
> > No virus found in this incoming message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> > -- 
> > No virus found in this outgoing message. 
> > Checked by AVG Free Edition. 
> > Version: 7.1.392 / Virus Database: 268.5.5/334 - Release  
> Date: 5/8/2006 
> > 
> > 
> >  
> - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
>  
>  
> -- 
> I could give you my word as a Spaniard. 
> No good. I've known too many Spaniards. 
>  -- The Princess Bride 
>  
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>  
 
 

 
This message is intended for the addressee or its representative only.  
Any form of unauthorized use, publication, reproduction, copying or  
disclosure of the content of this e-mail is not permitted. If you are  
not the intended recipient of this e-mail message and its contents,  
please notify the sender immediately and delete this message and  
all its attachments subsequently. 
 
 
- 
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]



[M2]How to compile with JDK 1.2

2006-05-09 Thread Tung Nguyen
Hi everybody,

I want to compile my source files with an external jdk1.2 : I've tried this:



  
org.apache.maven.plugins
maven-compiler-plugin

  true
  C:\jdk1.2.2\bin
  1.2

  

  


but it doesn't work 'cause javac 1.2 can't handle the "source" argument 
meanwhile maven add automatically this argument when executing the compilation.

Thanks in advance.