RE: enabling logging

2007-01-11 Thread Nir Feldman
Just run mvn -X

-Original Message-
From: Dmitry Beransky [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 6:22 PM
To: Maven Users List
Subject: enabling logging

Hi,

How can I enable debug level logging for maven's plugins.  I'd like to
see what goes on before this exception is thrown:

Caused by: org.apache.maven.plugin.MojoExecutionException: Error
uploading site
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:184)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 10 more
Caused by:
org.apache.maven.wagon.authentication.AuthenticationException:
Cannot connect. Reason: reject HostKey: newzealand.TRAVELSECURE.LOCAL
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(Abs
tractSshWagon.java:239)
at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java
:153)
... 12 more
Caused by: com.jcraft.jsch.JSchException: reject HostKey:
newzealand.TRAVELSECURE.LOCAL
at com.jcraft.jsch.Session.checkHost(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(Abs
tractSshWagon.java:228)
... 15 more

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: executing junit (integration) tests against a different project

2006-11-27 Thread Nir Feldman
You may change the testSourceDirectory in the surefire plugin to point
to the source directory of the other project in case you can achive a
relative path to it (e.g.
${basedir}/../../OTHER_PROJECT_NAME/src/test/java )

Nir

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 8:47 PM
To: Maven Users
Subject: executing junit (integration) tests against a different project

Hi,

I have a slightly unusual situation where I have shared overlay webapps
   that are assembled into standalone webapps and into larger aggregate
webapps.  The httpunit (junit) integration tests are contained within
the overlay (component) project.  However, I'd like to execute the same
suites of tests against the aggregate projects.  The surefire plugin
relies upon having the test source files within the project being tested
to determine which tests to execute.

Has anyone come up with a workaround for this situation? i.e. execute
tests in a project other than the one where the test sources exist?

I'm thinking I'm going to require both the overlay and aggregator webapp
integration sources on the same filesystem.  Then either multiple test
source directories or copy all test sources into a single dir before
executing surefire.

cheers
Nathan


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



RE: executing junit (integration) tests against a different project

2006-11-27 Thread Nir Feldman
Seems to me as well,
You may plugin a simple ant task to do the copy for you in the
generate-sources phase.

Hope I helped..

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 27, 2006 9:46 PM
To: Maven Users List
Subject: Re: executing junit (integration) tests against a different
project

Hi Nir,

yes I was thinking that, but then there's a problem if the aggregator
project has tests of its own, or if the aggregator project aggregates
more than one overlay webapp.

I'm thinking copying all test sources into a single folder may be the
only solution.

cheers
Nathan

Nir Feldman wrote:
 You may change the testSourceDirectory in the surefire plugin to point
 to the source directory of the other project in case you can achive a
 relative path to it (e.g.
 ${basedir}/../../OTHER_PROJECT_NAME/src/test/java )

 Nir

 -Original Message-
 From: Nathan Coast [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 27, 2006 8:47 PM
 To: Maven Users
 Subject: executing junit (integration) tests against a different
project

 Hi,

 I have a slightly unusual situation where I have shared overlay
webapps
that are assembled into standalone webapps and into larger
aggregate
 webapps.  The httpunit (junit) integration tests are contained within
 the overlay (component) project.  However, I'd like to execute the
same
 suites of tests against the aggregate projects.  The surefire plugin
 relies upon having the test source files within the project being
tested
 to determine which tests to execute.

 Has anyone come up with a workaround for this situation? i.e. execute
 tests in a project other than the one where the test sources exist?

 I'm thinking I'm going to require both the overlay and aggregator
webapp
 integration sources on the same filesystem.  Then either multiple test
 source directories or copy all test sources into a single dir before
 executing surefire.

 cheers
 Nathan


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


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Reports aggregation In a multi module project

2006-11-26 Thread Nir Feldman
I think there is something missing in maven reports.

The site lifecycle includes pre-site site and post-site.

I see no way of generating a report in a parent module that relies on
the results of the children modules.

I would have expected a module to be able to plug in some plugin after
all its children modules have finished.

 

Thanks,

Nir Feldman, CCM RD, [EMAIL PROTECTED]
direct +972-3-5399896  fax +972-3-5331617
19 Shabazi St., Yehud, Israel 56100

MERCURY
Business Technology Optimization
www.mercury.com http://www.mercury.com 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

activating multiple profiles

2006-10-14 Thread Nir Feldman
Can I activate multiple profiles from command line?

I have tried writing:

mvn help:active-profiles -P all -P noTests

but only the all profile was active.

 

Thanks,

 

Nir Feldman, CCM RD, [EMAIL PROTECTED]
direct +972-3-5399896  fax +972-3-5331617
19 Shabazi St., Yehud, Israel 56100

MERCURY
Business Technology Optimization
www.mercury.com http://www.mercury.com 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Using modules in profiles

2006-10-12 Thread Nir Feldman
I would like to define the following:

 

project

.

modules

modulea/module

moduleb/module

/modules

profiles

profile

idprofile1/id

modules

modulea/module

/modules

/profile

/profiles



/project

 

The expected behavior is:

When running the project with no profile a and b will be built.

When running the project with profile1 profile only a will be built.

 

How can this behavior be achieved?

 

Thanks,

Nir Feldman, CCM RD, [EMAIL PROTECTED]
direct +972-3-5399896  fax +972-3-5331617
19 Shabazi St., Yehud, Israel 56100

MERCURY
Business Technology Optimization
www.mercury.com http://www.mercury.com 

 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__