Re: Blame mechanism

2005-11-22 Thread Emmanuel Venisse
All blame info must appears in build result report. So you can see all changes since last update and 
since last successful build (with dates, modified files, authors and comments). If you don't see 
them, it's a bug.


Emmanuel

[EMAIL PROTECTED] a écrit :

Hi,

where can I find more information about continuum's blame mechanism?

What exactly does it achieve and how do I have to configure it?

Regards,
Dietrich







Re: Property 'name' has no write method

2005-11-22 Thread Tim McCune
On Mon, 2005-11-21 at 11:08 +0100, Emmanuel Venisse wrote:
 do you have run it (with continuum and with maven) on the same machine?
 
 This error isn't a pb with continuum but it's a maven error.
 
 We write executable, arguments and working directory in logs with INFO level. 
 Search in your logs 
 ContinuumBuildExecutor:maven.

I get this output:

 WARN  ContinuumBuildExecutor:maven-1 - Could not find the executable
'maven' in this path:
WARN  ContinuumBuildExecutor:maven-1 - /usr/kerberos/bin
WARN  ContinuumBuildExecutor:maven-1 - /usr/local/bin
WARN  ContinuumBuildExecutor:maven-1 - /bin
WARN  ContinuumBuildExecutor:maven-1 - /usr/bin
WARN  ContinuumBuildExecutor:maven-1 - /usr/X11R6/bin
WARN  ContinuumBuildExecutor:maven-1 - /usr/java/jdk1.5.0/bin
WARN  ContinuumBuildExecutor:maven-1 - /usr/local/maven/bin
WARN  ContinuumBuildExecutor:maven-1 - Executable 'maven'.
INFO  ContinuumBuildExecutor:maven-1 - Arguments:  automated

As the same user, if I run which maven, I get

 /usr/local/maven/bin/maven

Doing an ls -l /usr/local/maven/bin/maven gives

-rwxr-xr-x  1 root root 4740 Dec  7  2004 /usr/local/maven/bin/maven

Maven is running though, so this seems like a bogus warning.  Any idea
what it's all about?



Two Continuum Questions

2005-11-22 Thread Matthew Beermann
1) I want Continuum to email all of the developers/ in the POM after the 
build finishes. How do I accomplish that in the ciManagement/ section? Or in 
Continuum's application.xml, if necessary?
   
  2) Right now, the project's defaultGoal/ becomes Continuum's default goal. 
That's good, but the problem is that I want multiple default goals. For 
example, I want it to run deploy site:site site:deploy on every project. 
Maven gets very cranky if you try to specify multiple default goals at the POM 
level - how can I do it at the Continuum level? (I'm going to be importing 
dozens of projects, so it's a pain in the ass to change it manually for each 
and every project.)
   
  --Matthew Beermann


-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Peter A. Pilgrim

Brett Porter wrote:

Ok, this is working for me. I think that you might have been affected
by a repository error the other day.

Can you try:
rm -rf ~/.m2/repository/org/codehaus/plexus
(assuming that is where your local repository is).

Thanks,
Brett

On 11/19/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:


Brett Porter wrote:


Its not stdout we're after - take a look at the txt files in
maven-core/target/surefire-reports. The one with a failure should be
sent.



Ok here is the output from
org.apache.maven.usability.PluginErrorDiagnoserTest.txt

[57]  c org.apache.maven.usability.PluginErrorDiagnoserTest.txt
---
Battery: org.apache.maven.usability.PluginErrorDiagnoserTest
---
testShouldDiagnoseInvalidPluginConfiguration(org.apache.maven.usability.PluginErrorDiagnoserTest)

[ stdout ] ---

-
Visual output for testShouldDiagnoseInvalidPluginConfiguration:
-

[ stderr ] ---


[ stacktrace ] ---

java.lang.NoSuchMethodError:
org.codehaus.plexus.component.configurator.ComponentConfigurationException.getFailedConfiguration()Lorg/codehaus/plexus/configuration/PlexusConfiguration;
at
org.apache.maven.plugin.PluginConfigurationException.buildConfigurationDiagnosticMessage(PluginConfigurationException.java:265)
at
org.apache.maven.usability.PluginConfigurationDiagnoser.diagnose(PluginConfigurationDiagnoser.java:49)
at
org.apache.maven.usability.PluginErrorDiagnoserTest.testShouldDiagnoseInvalidPluginConfiguration(PluginErrorDiagnoserTest.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
at
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)
at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:203)
at org.codehaus.surefire.Surefire.run(Surefire.java:152)
at org.codehaus.surefire.Surefire.run(Surefire.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
at
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:229)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at 

Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Brett Porter
Odd...

can you edit the BootstrapInstaller.java and add -X as an optional
in runMaven() ?

I'd like to know what the plexus dependencies are when these tests are run.

- Brett

On 11/22/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:
 Unfortunately I am still getting this error.
 I remove the files from repository codebase and even tried a re-checkout
 from SVN,

 Help!


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



Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Bruno Aranda
The day this thread was begun I did use the bootstrap in a FC3 and
maven built without problems...

Regards,

Bruno

2005/11/22, Brett Porter [EMAIL PROTECTED]:
 Odd...

 can you edit the BootstrapInstaller.java and add -X as an optional
 in runMaven() ?

 I'd like to know what the plexus dependencies are when these tests are run.

 - Brett

 On 11/22/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:
  Unfortunately I am still getting this error.
  I remove the files from repository codebase and even tried a re-checkout
  from SVN,
 
  Help!
 

 -
 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: Newbie: problem creating checkstyle report

2005-11-22 Thread Nik Gonzalez

Hi Volker,

What error did you get when you ran mvn site:site? Please copy it here.

Thanks,
Nik
Volker Hartmann wrote:


Hi,

I tried to generate a report for my first project.
(I used the Maven Quick Start Archetype.)
I added the following lines in the pom.xml
project
 ...
   reporting
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
 /plugin
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 /plugin
   /plugins
/reporting
/project
(Maybe somone can explain me why the documentation uses this
groupId and artifactId is mentioned nowhere else in the documentation
but in the example together with an old version!?
http://maven.apache.org/plugins/maven-checkstyle-plugin/howto.html )
But I got an error message. I tried several versions (3.4, 4.0 beta 6, 
...) with different

errors.
I also tried
plugin
 groupIdcheckstyle/groupId
 artifactIdcheckstyle/artifactId
 /plugin
with no success.

Another problem is that I can call the goal directly via
mvn checkstyle:checkstyle but the configuration set in pom.xml
seems to be ignored.

BTW: I use Maven 2.0 but I also tried the 2.0.1 from the SVN

I appreciate any help and thanks in advance
 Volker

P.S.: I also tried to generate a report for findbugs without
any success.

-
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] tests running twice

2005-11-22 Thread Patrick O'shea
Hi,

I've added config for the surefire plugin below,  to add a system property 
needed for testing.
If i run the tests (mvn test) all the tests are run twice, 
The first time it doesn't pass the system property and the second time it 
does.
How can I stop it running all the tests the first time ?

thanks in advance,
Patrick 

plugin
  groupIdorg.apache.maven.plugins/groupId 
  artifactIdmaven-surefire-plugin/artifactId 
  version2.0/version 
 executions
execution
idtest-classes/id
  phasetest/phase
configuration 
systemProperties
property
 namenet.sourceforge.cobertura.datafile/name
valueC:\cobertura.ser/value
 
   /property
 /systemProperties 
   /configuration
goals
goaltest/goal
/goals
/execution 
/executions
/plugin 




Handling different resource files for eclipse development and production

2005-11-22 Thread lists
Hi,

We need to apply different .properties files depending on the environment, 
for instance we have different database connections in the development and 
production environment and we want to configure them with .properties files.

We tried to use the resource plugin, and achieved what we want in the war, 
however, war:inplace does not transfer our .properties to the eclipse source 
folder. 

Is this a bug in war:inplace?

Without this file the database connection does not work.

If the developer adds the .properties file manually to his source folder, this 
file overwrites the .properties file provided by the resource plugin during 
packaging.

Any best practice or hint for this problem? How do you solve this problem in 
your project?

Regards
Dietrich

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



Re: [m2] tests running twice

2005-11-22 Thread Nik Gonzalez

Hi,

Try bringing the configuration tag out from the executions tag.  Then, 
delete the executions tag... You'll have something that looks like the ff:


plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.0/version
   configuration
   systemProperties
   property
namenet.sourceforge.cobertura.datafile/name
   valueC:\cobertura.ser/value   


  /property
/systemProperties
  /configuration

/plugin

hth,
Nik
Patrick O'shea wrote:


Hi,

I've added config for the surefire plugin below,  to add a system property 
needed for testing.
If i run the tests (mvn test) all the tests are run twice, 
The first time it doesn't pass the system property and the second time it 
does.

How can I stop it running all the tests the first time ?

thanks in advance,
Patrick 


plugin
 groupIdorg.apache.maven.plugins/groupId 
 artifactIdmaven-surefire-plugin/artifactId 
 version2.0/version 
executions

   execution
   idtest-classes/id
 phasetest/phase
   configuration 
   systemProperties

   property
namenet.sourceforge.cobertura.datafile/name
   valueC:\cobertura.ser/value


  /property
/systemProperties 
  /configuration

   goals
   goaltest/goal
   /goals
   /execution 
   /executions
/plugin 




 




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



Re: [m2] mojo report (sink mandatory content ?)

2005-11-22 Thread David Sag

Or, as I have just discovered, (thanks
brett), if your report implements isExternalReport() by returning true
then you need not use the sink at all, but can generate the whole page
/ pages you want directly.

You are right tho - the page will be
named getOutputName() + .html

Kind regards,
Dave Sag 




 

Olivier Lamy [EMAIL PROTECTED]
wrote on 21-11-2005 13:29:42:

 Hi,
 I have a question concerning doxia Sink in report Mojo.
 Is there any mandatory content in Sink ?
 Actually I try the very simple :
 Sink sink = getSink();
 sink.head();
 sink.text(Test Report);
 sink.head_();
 sink.body();
 sink.text(test);
 sink.body_();
 sink.flush();
 sink.close();  
 
 As I understand the html page will be getOutputName() . html ?
 Or I have probably forgot content in the sink.
 
 My pom has dependency :
   dependency
groupIddoxia/groupId
artifactIddoxia-sink-api/artifactId
version1.0-alpha-4/version
   /dependency 
 
 Thanks for help,
 - Olivier
 
 
 
 This e-mail, any attachments and the information contained therein

 (this message) are confidential and intended solely for
the use of
 the addressee(s). If you have received this message in error please

 send it back to the sender and delete it. Unauthorized publication,

 use, dissemination or disclosure of this message, either in whole
or
 in part is strictly prohibited.
 **

 Ce message electronique et tous les fichiers joints ainsi que les

 informations contenues dans ce message ( ci apres le message
), 
 sont confidentiels et destines exclusivement a l'usage de la 
 personne a laquelle ils sont adresses. Si vous avez recu ce message

 par erreur, merci de le renvoyer a son emetteur et de le detruire.

 Toutes diffusion, publication, totale ou partielle ou divulgation

 sous quelque forme que se soit non expressement autorisees de ce 
 message, sont interdites.
 **

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


maven2 plugin suggestions

2005-11-22 Thread Paul Rule
I often write stand alone apps, and I've often thought
it would be good to have a plugin to bundle up a build
complete with all the dependent jars, scripts, config
files etc - and to even generate the run.bat  run.sh
scripts. 

Is there anything like this currently (I talking
maven2) - if I wrote it would anyone else find it
useful?

Also, would anyone find a plugin that generated the
java service wrapper configuration useful?



 
Do you Yahoo!? 
The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and full 
Actor Database. 
http://au.movies.yahoo.com

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



Re: Newbie: problem creating checkstyle report

2005-11-22 Thread David Sag

I have got checkstyle working fine (sadly
still without the option to specify a custom config - see http://jira.codehaus.org/browse/MNG-1113).

the groupId is org.apache.maven.plugins
artifactId is maven-checkstyle-plugin

we (small internal team here where I
work) are writing a FindBugs plugin now for maven2. I expect we'll
be releasing it to the findbugs or maven people as soon as we are happy
with it. similary for Cobertura and maybe even PMD, which is rather
broken wrt maven 2.  (see http://jira.codehaus.org/browse/MNG-1158)

There is an irony here in that the plugins
with the most problems are all to do with software quality monitoring.
The javadoc plugin is broken and has been for over a month, pmd plugin
is utterly useless, checkstyle is only almost working, findbugs was not
even attempted, same with qalab. Even support for the java1.4 assert statement
is there as an afterthought. (http://jira.codehaus.org/browse/MNG-1087)

Kind regards,
Dave Sag 




 

Volker Hartmann [EMAIL PROTECTED]
wrote on 22-11-2005 08:24:18:

 Hi,
 
 I tried to generate a report for my first project.
 (I used the Maven Quick Start Archetype.)
 I added the following lines in the pom.xml
 project
  ...
   reporting
plugins
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-project-info-reports-plugin/artifactId
  /plugin
   plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-checkstyle-plugin/artifactId
/plugin
 /plugins
   /reporting
 /project
 (Maybe somone can explain me why the documentation uses this
 groupId and artifactId is mentioned nowhere else in the documentation
 but in the example together with an old version!?
 http://maven.apache.org/plugins/maven-checkstyle-plugin/howto.html
)
 But I got an error message. I tried several versions (3.4, 4.0 beta
6, 
 ...) with different
 errors.
 I also tried
   plugin
  groupIdcheckstyle/groupId
  artifactIdcheckstyle/artifactId
/plugin
 with no success.
 
 Another problem is that I can call the goal directly via
 mvn checkstyle:checkstyle but the configuration set in pom.xml
 seems to be ignored.
 
 BTW: I use Maven 2.0 but I also tried the 2.0.1 from the SVN
 
 I appreciate any help and thanks in advance
  Volker
 
 P.S.: I also tried to generate a report for findbugs without
 any success.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: maven2 plugin suggestions

2005-11-22 Thread David Sag

On this point - for us mac users it
would be neat to finish the release phase by generating all the bits and
pieces that allow a java app to look like a real mac app - ie a MyApp.app
folder with the content in the right places and a custom icon etc.

Kind regards,
Dave Sag 




 

Paul Rule [EMAIL PROTECTED] wrote on 22-11-2005
10:22:18:

 I often write stand alone apps, and I've often thought
 it would be good to have a plugin to bundle up a build
 complete with all the dependent jars, scripts, config
 files etc - and to even generate the run.bat  run.sh
 scripts. 
 
 Is there anything like this currently (I talking
 maven2) - if I wrote it would anyone else find it
 useful?
 
 Also, would anyone find a plugin that generated the
 java service wrapper configuration useful?
 
 

  
 Do you Yahoo!? 
 The New Yahoo! Movies: Check out the Latest Trailers, Premiere 
 Photos and full Actor Database. 
 http://au.movies.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: [m2] tests running twice

2005-11-22 Thread Patrick O'shea
thanks Nik,  that worked.
Patrick 
 



Nik Gonzalez [EMAIL PROTECTED] 
22-11-2005 10:10
Please respond to
Maven Users List users@maven.apache.org


To
Maven Users List users@maven.apache.org
cc

Subject
Re: [m2] tests running twice






Hi,

Try bringing the configuration tag out from the executions tag.  Then, 
delete the executions tag... You'll have something that looks like the ff:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.0/version
configuration
systemProperties
property
 namenet.sourceforge.cobertura.datafile/name
valueC:\cobertura.ser/value 
 
   /property
 /systemProperties
   /configuration

/plugin

hth,
 Nik
Patrick O'shea wrote:

Hi,

I've added config for the surefire plugin below,  to add a system 
property 
needed for testing.
If i run the tests (mvn test) all the tests are run twice, 
The first time it doesn't pass the system property and the second time it 

does.
How can I stop it running all the tests the first time ?

thanks in advance,
Patrick 

plugin
  groupIdorg.apache.maven.plugins/groupId 
  artifactIdmaven-surefire-plugin/artifactId 
  version2.0/version 
 executions
execution
idtest-classes/id
  phasetest/phase
configuration 
systemProperties
property
 namenet.sourceforge.cobertura.datafile/name
valueC:\cobertura.ser/value  
 
   /property
 /systemProperties 
   /configuration
goals
goaltest/goal
/goals
/execution 
/executions
/plugin 



 



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




Re: maven2 plugin suggestions

2005-11-22 Thread Arnaud Bailly

Paul Rule wrote:

I often write stand alone apps, and I've often thought
it would be good to have a plugin to bundle up a build
complete with all the dependent jars, scripts, config
files etc - and to even generate the run.bat  run.sh
scripts. 


Is there anything like this currently (I talking
maven2) - if I wrote it would anyone else find it
useful?

If it does not exist, it should :-) I would happily support the idea - 
and the development.
What about adding the possibility of wrapping a full webapp complete 
with a standalone container (eg. Jelly) as an autonomous application. I 
think there exists tools that do something related but nothing in maven.


Yours

--
Arnaud Bailly - Ingénieur de Recherche
NORSYS
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr

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



Re: maven2 plugin suggestions

2005-11-22 Thread puschteblume
For this kind of plugin I would suggest to use a packaging software that 
takes your peaces of the build and put it on the right places. Normally 
you have all your resources in the repository on the right place.


A very good packager and installer would be izpack: 
http://www.izforge.com/izpack/


I used that a lot. If you are interested, I could provide a plugin for 
maven.


Heiko

Paul Rule wrote:


I often write stand alone apps, and I've often thought
it would be good to have a plugin to bundle up a build
complete with all the dependent jars, scripts, config
files etc - and to even generate the run.bat  run.sh
scripts. 


Is there anything like this currently (I talking
maven2) - if I wrote it would anyone else find it
useful?

Also, would anyone find a plugin that generated the
java service wrapper configuration useful?



 
Do you Yahoo!? 
The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and full Actor Database. 
http://au.movies.yahoo.com


-
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: Newbie: problem creating checkstyle report

2005-11-22 Thread Volker Hartmann

Hi Nik,

I tried the following:

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-checkstyle-plugin/artifactId
 /plugin
and I got:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] 


[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [site:site]
[INFO] 

[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: 
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class 
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: 
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader

[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class 
org.apache.velocity.runtime.resource.ResourceCacheImpl)

[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: 
org.apache.velocity.runtime.directive.Literal

[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: 
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: 
org.apache.velocity.runtime.directive.Foreach

[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : 
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' 
in any resource loader.
[INFO] Velocimacro : error using  VM library template 
VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'

[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in 
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline 
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will 
be  global in scope if allowed.

[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [site:site]
[INFO] Generate Continuous Integration report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate Dependencies report.
[INFO] Generate Issue Tracking report.
[INFO] Generate Project License report.
[INFO] Generate Mailing Lists report.
[INFO] Generate Source Repository report.
[INFO] Generate Project Team report.
[INFO] Generate Checkstyle report.
[INFO] 


[ERROR] FATAL ERROR
[INFO] 


---
constituent[0]: 
file:/usr/local/java/app/maven/2.0/lib/maven-reporting-api-2.0.jar

constituent[1]: file:/usr/local/java/app/maven/2.0/lib/maven-model-2.0.jar
constituent[2]: 
file:/usr/local/java/app/maven/2.0/lib/maven-artifact-manager-2.0-1.jar
constituent[3]: 
file:/usr/local/java/app/maven/2.0/lib/wagon-file-1.0-alpha-5.jar

constituent[4]: file:/usr/local/java/app/maven/2.0/lib/maven-profile-2.0.jar
constituent[5]: file:/usr/local/java/app/maven/2.0/lib/maven-monitor-2.0.jar
constituent[6]: file:/usr/local/java/app/maven/2.0/lib/jsch-0.1.23.jar
constituent[7]: 
file:/usr/local/java/app/maven/2.0/lib/wagon-http-lightweight-1.0-alpha-5.jar

constituent[8]: file:/usr/local/java/app/maven/2.0/lib/commons-cli-1.0.jar
constituent[9]: 
file:/usr/local/java/app/maven/2.0/lib/plexus-interactivity-api-1.0-alpha-4.jar
constituent[10]: 
file:/usr/local/java/app/maven/2.0/lib/maven-settings-2.0.jar
constituent[11]: 
file:/usr/local/java/app/maven/2.0/lib/maven-project-2.0-1.jar
constituent[12]: 
file:/usr/local/java/app/maven/2.0/lib/maven-plugin-registry-2.0.jar
constituent[13]: 
file:/usr/local/java/app/maven/2.0/lib/maven-artifact-2.0-1.jar
constituent[14]: 
file:/usr/local/java/app/maven/2.0/lib/doxia-sink-api-1.0-alpha-4.jar
constituent[15]: 
file:/usr/local/java/app/maven/2.0/lib/maven-plugin-parameter-documenter-2.0.jar
constituent[16]: 

Re: maven2 plugin suggestions

2005-11-22 Thread John Tolentino
Sorry, forgot to answer the bundling. Try the maven-assembly-plugin: 
http://maven.apache.org/plugins/maven-assembly-plugin/


Regards,
John

John Tolentino wrote:


Hi,

There are in fact tools in Maven 2 as templates to building 
applications. Please refer to Archetypes 
(http://maven.apache.org/guides/mini/guide-creating-archetypes.html). 
Current archetypes are:


- j2ee
- mojo
- portlet
- profiles
- quickstart
- site
- webapp

You could write an archetype if you often use an existing application 
as a template.


Regards,
John

Arnaud Bailly wrote:


Paul Rule wrote:


I often write stand alone apps, and I've often thought
it would be good to have a plugin to bundle up a build
complete with all the dependent jars, scripts, config
files etc - and to even generate the run.bat  run.sh
scripts.
Is there anything like this currently (I talking
maven2) - if I wrote it would anyone else find it
useful?

If it does not exist, it should :-) I would happily support the idea 
- and the development.
What about adding the possibility of wrapping a full webapp complete 
with a standalone container (eg. Jelly) as an autonomous application. 
I think there exists tools that do something related but nothing in 
maven.


Yours



-
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] Using the jetty6 plugin was: Using the tomcat plugin

2005-11-22 Thread Ralph Pöllath

Hi,

The one thing that keeps me from using the jetty6 plugin instead of  
tomcat for development is the log4j configuration for my spring  
application.


As usual, the application expects log4j config in  
classpath:log4j.properties. For use with jetty, I need a different  
config file to be available at that location (log to console instead  
of files), so I dropped this into my POM:


profiles
profile
idjetty/id
pluginRepositories ... /
build
resources
resource
!-- include config for use with jetty 
--

directorysrc/jetty/resources/directory
includes

includelog4j.properties/include
/includes
/resource
resource
!-- exclude regulat config for use with 
tomcat --

directorysrc/main/resources/directory
excludes

excludelog4j.properties/exclude
/excludes
/resource
/resources

pluginManagement ... /
/build
dependencies ... oracle ... /
/profile
/profiles

The exclude stuff seems to work, but src/jetty/resources/ 
log4j.properties doesn't seem to be placed on the classpath:
Embedded error: Invalid 'log4jConfigLocation' parameter: class path  
resource [log4j.properties] cannot be resolved to URL because it does  
not exist


Jetty says
[INFO] Setting up classpath ...
:INFO:  Checking Resource aliases
[INFO] Finished setting up classpath

Is it possible to somehow display the classpath for inspection?

I thought of filtering web.xml to manipulate the expected filename,  
but I guess that won't work since the webapp directory is src/main/ 
webapp.


Thanks,
-Ralph.

On 03.11.2005, at 12:37, Jan Bartel wrote:

Hi Ralph,

I've linked the doco for the plugin onto the Jetty site. You can
go directly to it here:
http://jetty.mortbay.org/jetty6/maven-plugin/index.html

You can change where the plugin expects to find your webapp by
configuring the webAppSourceDirectory property.

Regarding the oracle jars, I'm not sure about this, but perhaps you  
could use the dependencies associated with the plugin

tag to get them onto the runtime classpath?

cheers
Jan


Ralph Pöllath wrote:

Hi,
I'm impressed! By following your instructions, I got jetty to run  
my  webapp (using http://www.mortbay.org/maven2/snapshot as  
mentioned by  Greg - the old url did not work anymore).
Unfortunately, I didn't get very far because jetty doesn't know  
about  my oracle drivers. With tomcat, I keep those in $ 
{catalina.base}/ common/lib. I guess I could add them as  
dependencies tom my project  so they end up in WEB-INF/lib, but  
then I could not deploy the war to  tomcat anymore. Sounds like I  
should have different maven profiles  fot these scenarios? Or does  
jetty look for additional jars in some  location? That would make  
it a lot easier..
I also noticed that jetty expects my webapp at ${dasedir}/src/ 
main/ webapp. Running mvn war:inplace works, but feels rather  
clumsy. I  adds files to src that aren't sources, and I have to  
make sure I  don't accidentally add them to svn.

Cheers,
-Ralph.
On 02.11.2005, at 19:31, Jan Bartel wrote:

Ralph,

Try putting the following in your pom.xml:

 pluginRepositories
   pluginRepository
 idmortbay-repo/id
 namemortbay-repo/name
 urlhttp://www.mortbay.org/maven2/url
   /pluginRepository
 /pluginRepositories

I should have the site doco for the plugin linked into the Jetty   
website in the next day. In the meanwhile, all you should need  
to  do is to add these plugin config

lines to your pom.xml:

 plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdmaven-jetty6-plugin/artifactId
   configuration
 scanIntervalSeconds20/scanIntervalSeconds
   /configuration
 /plugin

That will cause the plugin to keep running and scan for class/ 
lib  changes every 20secs. You
can change it to whatever you prefer. There are also a couple of   
other config options, but

that should get you going.

You can run it:
  mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run

You can shorten that to:
  mvn jetty6:run

but I'm not sure exactly how to do that other than as the plugin   
developer (I followed the
instructions at http://maven.apache.org/maven2/guides/plugin/ 
guide- java-plugin-development.html).


Jason, is there any update on how we get the Jetty repository   
mirrored to the central

Maven2 repository?


cheers
Jan

Ralph Pöllath wrote:


On 

Re: maven2 plugin suggestions

2005-11-22 Thread Ashley Williams
There is an idea for such a plugin currently called maven runtime and  
I'm sure if you were to add comments at the following link then it  
would gather even more momentum:


http://docs.codehaus.org/display/MAVEN/Maven+Runtime

- Ashley

http://docs.codehaus.org/display/MAVEN/Maven+Runtime
On 22 Nov 2005, at 09:49, puschteblume wrote:

For this kind of plugin I would suggest to use a packaging software  
that takes your peaces of the build and put it on the right places.  
Normally you have all your resources in the repository on the right  
place.


A very good packager and installer would be izpack: http:// 
www.izforge.com/izpack/


I used that a lot. If you are interested, I could provide a plugin  
for maven.


Heiko

Paul Rule wrote:


I often write stand alone apps, and I've often thought
it would be good to have a plugin to bundle up a build
complete with all the dependent jars, scripts, config
files etc - and to even generate the run.bat  run.sh
scripts.
Is there anything like this currently (I talking
maven2) - if I wrote it would anyone else find it
useful?

Also, would anyone find a plugin that generated the
java service wrapper configuration useful?



 Do you  
Yahoo!? The New Yahoo! Movies: Check out the Latest Trailers,  
Premiere Photos and full Actor Database. http://au.movies.yahoo.com


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



Help! - maven-proxy encountered NTLM authentication problem

2005-11-22 Thread Law Green-A20134
Hi, my maven-proxy.properties file has configured proxy server as
follows:
 
proxy.one.host=proxy_server
proxy.one.port=1080
proxy.one.username=user
proxy.one.password=password
 
Unfortunately, the maven-proxy console report the following error while
maven start download from central repository:
 
2005-11-22 17:45:38,937 [WARN ] commons.httpclient.HttpMethodBase  -
Credentials
 cannot be used for NTLM authentication:
org.apache.commons.httpclient.UsernameP
asswordCredentials
2005-11-22 17:45:38,937 [INFO ] proxy.config.HttpRepoConfiguration  -
Repo[www-i
biblio-org]: Unable to find
http://www.ibiblio.org/maven2/org/apache/maven/plugi
http://www.ibiblio.org/maven2/org/apache/maven/plugi 
ns/maven-metadata.xml because of [407] = Proxy Authentication Required
 
Anyone has a clue for solution?
 
Thanks and Best Regards,
Green Law 
---
Software Center Motorola China
Global Software Group
Phone: 86-28-87826088-2253
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
IM: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Jabber: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
---
Message Classification:
 Motorola Confidential Proprietary
 Motorola Internal Use only
 Motorola General Business Information 
 


Re: [m2] Using the jetty6 plugin

2005-11-22 Thread Ralph Pöllath

Hi,

I removed the log4jConfigLocation context-param from web.xml, so it  
defaults to standard log4j config (same thing anyway).


Setting the log4j config via command line works fine now:
mvn -Dlog4j.configuration=log4j-console.properties -Pjetty  
org.mortbay.jetty:maven-jetty6-plugin:1.0:run


Now I tried adding an equivalent system property to the jetty6 plugin  
config (see http://jetty.mortbay.org/jetty6/maven-plugin/howto.html ):


profiles/profile/build/pluginManagement/plugins/plugin/
configuration
...
systemProperties
systemProperty
namelog4j.configuration/name
valuelog4j-console.properties/value
/systemProperty
/systemProperties
/configuration

But this results in the standard config file log4j.properties being  
picked up. One explanation would be that log4j.configuration was set  
before the plugin gets a shot at it (you can't override system  
properties), but I'm quite sure it isn't me who set it.


Any ideas?

BTW, the docs mention mvn jetty6:run, which won't work for me  
either, but mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run does.


Thanks,
-Ralph.



On 22.11.2005, at 11:03, Ralph Pöllath wrote:


Hi,

The one thing that keeps me from using the jetty6 plugin instead of  
tomcat for development is the log4j configuration for my spring  
application.


As usual, the application expects log4j config in  
classpath:log4j.properties. For use with jetty, I need a different  
config file to be available at that location (log to console  
instead of files), so I dropped this into my POM:


profiles
profile
idjetty/id
pluginRepositories ... /
build
resources
resource
!-- include config for use with jetty 
--

directorysrc/jetty/resources/directory
includes

includelog4j.properties/include
/includes
/resource
resource
!-- exclude regulat config for use with 
tomcat --

directorysrc/main/resources/directory
excludes

excludelog4j.properties/exclude
/excludes
/resource
/resources

pluginManagement ... /
/build
dependencies ... oracle ... /
/profile
/profiles

The exclude stuff seems to work, but src/jetty/resources/ 
log4j.properties doesn't seem to be placed on the classpath:
Embedded error: Invalid 'log4jConfigLocation' parameter: class path  
resource [log4j.properties] cannot be resolved to URL because it  
does not exist


Jetty says
[INFO] Setting up classpath ...
:INFO:  Checking Resource aliases
[INFO] Finished setting up classpath

Is it possible to somehow display the classpath for inspection?

I thought of filtering web.xml to manipulate the expected filename,  
but I guess that won't work since the webapp directory is src/main/ 
webapp.


Thanks,
-Ralph.

On 03.11.2005, at 12:37, Jan Bartel wrote:

Hi Ralph,

I've linked the doco for the plugin onto the Jetty site. You can
go directly to it here:
http://jetty.mortbay.org/jetty6/maven-plugin/index.html

You can change where the plugin expects to find your webapp by
configuring the webAppSourceDirectory property.

Regarding the oracle jars, I'm not sure about this, but perhaps  
you could use the dependencies associated with the plugin

tag to get them onto the runtime classpath?

cheers
Jan


Ralph Pöllath wrote:

Hi,
I'm impressed! By following your instructions, I got jetty to run  
my  webapp (using http://www.mortbay.org/maven2/snapshot as  
mentioned by  Greg - the old url did not work anymore).
Unfortunately, I didn't get very far because jetty doesn't know  
about  my oracle drivers. With tomcat, I keep those in $ 
{catalina.base}/ common/lib. I guess I could add them as  
dependencies tom my project  so they end up in WEB-INF/lib, but  
then I could not deploy the war to  tomcat anymore. Sounds like I  
should have different maven profiles  fot these scenarios? Or  
does jetty look for additional jars in some  location? That would  
make it a lot easier..
I also noticed that jetty expects my webapp at ${dasedir}/src/ 
main/ webapp. Running mvn war:inplace works, but feels rather  
clumsy. I  adds files to src that aren't sources, and I have to  
make sure I  don't accidentally add them to svn.

Cheers,
-Ralph.
On 02.11.2005, at 19:31, Jan Bartel wrote:

Ralph,

Try putting the following in your pom.xml:

 

Re: [m2] Using the jetty6 plugin was: Using the tomcat plugin

2005-11-22 Thread Jan Bartel

Hi Ralph,

If you run the plugin with -X or -e then I think maven spits out the
classpaths so you can see what is happening with the system classpath.

An alternative is to use a feature I've just added to the plugin, which
is the ability to define name/value pairs that the plugin will set as
system properties. You could define the log4j.configuration property
to point to where your config file is. 


Add these lines to the plugin's configuration:

   systemProperties
 systemProperty 
implementation=org.mortbay.jetty.plugin.SystemProperty
   namelog4j.configuration/name
   
value${basedir}/src/jetty/resources/log4j.properties/value
 /systemProperty
  /systemProperties

You will need to use the latest snapshot version of the plugin to be 
able to use this feature. More instructions are at


http://jetty.mortbay.org/jetty6/maven-plugin/howto.html


regards
Jan


Ralph Pöllath wrote:

Hi,

The one thing that keeps me from using the jetty6 plugin instead of  
tomcat for development is the log4j configuration for my spring  
application.


As usual, the application expects log4j config in  
classpath:log4j.properties. For use with jetty, I need a different  
config file to be available at that location (log to console instead  of 
files), so I dropped this into my POM:


profiles
profile
idjetty/id
pluginRepositories ... /
build
resources
resource
!-- include config for use with jetty --
directorysrc/jetty/resources/directory
includes
includelog4j.properties/include
/includes
/resource
resource
!-- exclude regulat config for use with tomcat --
directorysrc/main/resources/directory
excludes
excludelog4j.properties/exclude
/excludes
/resource
/resources

pluginManagement ... /
/build
dependencies ... oracle ... /
/profile
/profiles

The exclude stuff seems to work, but src/jetty/resources/ 
log4j.properties doesn't seem to be placed on the classpath:
Embedded error: Invalid 'log4jConfigLocation' parameter: class path  
resource [log4j.properties] cannot be resolved to URL because it does  
not exist


Jetty says
[INFO] Setting up classpath ...
:INFO:  Checking Resource aliases
[INFO] Finished setting up classpath

Is it possible to somehow display the classpath for inspection?

I thought of filtering web.xml to manipulate the expected filename,  but 
I guess that won't work since the webapp directory is src/main/ webapp.


Thanks,
-Ralph.

On 03.11.2005, at 12:37, Jan Bartel wrote:


Hi Ralph,

I've linked the doco for the plugin onto the Jetty site. You can
go directly to it here:
http://jetty.mortbay.org/jetty6/maven-plugin/index.html

You can change where the plugin expects to find your webapp by
configuring the webAppSourceDirectory property.

Regarding the oracle jars, I'm not sure about this, but perhaps you  
could use the dependencies associated with the plugin

tag to get them onto the runtime classpath?

cheers
Jan


Ralph Pöllath wrote:


Hi,
I'm impressed! By following your instructions, I got jetty to run  
my  webapp (using http://www.mortbay.org/maven2/snapshot as  
mentioned by  Greg - the old url did not work anymore).
Unfortunately, I didn't get very far because jetty doesn't know  
about  my oracle drivers. With tomcat, I keep those in $ 
{catalina.base}/ common/lib. I guess I could add them as  
dependencies tom my project  so they end up in WEB-INF/lib, but  then 
I could not deploy the war to  tomcat anymore. Sounds like I  should 
have different maven profiles  fot these scenarios? Or does  jetty 
look for additional jars in some  location? That would make  it a lot 
easier..
I also noticed that jetty expects my webapp at ${dasedir}/src/ main/ 
webapp. Running mvn war:inplace works, but feels rather  clumsy. I  
adds files to src that aren't sources, and I have to  make sure I  
don't accidentally add them to svn.

Cheers,
-Ralph.
On 02.11.2005, at 19:31, Jan Bartel wrote:


Ralph,

Try putting the following in your pom.xml:

 pluginRepositories
   pluginRepository
 idmortbay-repo/id
 namemortbay-repo/name
 urlhttp://www.mortbay.org/maven2/url
   /pluginRepository
 /pluginRepositories

I should have the site doco for the plugin linked into the Jetty   
website in the next day. In the meanwhile, all you should need  to  
do is to add these plugin config

lines to your pom.xml:

 plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdmaven-jetty6-plugin/artifactId
   configuration
 scanIntervalSeconds20/scanIntervalSeconds
   /configuration
 /plugin

That will cause the plugin to keep running and scan for 

[m2] Copy generated war to another folder

2005-11-22 Thread Rubén Barroso
Hello, anyone knows how could I say maven 2 to copy the generated WAR
file to another folder? For instance, I don't want to copy it manually
to ${tomcat5_home}/webapps, it'd be great if maven performed this
automatically.

Thanks in advance.

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



Re: [m2] Copy generated war to another folder

2005-11-22 Thread Wim Deblauwe
You will need to bind the antrun plugin execution to the package goal. See
http://maven.apache.org/guides/mini/guide-using-ant.html for more info.

regards,

Wim

2005/11/22, Rubén Barroso [EMAIL PROTECTED]:

 Hello, anyone knows how could I say maven 2 to copy the generated WAR
 file to another folder? For instance, I don't want to copy it manually
 to ${tomcat5_home}/webapps, it'd be great if maven performed this
 automatically.

 Thanks in advance.

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




Re: [m2] Using the jetty6 plugin was: Using the tomcat plugin

2005-11-22 Thread Ralph Pöllath

Hi Jan,

I tried the systemProperties approach (see my previous post), but no  
luck. Adding the implementation attribute (which isn't mentioned in  
the howto BTW) didn't help either.


My plugin repository points to http://www.mortbay.org/maven2/ 
snapshot, so I assume I'm using the latest snaphot.


Thanks,
-Ralph.

On 22.11.2005, at 11:47, Jan Bartel wrote:

Hi Ralph,

If you run the plugin with -X or -e then I think maven spits out the
classpaths so you can see what is happening with the system classpath.

An alternative is to use a feature I've just added to the plugin,  
which

is the ability to define name/value pairs that the plugin will set as
system properties. You could define the log4j.configuration property
to point to where your config file is.
Add these lines to the plugin's configuration:

   systemProperties
 systemProperty  
implementation=org.mortbay.jetty.plugin.SystemProperty

   namelog4j.configuration/name
   value${basedir}/src/jetty/resources/ 
log4j.properties/value

 /systemProperty
  /systemProperties

You will need to use the latest snapshot version of the plugin to  
be able to use this feature. More instructions are at


http://jetty.mortbay.org/jetty6/maven-plugin/howto.html


regards
Jan


Ralph Pöllath wrote:

Hi,
The one thing that keeps me from using the jetty6 plugin instead  
of  tomcat for development is the log4j configuration for my  
spring  application.
As usual, the application expects log4j config in   
classpath:log4j.properties. For use with jetty, I need a  
different  config file to be available at that location (log to  
console instead  of files), so I dropped this into my POM:

profiles
profile
idjetty/id
pluginRepositories ... /
build
resources
resource
!-- include config for use with jetty --
directorysrc/jetty/resources/directory
includes
includelog4j.properties/include
/includes
/resource
resource
!-- exclude regulat config for use with  
tomcat --

directorysrc/main/resources/directory
excludes
excludelog4j.properties/exclude
/excludes
/resource
/resources
pluginManagement ... /
/build
dependencies ... oracle ... /
/profile
/profiles
The exclude stuff seems to work, but src/jetty/resources/  
log4j.properties doesn't seem to be placed on the classpath:
Embedded error: Invalid 'log4jConfigLocation' parameter: class  
path  resource [log4j.properties] cannot be resolved to URL  
because it does  not exist

Jetty says
[INFO] Setting up classpath ...
:INFO:  Checking Resource aliases
[INFO] Finished setting up classpath
Is it possible to somehow display the classpath for inspection?
I thought of filtering web.xml to manipulate the expected  
filename,  but I guess that won't work since the webapp directory  
is src/main/ webapp.

Thanks,
-Ralph.
On 03.11.2005, at 12:37, Jan Bartel wrote:

Hi Ralph,

I've linked the doco for the plugin onto the Jetty site. You can
go directly to it here:
http://jetty.mortbay.org/jetty6/maven-plugin/index.html

You can change where the plugin expects to find your webapp by
configuring the webAppSourceDirectory property.

Regarding the oracle jars, I'm not sure about this, but perhaps  
you  could use the dependencies associated with the plugin

tag to get them onto the runtime classpath?

cheers
Jan


Ralph Pöllath wrote:


Hi,
I'm impressed! By following your instructions, I got jetty to  
run  my  webapp (using http://www.mortbay.org/maven2/snapshot  
as  mentioned by  Greg - the old url did not work anymore).
Unfortunately, I didn't get very far because jetty doesn't know   
about  my oracle drivers. With tomcat, I keep those in $  
{catalina.base}/ common/lib. I guess I could add them as   
dependencies tom my project  so they end up in WEB-INF/lib, but   
then I could not deploy the war to  tomcat anymore. Sounds like  
I  should have different maven profiles  fot these scenarios? Or  
does  jetty look for additional jars in some  location? That  
would make  it a lot easier..
I also noticed that jetty expects my webapp at ${dasedir}/src/  
main/ webapp. Running mvn war:inplace works, but feels rather   
clumsy. I  adds files to src that aren't sources, and I have to   
make sure I  don't accidentally add them to svn.

Cheers,
-Ralph.
On 02.11.2005, at 19:31, Jan Bartel wrote:


Ralph,

Try putting the following in your pom.xml:

 pluginRepositories
   pluginRepository
 idmortbay-repo/id
 namemortbay-repo/name
 urlhttp://www.mortbay.org/maven2/url
   /pluginRepository
 /pluginRepositories

I should have the site doco for the plugin linked into the  
Jetty   website in 

Invoking plugin execution from a mojo

2005-11-22 Thread Wouter Zoons

hi all,

I was wondering how to tackle a problem I'm experiencing: I'm adding 
support for Emma code coverage to my company's build infrastructure 
which is currently being ported to Maven 2.


I would like to:

1. instrument our code
2. execute the tests on this instrumented code
3. build a report from it

I have written a mojo for each individual step and bundled them into a 
plugin. I've got everything working except step #2


I would like this step to be completely independent from the tests in 
the default build process, meaning our tests would be run twice in total 
(once for testing the code and once for determining the coverage)


We want this separation because we only want to use the instrumented 
code when running emma, not when running the regular tests for example..


Is this a bad idea ? Why is it different in the Clover plugin ?

So my real question is: from within a Mojo, how can I execute the 
surefire plugin ?


I have changed the test classpath element list and placed the 
instrumented code at index 0, so these classes are found first but how 
can I now run surefire using its existing configuration ?


code snippet would be great

thanks in advance

-- Wouter

wouter [at] andromda [dot] org
http://www.andromda.org/






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



RE: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Pilgrim, Peter

 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
====
 
 
 Odd...
 
 can you edit the BootstrapInstaller.java and add -X as an optional
 in runMaven() ?
 
 I'd like to know what the plexus dependencies are when these 
 tests are run.
 
 - Brett

I will do this tonight at home after work. If that is alright with you.

Strange. I will also check that the BASH profile is alright as well.
I am sure that there are no lingering environmental variables e.g
M2_HOME.

 
 On 11/22/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:
  Unfortunately I am still getting this error.
  I remove the files from repository codebase and even tried 
 a re-checkout
  from SVN,
 
  Help!
 
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Bad link to SVN on maven.apache.org

2005-11-22 Thread Ian Vellosa
Hi,

I am still having a few little probelms finding out what parameters
are available to me in the maven-ejb-plugin, so thought I will have
to bit the bulelt and do the hard work of going through the code.
However the SVN links look to have moved. The ones stated on the
page:

   
http://maven.apache.org/plugins/maven-ejb-plugin/source-repository.html

which are like this:

   
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-ejb-plugin

are no longer working.

I hope that some one here cares ;-)

Thanks
IV

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



RE: POM inheritance

2005-11-22 Thread fabrice . belingard




Damien,

have a look at
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

HTH

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Damien Viel   
 [EMAIL PROTECTED]  
 rove.fr Pour
   users@maven.apache.org  
 22/11/2005 13:49   cc
   
 Objet
 Veuillez  POM inheritance 
répondre à 
 Maven Users List  
 [EMAIL PROTECTED]  
 che.org  
   
   




Hi all,

Is the POM inheritance available in maven 2 ?
If not, is there something that looks like ?

Thanks

Damien

--
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_\-| http://www.improve-technologies.com
--


-
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: POM inheritance

2005-11-22 Thread Damien Viel
Thanks Fabrice ;)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: mardi 22 novembre 2005 14:03
To: Maven Users List
Subject: RE: POM inheritance






Damien,

have a look at
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

HTH

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


 

 Damien Viel

 [EMAIL PROTECTED]

 rove.fr
Pour 
   users@maven.apache.org

 22/11/2005 13:49
cc 
 

 
Objet 
 Veuillez  POM inheritance

répondre à

 Maven Users List

 [EMAIL PROTECTED]

 che.org

 

 





Hi all,

Is the POM inheritance available in maven 2 ?
If not, is there something that looks like ?

Thanks

Damien

--
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_\-| http://www.improve-technologies.com
--


-
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] Using the jetty6 plugin

2005-11-22 Thread Jan Bartel

Ralph,

First, lets get your runline shorter. Have a look at the installation 
instructions on the plugin site. You should be able to run it:


  mvn jetty6:run

I'm not sure if you say maven-jetty6-plugin:1.0:run whether that
will invoke the snapshot version of not. Anway, put the maven-metadata.xml
file into your repository as per the installation instructions and
things will be sweet.

Regarding the system property, if you run mvn with -X then you can see
the debug log traces. The plugin will log whether or not it is setting
the System properties. You will see lines like:

Property log4j.configuration=log4j-console.properties [set|skipped]

If it says skipped it means that the System property was already 
set and the plug won't override it.


Also, check that you have the right path for the log4j-console.properties
file. It must be resolvable to a url according to the log4j doco. If that
fails it falls back to a log4j.properties on the classpath.

regards
Jan
Ralph Pöllath wrote:

Hi,

I removed the log4jConfigLocation context-param from web.xml, so it  
defaults to standard log4j config (same thing anyway).


Setting the log4j config via command line works fine now:
mvn -Dlog4j.configuration=log4j-console.properties -Pjetty  
org.mortbay.jetty:maven-jetty6-plugin:1.0:run


Now I tried adding an equivalent system property to the jetty6 plugin  
config (see http://jetty.mortbay.org/jetty6/maven-plugin/howto.html ):


profiles/profile/build/pluginManagement/plugins/plugin/
configuration
...
systemProperties
systemProperty
namelog4j.configuration/name
valuelog4j-console.properties/value
/systemProperty
/systemProperties
/configuration

But this results in the standard config file log4j.properties being  
picked up. One explanation would be that log4j.configuration was set  
before the plugin gets a shot at it (you can't override system  
properties), but I'm quite sure it isn't me who set it.


Any ideas?

BTW, the docs mention mvn jetty6:run, which won't work for me  either, 
but mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run does.


Thanks,
-Ralph.



On 22.11.2005, at 11:03, Ralph Pöllath wrote:


Hi,

The one thing that keeps me from using the jetty6 plugin instead of  
tomcat for development is the log4j configuration for my spring  
application.


As usual, the application expects log4j config in  
classpath:log4j.properties. For use with jetty, I need a different  
config file to be available at that location (log to console  instead 
of files), so I dropped this into my POM:


profiles
profile
idjetty/id
pluginRepositories ... /
build
resources
resource
!-- include config for use with jetty --
directorysrc/jetty/resources/directory
includes
includelog4j.properties/include
/includes
/resource
resource
!-- exclude regulat config for use with tomcat --
directorysrc/main/resources/directory
excludes
excludelog4j.properties/exclude
/excludes
/resource
/resources

pluginManagement ... /
/build
dependencies ... oracle ... /
/profile
/profiles

The exclude stuff seems to work, but src/jetty/resources/ 
log4j.properties doesn't seem to be placed on the classpath:
Embedded error: Invalid 'log4jConfigLocation' parameter: class path  
resource [log4j.properties] cannot be resolved to URL because it  does 
not exist


Jetty says
[INFO] Setting up classpath ...
:INFO:  Checking Resource aliases
[INFO] Finished setting up classpath

Is it possible to somehow display the classpath for inspection?

I thought of filtering web.xml to manipulate the expected filename,  
but I guess that won't work since the webapp directory is src/main/ 
webapp.


Thanks,
-Ralph.

On 03.11.2005, at 12:37, Jan Bartel wrote:


Hi Ralph,

I've linked the doco for the plugin onto the Jetty site. You can
go directly to it here:
http://jetty.mortbay.org/jetty6/maven-plugin/index.html

You can change where the plugin expects to find your webapp by
configuring the webAppSourceDirectory property.

Regarding the oracle jars, I'm not sure about this, but perhaps  you 
could use the dependencies associated with the plugin

tag to get them onto the runtime classpath?

cheers
Jan


Ralph Pöllath wrote:


Hi,
I'm impressed! By following your instructions, I got jetty to run  
my  webapp (using http://www.mortbay.org/maven2/snapshot as  
mentioned by  Greg - the old url did not work anymore).
Unfortunately, I didn't get very far because jetty doesn't know  
about  my oracle drivers. With tomcat, I keep those in $ 
{catalina.base}/ common/lib. I guess I could add them as  
dependencies tom my project  so they end up in WEB-INF/lib, but  
then I 

RE: confusing maven 2 dependency behavior

2005-11-22 Thread Pilgrim, Peter

I also created a program for this called `MvnCreateLocalPom'
and send it to the mailing list. Check the archives.

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: Anuerin Diaz [mailto:[EMAIL PROTECTED]
 Sent: 21 November 2005 19:40
 To: Maven Users List
 Subject: Re: confusing maven 2 dependency behavior
 
 
 try adding a dummy pom for it. the developers said that the future
 release version of the install plugin is going to create a pom
 automatically but for now i just create them manually. recently
 somebody has suggested adding an option to install-file to generate
 poms so you might try searching the archives.
 
 ciao!
 
 On 11/21/05, Charlie Groves [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm migrating some projects from maven 1 to 2.  We have a dependency
  in our project.xml that looks like
  dependency
  idjunit-addons/id
  version1.4/version
  typetest/type
  /dependency
 
  so I add
  dependency
  artifactIdjunit-addons/artifactId
  groupIdjunit-addons/groupId
  version1.4/version
  scopetest/scope
  /dependency
 
  to my pom.xml for maven 2.  When I run mvn install with that pom, it
  fails while attempting to download
  
 http://repo1.maven.org/maven2/junit-addons/junit-addons-runner
/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom
  This doesn't exist on ibiblio, so it makes sense that it fails.  I
 just don't understand why it's trying to download it.  The
 junit-addons 1.4 jar is there...

 Thanks,
 Charlie

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




--

Programming, an artform that fights back

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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


==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



[ m1.1b2] junit-report and jcoverage plugins don't share resources (running unit test twice)

2005-11-22 Thread Antonyan, Tigran\(GE Infrastructure\)
Hi all,

I have 2 plugins enabled for unit test reports: junit-report and jcoverage, now 
each one of them is running unit test for itself and I was wondering if there 
is a way to make one of them (any one of them) to use already generated reports 
from other plugin and not run the test again (this causes maven to fail on my 
machine because of java heap size (can't change it) ).
While surfing in jira I found similar problem that has been solved for junit 
and clover (added new property to clover plugin) 
http://jira.codehaus.org/browse/MPCLOVER-18 
Now I couldn't find anything for neither one of my plugins, does anyone know a 
way around this?

Thank you in advance,

Regards,
Tigran Antonyan


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



[m2] multiple role-hints for a plugin?

2005-11-22 Thread Wim Deblauwe
Hi,

is it possible to have multiple role-hint/ tags in the components.xml of a
custom plugin?

I'm writing a plugin that starts an nmake script. I want this plugin to kick
in for dll and for exe in my packaging/.

regards,

Wim


Re: [m2] multiple role-hints for a plugin?

2005-11-22 Thread Emmanuel Venisse

you need to duplicate component description in components.xml

Emmanuel

Wim Deblauwe a écrit :

Hi,

is it possible to have multiple role-hint/ tags in the components.xml of a
custom plugin?

I'm writing a plugin that starts an nmake script. I want this plugin to kick
in for dll and for exe in my packaging/.

regards,

Wim




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



[m1.1b2] xdoc crumb separator has extra symbol ( ?)

2005-11-22 Thread Antonyan, Tigran\(GE Infrastructure\)
Hi All,

I have maven.xdoc.crumb.separator=| in my project.properties file (this is the 
default value) and for some reason when the site is generated as a separator 
(on top left corner next to generated time) I have |? (without the  ) like 
this
   Last published: 11/22/2005 08:11 EST |?Doc for I11-SNAPSHOT 
I even commented out this property from project.properties (since it is the 
default) but the ? is still there ...
Any clue of where is this coming from?

Any help will be greatly appreciated 
-Tigran Antonyan

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



Re: [m2] multiple role-hints for a plugin?

2005-11-22 Thread Wim Deblauwe
Thanks!

2005/11/22, Emmanuel Venisse [EMAIL PROTECTED]:

 you need to duplicate component description in components.xml

 Emmanuel

 Wim Deblauwe a écrit :
  Hi,
 
  is it possible to have multiple role-hint/ tags in the components.xmlof a
  custom plugin?
 
  I'm writing a plugin that starts an nmake script. I want this plugin to
 kick
  in for dll and for exe in my packaging/.
 
  regards,
 
  Wim
 


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




Design Question

2005-11-22 Thread Gerwin Bruner

Hi,

I've got a client/server app which is communicating via RMI.
The application is using the spring framework.

The server offers the following services/interface:

Agent register(String username);
void unregister(Agent agent);


What is the best way to move this app over to maven?

Do I build 3 projects: Server / Client / Interface (with the POJO's  
like Agent that get transfered)?


Is this a valid thought? Any other suggestions how to address this?

Thanks,
Gerwin

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



Re: Bad link to SVN on maven.apache.org

2005-11-22 Thread Volker Hartmann

Hi Ian,

try this instead:
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-ejb-plugin/

Regards,
 Volker

Vellosa wrote:


Hi,

I am still having a few little probelms finding out what parameters
are available to me in the maven-ejb-plugin, so thought I will have
to bit the bulelt and do the hard work of going through the code.
However the SVN links look to have moved. The ones stated on the
page:

  
http://maven.apache.org/plugins/maven-ejb-plugin/source-repository.html


which are like this:

  
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-ejb-plugin


are no longer working.

I hope that some one here cares ;-)

Thanks
IV

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

 




--
|   Volker Hartmann
_|
##   FORSCHUNGSZENTRUM KARLSRUHE in der Helmholtz-Gesellschaft
#Institute for Data Processing and Electronics (IPE)
#
_|
##   P.O. Box 3640, 76021 Karlsruhe, GERMANY
#phone: +49 7247 82-6033
#fax:   +49 7247 82-3560
|email: [EMAIL PROTECTED]
|http://fuzzy.fzk.de/~hartmann/




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



[m2] run a bat file from within a custom plugin

2005-11-22 Thread Wim Deblauwe
Hi,

I would like to run a bat file from my plugin. I know that this will make my
plugin very unportable to other platforms, but I only need to run on
windows. What would be the best way to do this? Since running a bat file
from within a jar is not supported, I guess the best way is to extract that
bat file from the plugin jar to some temp directory and run it from there.
Any other ideas?

regards,

Wim


Setting an arbitrary property for a plugin within its configuration

2005-11-22 Thread Dietrich Schulten
Hi,

I always need to run the eclipse plugin with a certain profile (some common 
resources must be ignored).

We defined a build profile that does not define this resource and activate it 
using a role property on the commandline, like so:

mvn eclipse:eclipse -Drole=eclipse

Is it possible to set this property permanently within the plugin configuration?

Something like:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
properties
roleeclipse/role
/properties
/configuration
/plugin

This particular syntax does not work, I tried it :-(

Regards,
Dietrich

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



Blame mechanism

2005-11-22 Thread Dietrich Schulten
Hi,

where can I find more information about continuum's blame mechanism?

What exactly does it achieve and how do I have to configure it?

Regards,
Dietrich


Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Emmanuel Venisse

look at release:perform goal.

Emmanuel

Wim Deblauwe a écrit :

Hi,

I would like to run a bat file from my plugin. I know that this will make my
plugin very unportable to other platforms, but I only need to run on
windows. What would be the best way to do this? Since running a bat file
from within a jar is not supported, I guess the best way is to extract that
bat file from the plugin jar to some temp directory and run it from there.
Any other ideas?

regards,

Wim




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



Re: Blame mechanism

2005-11-22 Thread Emmanuel Venisse
All blame info must appears in build result report. So you can see all changes since last update and 
since last successful build (with dates, modified files, authors and comments). If you don't see 
them, it's a bug.


Emmanuel


Dietrich Schulten a écrit :

Hi,

where can I find more information about continuum's blame mechanism?

What exactly does it achieve and how do I have to configure it?

Regards,
Dietrich







Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Wim Deblauwe
What do you mean? I see the use of the Commanline class, but it calls an
executable that is on the PATH. I'm talking about running a bat file that is
delivered with my plugin (in the plugin jar).


2005/11/22, Emmanuel Venisse [EMAIL PROTECTED]:

 look at release:perform goal.

 Emmanuel

 Wim Deblauwe a écrit :
  Hi,
 
  I would like to run a bat file from my plugin. I know that this will
 make my
  plugin very unportable to other platforms, but I only need to run on
  windows. What would be the best way to do this? Since running a bat file
  from within a jar is not supported, I guess the best way is to extract
 that
  bat file from the plugin jar to some temp directory and run it from
 there.
  Any other ideas?
 
  regards,
 
  Wim
 


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




Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Emmanuel Venisse
you need to extract your file first (perhaps with plexus-archiver) and then run your script with 
Commandline



Wim Deblauwe a écrit :

What do you mean? I see the use of the Commanline class, but it calls an
executable that is on the PATH. I'm talking about running a bat file that is
delivered with my plugin (in the plugin jar).


2005/11/22, Emmanuel Venisse [EMAIL PROTECTED]:


look at release:perform goal.

Emmanuel

Wim Deblauwe a écrit :


Hi,

I would like to run a bat file from my plugin. I know that this will


make my


plugin very unportable to other platforms, but I only need to run on
windows. What would be the best way to do this? Since running a bat file
from within a jar is not supported, I guess the best way is to extract


that


bat file from the plugin jar to some temp directory and run it from


there.


Any other ideas?

regards,

Wim




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



[M1] Maven with Websphere Application Developer anyone?

2005-11-22 Thread Weston, Toby
Hi Folks,

Is anyone using Maven based structures (in particular J2EE ones like
webapps) with Websphere Application Developer (WSAD) or Rational Application
Developer? 

I was just after any horror/success stories and if you can make the project
structure co-exist in harmony.

Thanks in advance,
Toby

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



Re: Newbie: problem creating checkstyle report

2005-11-22 Thread Volker Hartmann

Hi David,

I have got checkstyle working fine (sadly still without the option to 
specify a custom config - see http://jira.codehaus.org/browse/MNG-1113).


I already know that. :-(



the groupId is org.apache.maven.plugins
artifactId is maven-checkstyle-plugin


Which version of maven do you use!?
And which version of the plugin?
I also tried this in the reporting section of the pom
without any success.

we (small internal team here where I work) are writing a FindBugs 
plugin now for maven2.  I expect we'll be releasing it to the findbugs 
or maven people as soon as we are happy with it.  similary for 
Cobertura and maybe even PMD, which is rather broken wrt maven 2.   
(see http://jira.codehaus.org/browse/MNG-1158)


Sounds great. I'm looking forward for this. :-)

Kind regards,
 Volker

There is an irony here in that the plugins with the most problems are 
all to do with software quality monitoring.  The javadoc plugin is 
broken and has been for over a month, pmd plugin is utterly useless, 
checkstyle is only almost working, findbugs was not even attempted, 
same with qalab. Even support for the java1.4 assert statement is 
there as an afterthought. (http://jira.codehaus.org/browse/MNG-1087)





Kind regards,
Dave Sag




 


Volker Hartmann [EMAIL PROTECTED] wrote on 22-11-2005 08:24:18:

 Hi,

 I tried to generate a report for my first project.
 (I used the Maven Quick Start Archetype.)
 I added the following lines in the pom.xml
 project
   ...
 reporting
plugins
   plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-project-info-reports-plugin/artifactId
   /plugin
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   /plugin
 /plugins
  /reporting
 /project
 (Maybe somone can explain me why the documentation uses this
 groupId and artifactId is mentioned nowhere else in the documentation
 but in the example together with an old version!?
 http://maven.apache.org/plugins/maven-checkstyle-plugin/howto.html )
 But I got an error message. I tried several versions (3.4, 4.0 beta 6,
 ...) with different
 errors.
 I also tried
  plugin
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   /plugin
 with no success.

 Another problem is that I can call the goal directly via
 mvn checkstyle:checkstyle but the configuration set in pom.xml
 seems to be ignored.

 BTW: I use Maven 2.0 but I also tried the 2.0.1 from the SVN

 I appreciate any help and thanks in advance
   Volker

 P.S.: I also tried to generate a report for findbugs without
 any success.

 -
 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: restrict allowed dependency versions

2005-11-22 Thread Michael Böckling

Hi people,

I'd like to know if there is a way to impose restrictions on the 
versions of the referenced dependencies.
In big companies, you often have a specific set of third party library 
versions that are approved for usage in company projects, and other 
versions are not allowed. More often than not, there are several such 
version-sets, because there is a strict lifecycle-management in place. 
Does anybody have an idea as to how this could be accomplished with 
Maven 2? Separate repositories for each version-set come to my mind, but 
that seems rather cumbersome to me.


Thanks for any input on that matter,
Michael Böckling

--
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/



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



Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Chris Berry
Hi Wim,
I had to do something like this as well w/ the antrun Plugin. Ant expects to
find a real File for build.xml, and won't extract it from JAR. So I simply
used Ant to do all the work. You can ignore the part where I build the ant
task. The pertinent part is shown below. BTW. you could even use Ant to
exec to run your BAT file. It has all the features you'd eventually
need...

 //-
 protected void executeTasks( Target target, MavenProject mproject, String
msgLevel )
 throws MojoExecutionException
 {
 verifySetup();
 String antFileName = getAntFileName();
 String antTargetName = getAntTargetName();

 //-
 // Create the unzip Task
 //-
 Task unzipTask = createUnzipTask( antFileName );
 addTask( target, unzipTask );

 //-
 // Create the ant Task
 //-
 Task antTask = createAntTask( antFileName, antTargetName );
 addTask( target, antTask );

 //-
 // Set Ant project properties
 //-
 setCommonAntProperties( target );
 setAntProperties( target );

 //-
 // Execute the Tasks
 //-
 getLog().info( *** target=  + target.getTasks().length );

 super.executeTasks( target, mproject, msgLevel );
 }

 //-
 private Task createUnzipTask( String antFileName )
 {
 String pluginGroupId = getPluginGroupId();
 String pluginArtifactId = getPluginArtifactId();
 String pluginVersion = getPluginVersion() ;
 ArtifactRepository localRepository = getLocalRepository();
 String targetDirectory = getTargetDirectory();

 getLog().info( pluginGroupId=  + pluginGroupId );
 getLog().info( pluginArtifactId=  + pluginArtifactId );
 getLog().info( pluginVersion=  + pluginVersion );
 getLog().info( localRepository=  + localRepository.getUrl() );
 getLog().info( targetDirectory =  + targetDirectory );

 // First, get build the source JAR file
 // convert groupId to path (. == /)
 // FIXME: this is probably possible in maven somewhere??
 String groupIdPath = pluginGroupId.replace( '.', '/' );
 String slocalRepo = localRepository.getUrl();

 // Strip off the file:/ -- there's probably a better way to do this
 // but converting to a File and pulling the Path was giving incorrect
results (on windoze)
 slocalRepo = slocalRepo.replaceAll( file://,  );
 getLog().info( \n*** slocalRepo=  + slocalRepo );

 // build full path to plugin jar -- src=${plugin.artifact}
 // FIXME: this is probably possible in maven somewhere??
 String src = slocalRepo + / + groupIdPath + / + pluginArtifactId + /
+
 pluginVersion + / + pluginArtifactId + - + pluginVersion + .jar ;
 getLog().info( *** src=  + src );

 File srcFile = new File( src );
 getLog().info( *** srcFile=  + srcFile );

 //..
 // Get the destination dir -- dest=${targetdir}
 File destFile = new File( targetDirectory );
 getLog().info( \n== targetDirectory=  + targetDirectory );
 getLog().info( \n== destFile=  + targetDirectory );

 //..
 // build the unzip Task
 //
 // unzip src=${plugin.artifact}
 // dest=${targetdir}
 // patternset
 // include name=ant/axis-build.xml/
 // /patternset
 // /unzip
 Expand unzipTask = new Expand();

 unzipTask.setTaskName( unzip );

 unzipTask.setSrc( srcFile );
 unzipTask.setDest( destFile );
 unzipTask.setOverwrite( true );

 PatternSet pset = new PatternSet();
 pset.setIncludes( antFileName );
 unzipTask.addPatternset( pset );

 return unzipTask;
 }






On 11/22/05, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 you need to extract your file first (perhaps with plexus-archiver) and
 then run your script with
 Commandline


 Wim Deblauwe a écrit :
  What do you mean? I see the use of the Commanline class, but it calls an
  executable that is on the PATH. I'm talking about running a bat file
 that is
  delivered with my plugin (in the plugin jar).
 
 
  2005/11/22, Emmanuel Venisse [EMAIL PROTECTED]:
 
 look at release:perform goal.
 
 Emmanuel
 
 Wim Deblauwe a écrit :
 
 Hi,
 
 I would like to run a bat file from my plugin. I know that this will
 
 make my
 
 plugin very unportable to other platforms, but I only need to run on
 windows. What would be the best way to do this? Since running a bat
 file
 from within a jar is not supported, I guess the best way is to extract
 
 that
 
 bat file from the plugin jar to some temp directory and run it from
 
 there.
 
 Any other ideas?
 
 regards,
 
 Wim
 
 
 
 -
 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] fork to run junit tests

2005-11-22 Thread Patrick O'shea
Hi,

Is it possible to fork to run the junit tests ?
I'm using external code that is called when the forked jvm exits after the 
tests are run.
 
thanks in advance
Patrick

Re: Bad link to SVN on maven.apache.org

2005-11-22 Thread Lukas Theussl

Hi Ian,

You are accessing a deprecated page, the whole m1 site has moved to

http://maven.apache.org/maven-1.x/

the page that you want is here:

http://maven.apache.org/maven-1.x/reference/plugins/ejb/cvs-usage.html




I hope that some one here cares ;-)


I am sure a lot of people care, there is an issue open here:
http://jira.codehaus.org/browse/MNG-1496
you can vote for it if you think it is important to resolve.

Unfortunately it seems it is only considered of minor importance by the 
responsible people...



-Lukas




Thanks
IV

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



repositories mirror (where are they located ?)

2005-11-22 Thread Olivier Lamy
Hi all,
I have a lot of time out with the default repository
http://www.ibiblio.org/maven2.
Questions :
- Is there any way to define time out value ?
- where are located the mirrors (maven2 mirror) ?
 
Thanks,
 
- Olivier


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres le message ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 



[m2] surefire not honoring excludes

2005-11-22 Thread Paul Spencer

The surefire plugin is not honoring the excludes

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
  forktrue/fork
  includes
include**/*TestCase.java/include
  /includes
  excludes
exclude implementation=java.lang.String
   com/foo/util/**
/exclude
  /excludes
/configuration
  /plugin

o The exclude is the same one used for the maven-compiler-plugin.
o mvn -X does not list the exclusion of the test source, just the source
  [DEBUG]   (f) excludes = [com/foo/util/**]

Paul Spencer

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



Re: repositories mirror (where are they located ?)

2005-11-22 Thread Michael Böckling

Hi Olivier,

they are well hidden somewhere on the ibiblio page, if you're bored you 
can try to find them.
These work for me, i'll paste you the contents of my settings.xml for 
convenience:


 mirrors
  mirror
 idmirrors.dotsrc.org/id
 nameMirror of http://repo1.maven.org/maven2//name
 urlhttp://mirrors.dotsrc.org/maven2//url
 mirrorOfcentral/mirrorOf
   /mirror
  mirror
 idpublic.planetmirror.com/id
 nameMirror of http://repo1.maven.org/maven2//name
 url http://public.planetmirror.com/pub/maven2//url
 mirrorOfcentral/mirrorOf
   /mirror
 /mirrors

Regards,
Michael Böckling



Hi all,
I have a lot of time out with the default repository
http://www.ibiblio.org/maven2.
Questions :
- Is there any way to define time out value ?
- where are located the mirrors (maven2 mirror) ?

Thanks,

- Olivier


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). If 
you have received this message in error please send it back to the sender and delete it. 
Unauthorized publication, use, dissemination or disclosure of this message, either in 
whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites.

**

- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel

P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/



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



[m2] How to set a Mojo property from settings.xml

2005-11-22 Thread David Jackman
One of the properties for a Mojo I'm writing is really a user-specific
thing, and ought to be set in each user's settings.xml file.  The guide
for configuring plugins only talks about setting configuration
properties in pom.xml, but not how to reference values set in
settings.xml.  How do I do this?
 
..David..
 


Re: Newbie Multiproject question

2005-11-22 Thread Lukas Theussl

Hi Weston,

The maven.multiproject.includes is constructed relative to 
maven.multiproject.basedir (which defaults to ${basedir}), so in your 
example, ${basedir} is prepended twice.


-Lukas


Weston, Toby wrote:

Thanks for the tip Michael, that seems to work great! Out of interest, I
tried the following, kind of expecting it to work which off course meant it
didn't!

maven.multiproject.includes=${basedir}/../ProjectA/project.xml


Anyway, thanks again,
Toby

-Original Message-
From: Michael Böckling [mailto:[EMAIL PROTECTED] 
Sent: 18 November 2005 17:12

To: Maven Users List
Subject: Re: Newbie Multiproject question

Hi Toby,

you can't change directories with the includes/excludes expression. 
But instead, you can try the following:


maven.multiproject.basedir=${basedir}/../
maven.multiproject.includes=projectA/project.xml

This is because the directory scanner will scan all subdirs of 
maven.multiproject.basedir and match them against the given expressions.


Cheers,
Michael Böckling



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



Re: [m2] surefire not honoring excludes

2005-11-22 Thread Jesse McConnell
I was just poking through this code...and it was excluding all the right
stuff for me :/

so for this setup below, you want all test cases that end in
TestCase.javaexcept for those in the com/foo/util directory...right?
and this is in
src/test/java...

this doesn't add to the existing patterns to find tests, if you specify
includes and excludes those are the only patterns used to find/exclude tests

jesse

On 11/22/05, Paul Spencer [EMAIL PROTECTED] wrote:

 The surefire plugin is not honoring the excludes

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 configuration
 forktrue/fork
 includes
 include**/*TestCase.java/include
 /includes
 excludes
 exclude implementation=java.lang.String
 com/foo/util/**
 /exclude
 /excludes
 /configuration
 /plugin

 o The exclude is the same one used for the maven-compiler-plugin.
 o mvn -X does not list the exclusion of the test source, just the source
 [DEBUG] (f) excludes = [com/foo/util/**]

 Paul Spencer

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




--
jesse mcconnell


Re: Repost: [1.1b1] timestamps in Simian and Checkstyle reports

2005-11-22 Thread Carlos Sanchez
You can get timestamps for the whole site, take a look at the xdoc
plugin properties

On 11/22/05, Gisbert Amm [EMAIL PROTECTED] wrote:
 I made this posting last friday but did not get any reply so far.
 Therefore the repost.

 Is it possible to get timestamps in Simian and Checkstyle reports (time
 of the latest report build)?

 I'm using Maven 1.1 beta 1.

 Thanks in advance for your help.

 Gisbert Amm

 -
 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] surefire not honoring excludes

2005-11-22 Thread Paul Spencer
I should further clarify not honoring the excludes.  My expectation 
was the exclusion applied to the compiler and test runner.  It appear to 
apply to only the test runner.

So, is it correct the excluded test are compiled and not run?

Is their a way to prevent a the compilation?

Paul Spencer

Paul Spencer wrote:

The surefire plugin is not honoring the excludes

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
  forktrue/fork
  includes
include**/*TestCase.java/include
  /includes
  excludes
exclude implementation=java.lang.String
   com/foo/util/**
/exclude
  /excludes
/configuration
  /plugin

o The exclude is the same one used for the maven-compiler-plugin.
o mvn -X does not list the exclusion of the test source, just the source
  [DEBUG]   (f) excludes = [com/foo/util/**]

Paul Spencer

-
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: Unable to generate Maven 1.0.2 ChangeLog reports

2005-11-22 Thread Lukas Theussl
Make sure the developer id's in your project.xml match those of the 
repository user name. The id needs to contain the id that is used in 
your source version control.


-Lukas



Chawla, Sampreet Kaur (Cognizant) wrote:


Hi Arnaud  Everybody,

I am able to generate the ChangeLog, Developer-Activity and File Activity Report now. 
These reports need maven.mode.online=true as its properties settings. By 
default it is true. I had unknowingly set it to false, as I had intended to work in 
offline mode, not understanding the exact use of the properties.

With the change (maven.mode.online=true), the reports are being generated 
fine, except that the Developer-Activity Details section is still empty. The 
developer-activity-report.xml is generated from changelog.xml which is giving correct 
details. Maven 1.0.2 uses maven-developer-activity-plugin-1.5.1 to generate 
Developer-Activity report.

Any suggestions on how to rectify this issue. Any kind of help will be greatly 
appreciated.

Thanks  Best Regards,
Sampreet


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com


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



Re: optional ant replaceregexp task

2005-11-22 Thread Nathan Coast

Thanks Brett,

I found the jdk1.4 regexp task in ant-nodeps-1.6.5.jar

this worked when I placed it in the root classloader

Strangely, I tried placing the ant-oro and oro jars in the root 
classloader, maven still didn't pick up the oro regexp task.  Gave up 
digging, jdk-1.4-regexp works for me :)


cheers
Nathan

Brett Porter wrote:

Try putting both in the root classloader:

properties
  classloaderroot/classloader
/properties

On 11/22/05, Sachin Patel [EMAIL PROTECTED] wrote:

I too am seeing the same problem.

Nathan Coast wrote:

Hi,

having recently upgraded to maven 1.1-b2, I have been unable to get
ant replaceregexp tasks working

I have tried adding the dependencies to the oro regexp jars (I
couldn't find the org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
class in any jar)

   dependency
  groupIdant/groupId
  artifactIdant-apache-oro/artifactId
  version1.6.5/version
  typejar/type
/dependency
dependency
  groupIdoro/groupId
  artifactIdoro/artifactId
  version2.0.8/version
  typejar/type
/dependency

I also set the property


ant:property name=ant.regexp.regexpimpl
value=org.apache.tools.ant.util.regexp.JakartaOroRegexp/

  ant:replaceregexp
file=${hibernate.schema.output.dir}/hibernate-schema-initialize.sql
 match=^(alter table .* drop|drop table)
 replace=-- SKIP \1
 flags=i
 byline=true/


when I execute the script the following output appears but nothing
happens

replaceregexp match=^(alter table .* drop|drop table)
file=D:\dev\components\i18n/target/hibernate/hibernate-schema-initialize.sql
byline=true flags=i replace=-- SKIP \1/replaceregexp

any ideas?

cheers
Nathan

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





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



Re: [M1] Maven with Websphere Application Developer anyone?

2005-11-22 Thread Lee Meador
I worked on a project last year that was using WSAD 5.1.2 with version 1 of
Maven. It worked ok but we didn't get everything we wanted. My memory is
fuzzy and I don't have access to the project files any more.

1) We could use WSAD with the folder structure Maven wants just fine.

2) We had a sort-of-base-project with things set up to build all the other
projects as subprojects.

3) We would run Maven from the command line. Some developers set it up as an
external tool to just run.

4) The projects would build inside WSAD (too) and we could deploy that way
to the built in Websphere to test things.

5) That project had a Swing front end that talked directly to EJBs with
Hibernate in the back. There was also a tiny little web app that did little
more than show you the version number of the back end. Every layer was in
a seperate WSAD project. That implies there were ejb projects, web projects
and java projects.

Hope this helps.

-- Lee Meador

On 11/22/05, Weston, Toby [EMAIL PROTECTED] wrote:

 Hi Folks,

 Is anyone using Maven based structures (in particular J2EE ones like
 webapps) with Websphere Application Developer (WSAD) or Rational
 Application
 Developer?

 I was just after any horror/success stories and if you can make the
 project
 structure co-exist in harmony.

 Thanks in advance,
 Toby

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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


RE: m1.1b2 junit-report and jcoverage plugins don't share resources (running unit test twice)

2005-11-22 Thread Arnaud HERITIER
You can open an issue on the jcoverage plugin.
You can also take a look at the cobertura plugin on sourceforge to see if it 
doesn't provide such a setting.

Arnaud
 

 -Message d'origine-
 De : Antonyan, Tigran(GE Infrastructure) 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : lundi 21 novembre 2005 16:50
 À : Maven Users List
 Objet : RE: m1.1b2 junit-report and jcoverage plugins don't 
 share resources (running unit test twice)
 
 Hi all,
 
 I have 2 plugins enabled for unit test reports: junit-report 
 and jcoverage, now each one of them is running unit test for 
 itself and I was wondering if there is a way to make one of 
 them (any one of them) to use already generated reports from 
 other plugin and not run the test again (this causes maven to 
 fail on my machine because of java heap size (can't change it) ).
 While surfing in jira I found similar problem that has been 
 solved for junit and clover (added new property to clover 
 plugin) http://jira.codehaus.org/browse/MPCLOVER-18
 Now I couldn't find anything for neither one of my plugins, 
 does anyone know a way around this?
 
 Thank you in advance,
 
 Regards,
 Tigran Antonyan
 
 -
 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: Repost: [1.1b1] timestamps in Simian and Checkstyle reports

2005-11-22 Thread Arnaud HERITIER
I think not.
There's only the date/time when the site is generated (if you do it just after 
the report).

Arnaud
 

 -Message d'origine-
 De : Gisbert Amm [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 22 novembre 2005 09:46
 À : Maven Users List
 Objet : Repost: [1.1b1] timestamps in Simian and Checkstyle reports
 
 I made this posting last friday but did not get any reply so far. 
 Therefore the repost.
 
 Is it possible to get timestamps in Simian and Checkstyle 
 reports (time of the latest report build)?
 
 I'm using Maven 1.1 beta 1.
 
 Thanks in advance for your help.
 
 Gisbert Amm
 
 -
 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: m1.1b2 junit-report and jcoverage plugins don't share resources (running unit test twice)

2005-11-22 Thread Antonyan, Tigran\(GE Infrastructure\)
Unfortunately cobertura doesn't have that kind of plugin either, also its not 
supported for dashboard plugin (jcoverage is), which I use for multiproject 
site.

-Tigran

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 4:29 PM
To: 'Maven Users List'
Subject: RE: m1.1b2 junit-report and jcoverage plugins don't share
resources (running unit test twice)


You can open an issue on the jcoverage plugin.
You can also take a look at the cobertura plugin on sourceforge to see if it 
doesn't provide such a setting.

Arnaud
 

 -Message d'origine-
 De : Antonyan, Tigran(GE Infrastructure) 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : lundi 21 novembre 2005 16:50
 À : Maven Users List
 Objet : RE: m1.1b2 junit-report and jcoverage plugins don't 
 share resources (running unit test twice)
 
 Hi all,
 
 I have 2 plugins enabled for unit test reports: junit-report 
 and jcoverage, now each one of them is running unit test for 
 itself and I was wondering if there is a way to make one of 
 them (any one of them) to use already generated reports from 
 other plugin and not run the test again (this causes maven to 
 fail on my machine because of java heap size (can't change it) ).
 While surfing in jira I found similar problem that has been 
 solved for junit and clover (added new property to clover 
 plugin) http://jira.codehaus.org/browse/MPCLOVER-18
 Now I couldn't find anything for neither one of my plugins, 
 does anyone know a way around this?
 
 Thank you in advance,
 
 Regards,
 Tigran Antonyan
 
 -
 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: [m1.1b2] xdoc crumb separator has extra symbol ( ?)

2005-11-22 Thread Antonyan, Tigran\(GE Infrastructure\)
Thanks a lot Lukas, that was an encoding (browser encoding was set up wrong) 
problem.
Thank you for your respond!

-Tigran

-Original Message-
From: Lukas Theussl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 5:09 PM
To: Maven Users List
Subject: Re: [m1.1b2] xdoc crumb separator has extra symbol ( ?)


The only thing that the xdoc plugin puts in front of the Doc for is 
the special character entity #160; (non-breaking space), do you see 
that if you look at the source of the generated html? Maybe an encoding 
problem?

-Lukas


Antonyan, Tigran(GE Infrastructure) wrote:
 Thanks for your reply!
 
 I'm using maven-xdoc-plugin-1.9.2, this is the latest one on 
 http://www.ibiblio.org/maven/maven/plugins/
 is there other repositories I need to keep an eye on?
 
 -Tigran
 
 
 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 4:36 PM
 To: 'Maven Users List'
 Subject: RE: [m1.1b2] xdoc crumb separator has extra symbol ( ?)
 
 
 Which xdoc release are you using ?
 I think there were several issues with the one bundled in maven 1.1b2.
 Did you try to update it ?
 
 Arnaud
  
 
 
-Message d'origine-
De : Antonyan, Tigran(GE Infrastructure) 
[mailto:[EMAIL PROTECTED] 
Envoyé : mardi 22 novembre 2005 14:33
À : Maven Users List
Objet : [m1.1b2] xdoc crumb separator has extra symbol ( ?)

Hi All,

I have maven.xdoc.crumb.separator=| in my project.properties 
file (this is the default value) and for some reason when the 
site is generated as a separator (on top left corner next to 
generated time) I have |? (without the  ) like this
   Last published: 11/22/2005 08:11 EST |?Doc for 
I11-SNAPSHOT I even commented out this property from 
project.properties (since it is the default) but the ? is 
still there ...
Any clue of where is this coming from?

Any help will be greatly appreciated
-Tigran Antonyan

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

-
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] assembly plugin - best practices and concepts - questions OR how do i move files around using maven2

2005-11-22 Thread Ruel Loehr
I've setup a multiproj build using maven2 which covers a subset of my
project.  (I'm basically doing a proof of concept type thing).  The
portion I now need to explore is building my distribution.

I've ran into a few questions here which I can't find in the
documentation or the mailing lists. 

Our legacy build sets up an output structure sort of like this:

/build/output/servers
 /all
 /minimal
 /default

Inside the all, minimal, and default directories, I have different
subsets of the jars built from my project, as well as a number of
thirdparty dependencies.

I have a few tasks to cover:
1)  Setting up a directory structure similar to this
2)  Copying built jars into these directories
3)  Copying thirdparty jars into these directories?

First off, is the assembly plugin adequate for this task?
Assembly:assembly doesn't look quite right, as it just builds a bin
file.   Assembly:directory I suspect is the one to use.  Does it use the
same style of descriptor file?

So the net of this is, after building, it is common to move the
artifacts of the build into an ordered structure.   What is the best way
to accomplish this using m2?





Ruel Loehr
JBoss QA
 
-
512-626-2782
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel

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



RE: [m1.1b2] xdoc crumb separator has extra symbol ( ?)

2005-11-22 Thread Antonyan, Tigran\(GE Infrastructure\)
I just changed my browser encoding(was on auto select) and it is fine now,
however I looked at html source and there is no encoding attribute defined, it 
probably will be a good idea to define this...
Once again thank you for your respond

-Tigran

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 5:10 PM
To: 'Maven Users List'
Subject: RE: [m1.1b2] xdoc crumb separator has extra symbol ( ?)


You can try the 1.10-SNAPSHOT on http://cvs.apache.org/repository/

If it doesn't fix your problem, you can fill an issue on Jira to help us to fix 
it.

Arnaud


 -Message d'origine-
 De : Antonyan, Tigran(GE Infrastructure) 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 22 novembre 2005 22:56
 À : Maven Users List
 Objet : RE: [m1.1b2] xdoc crumb separator has extra symbol ( ?)
 
 Thanks for your reply!
 
 I'm using maven-xdoc-plugin-1.9.2, this is the latest one on 
 http://www.ibiblio.org/maven/maven/plugins/
 is there other repositories I need to keep an eye on?
 
 -Tigran
 
 
 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 4:36 PM
 To: 'Maven Users List'
 Subject: RE: [m1.1b2] xdoc crumb separator has extra symbol ( ?)
 
 
 Which xdoc release are you using ?
 I think there were several issues with the one bundled in maven 1.1b2.
 Did you try to update it ?
 
 Arnaud
  
 
  -Message d'origine-
  De : Antonyan, Tigran(GE Infrastructure) 
  [mailto:[EMAIL PROTECTED] Envoyé : mardi 22 novembre 
 2005 14:33 
  À : Maven Users List Objet : [m1.1b2] xdoc crumb separator 
 has extra 
  symbol ( ?)
  
  Hi All,
  
  I have maven.xdoc.crumb.separator=| in my project.properties file 
  (this is the default value) and for some reason when the site is 
  generated as a separator (on top left corner next to 
 generated time) I 
  have |? (without the  ) like this
 Last published: 11/22/2005 08:11 EST |?Doc for 
 I11-SNAPSHOT I 
  even commented out this property from project.properties 
 (since it is 
  the default) but the ? is still there ...
  Any clue of where is this coming from?
  
  Any help will be greatly appreciated
  -Tigran Antonyan
  
  
 -
  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]
 



-
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: m1.1b2 junit-report and jcoverage plugins don't share resources (running unit test twice)

2005-11-22 Thread Arnaud HERITIER
Thus the better choice is to open an issue.
We'll fix it ASAP.
It's quite simple to do.

Arnaud
 

 -Message d'origine-
 De : Antonyan, Tigran(GE Infrastructure) 
 [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 22 novembre 2005 23:12
 À : Maven Users List
 Objet : RE: m1.1b2 junit-report and jcoverage plugins don't 
 share resources (running unit test twice)
 
 Unfortunately cobertura doesn't have that kind of plugin 
 either, also its not supported for dashboard plugin 
 (jcoverage is), which I use for multiproject site.
 
 -Tigran
 
 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 4:29 PM
 To: 'Maven Users List'
 Subject: RE: m1.1b2 junit-report and jcoverage plugins don't 
 share resources (running unit test twice)
 
 
 You can open an issue on the jcoverage plugin.
 You can also take a look at the cobertura plugin on 
 sourceforge to see if it doesn't provide such a setting.
 
 Arnaud
  
 
  -Message d'origine-
  De : Antonyan, Tigran(GE Infrastructure) 
  [mailto:[EMAIL PROTECTED] Envoyé : lundi 21 novembre 
 2005 16:50 
  À : Maven Users List Objet : RE: m1.1b2 junit-report and jcoverage 
  plugins don't share resources (running unit test twice)
  
  Hi all,
  
  I have 2 plugins enabled for unit test reports: junit-report and 
  jcoverage, now each one of them is running unit test for 
 itself and I 
  was wondering if there is a way to make one of them (any 
 one of them) 
  to use already generated reports from other plugin and not run the 
  test again (this causes maven to fail on my machine because of java 
  heap size (can't change it) ).
  While surfing in jira I found similar problem that has been 
 solved for 
  junit and clover (added new property to clover
  plugin) http://jira.codehaus.org/browse/MPCLOVER-18
  Now I couldn't find anything for neither one of my plugins, does 
  anyone know a way around this?
  
  Thank you in advance,
  
  Regards,
  Tigran Antonyan
  
  
 -
  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]
 



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



[m2] Status of forking in surefire plugin

2005-11-22 Thread David Jackman
What's the latest status for forking support in the surefire plugin?  A
few of the projects I'm migrating to M2 use JNI to talk to Windows DLLs,
and I need to fork the tests to make sure the test process can find the
DLLs.  Is support going to be available soon or is there another
solution available for the time being?  
 
..David..
 


Re: [m2] surefire not honoring excludes

2005-11-22 Thread Brett Porter
I've noticed this recently too. You can exclude sources from
compilation in the compiler plugin (check the compiler plugin
reference for the configuration item name).

Cheers,
Brett

On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:
 I should further clarify not honoring the excludes.  My expectation
 was the exclusion applied to the compiler and test runner.  It appear to
 apply to only the test runner.
 So, is it correct the excluded test are compiled and not run?

 Is their a way to prevent a the compilation?

 Paul Spencer

 Paul Spencer wrote:
  The surefire plugin is not honoring the excludes
 
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  configuration
forktrue/fork
includes
  include**/*TestCase.java/include
/includes
excludes
  exclude implementation=java.lang.String
 com/foo/util/**
  /exclude
/excludes
  /configuration
/plugin
 
  o The exclude is the same one used for the maven-compiler-plugin.
  o mvn -X does not list the exclusion of the test source, just the source
[DEBUG]   (f) excludes = [com/foo/util/**]
 
  Paul Spencer
 
  -
  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]



[maven1] apt-doc goal flattens directory structure, alternative plugins available?

2005-11-22 Thread Corey Klaasmeyer
I'm using apt formatted documentation in my project with the aptdoc goal
on sourceforge. Unfortunately, the apt:generate goal flattens the
directory structure in maven.aptdoc.src.dir when it does it's
conversion.

Is there an alternative to the sourceforge aptdoc plugin for maven 1?

If not, can someone send a code snippet or pointers to how I might fix
this in the plugin.jelly? Xdoc does something similar, but I find the
script hard to understand.

Can the apt support in Maven 2 be backported?

Thanks,
Corey


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



Application packaging in Maven 2

2005-11-22 Thread Duane Homick
Im having trouble understanding how to package an application we have and am 
looking for some guidance on how to do this.

The application is essentially a JMS test client that has some third party 
dependencies.  These dependencies are defined in the pom.xml and available in 
the local repository.  I am able to get this client to build a .jar artifact, 
but this artifact does not contain any of the dependencies in it (I dont think 
it should).  I want to be able to run this application from another machine, 
but if I were to copy this jar to that machine and try to run it, it would fail 
for the obvious reasons that its dependencies do not exist on that machine.  
So, is there a way to assemble a package containing my jar file and all the 
dependency jars (preferably in a /lib directory) so that I can run my 
application on the other machine without needing to configure classpaths, 
etc...?

Thanks
Duane Homick
Sandvine Inc.

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



[Fwd: Re: [m2] RAR plugin]

2005-11-22 Thread Henry Isidro

Stephane Nicoll wrote:


Well it should. Could you please show your POM and the structure of your
project please?

Thx,
Stéphane

On 11/21/05, Henry Isidro [EMAIL PROTECTED] wrote:
 


I'm using the RAR plugin and I found out that it does not create a JAR
file to include in the package. So, I invoked the JAR plugin and
everything worked fine. Now, I tried using the install plugin to install
the rar file into my local repository and what happened was the plugin
installed the JAR file into my local repository renaming it as a RAR
file! The generated RAR file was untouched.

Here is what my POM looks like:

project
modelVersion4.0.0/modelVersion

artifactIdmy-ra/artifactId
packagingrar/packaging
nameMy Resource Adapter/name

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
version2.0/version
executions
execution
idcreate-jar/id
phasecompile/phase
goals
goaljar/goal
/goals
/execution
/executions
/plugin
/plugins
/build

dependencies

/project

I called M2 by the command 'mvn install'. Any thoughts would be greatly
appreciated.

Regards,
Henry

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


   




--
.::You're welcome ::.

 


Hi Stephane,

My pom looks like the one I wrote in my first post. My directory 
structure looks like this:


my-ra
   src
   main
 java
 rar
   test
 java
 resources

Regards,
Henry

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



Re: Build Error while creating project

2005-11-22 Thread Brett Porter
This is a different error you are getting: Cannot find Plexus
container for plugin:

Can you run with -e as suggested to see if it provides more information?

- Brett

On 11/23/05, Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED] wrote:
 I tried running mvn archetype:create -DgroupId=com.company
 -DartifactId=testapp -DarchetypeArtifactId=maven-archetype-webapp -U

 And still getting

 [INFO] Scanning for projects...
 [INFO]
 
 
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:create] (aggregator-style)
 [INFO]
 
 
 [INFO]
 
 
 [ERROR] BUILD ERROR
 [INFO]
 
 
 [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-3:create':
 Cannot find Plexus container for plugin:
 org.apache.maven.plugins:maven-archetype-plugin
 [INFO]
 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 
 [INFO] Total time:  1 second
 [INFO] Finished at: Tue Nov 22 10:29:28 EST 2005
 [INFO] Final Memory: 1M/2M
 [INFO]
 
 



 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 21, 2005 4:04 PM
 To: Maven Users List
 Subject: Re: Build Error while creating project

 Try -U: there is a bug in 2.0 where the plugin gets stuck if it is not
 found the first time.

 - Brett



 -
 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: Bad link to SVN on maven.apache.org

2005-11-22 Thread Brett Porter
On 11/23/05, Lukas Theussl [EMAIL PROTECTED] wrote:
 Hi Ian,

 You are accessing a deprecated page, the whole m1 site has moved to

 http://maven.apache.org/maven-1.x/

 the page that you want is here:

 http://maven.apache.org/maven-1.x/reference/plugins/ejb/cvs-usage.html


It's not the same issue. The docs for the m2 plugins have not been
updated to reflect the SVN move, which is what was referred to.

 Unfortunately it seems it is only considered of minor importance by the
 responsible people...

I'm not sure who you mean are the responsible people. You are a
committer too :)

It will take some time and there are plenty of things on the list. If
anyone has spare time to volunteer, I'll happily apply the changes.

What we need:
- a list of files to remove
- (preferably) a list of URLs to redirect old files to when the same
document moved to a new place, or a document was rewritten. There are
some in particular that are linked in a lot of places externally that
we can redirect.

I will put a recursive directory listing in the issue you mentioned to
facilitate this, but I don't have time to go through it in detail.

I will put a .htaccess file in redirecting /reference/ to
/maven-1.x/reference/ now.

Cheers,
Brett

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



RE: [M2]How to use filtering with build profiles?

2005-11-22 Thread Dennis Ho
Thanks Greg,

I tried your solution but I am still having problems, the
properties file just got copied over without any filtering.

I then changed my pom to:
:
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources
filters
  filtersrc/main/filters/env-dho/filter.properties/filter
/filters
:

But the filtering still doesn't happen when I simply execute
mvn -e process-resources.  The db-config.properties file just gets
copied over without any filtering.

My db-config.properties looks like:

db.drivername=${db.drivername}
db.urlscheme=${db.urlscheme}
db.hostname=${db.hostname}
db.name=${db.name}
db.username=${db.username}
db.password=${db.password}
db.port=${db.port}

And my filter.properties looks like:
db.drivername=com.inet.tds.TdsDriver
db.urlscheme=jdbc:inetdae7:
db.hostname=TESTDB01
db.name=DBNAME
db.username=user
db.password=passwd
db.port=1433

Did I specify the filter names wrong?

Thanks,

Dennis.


-Original Message-
From: Greg Case [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 11:28 AM
To: Maven Users List
Subject: Re: [M2]How to use filtering with build profiles?

Dennis,

I think what you want to do is move the filters definition into each
profile itself, rather than referencing a property in the non-profiled
build. At least that's how I am doing it, and it works fine. Not sure if
it
is best-practice or not... So your pom would like like this:

project
build
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
/build
profiles
profile
idenv-dho/id
activation
property
nameenv/name
valuedho/value
/property
/activation
build
filters
filtersrc/main/filters/env-dho/filter.properties/filter
/filters
/build
/profile
profile
idenv-dev/id
activation
activeByDefaulttrue/activeByDefault
/activation
build
filters
filtersrc/main/filters/env-dev/filter.properties/filter
/filters
/build
/profile
/profile

Hope that helps,

Greg Case

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



Re: [M2]How to use filtering with build profiles?

2005-11-22 Thread Brett Porter
I think there is a confusing aspect that we may not have resolved and
did intend to fix: resources are not inherited. Given that, I think
that the profile may not be inheriting the resources.

I'd have to look back if we fixed it already, but does it work if you
include the whole section ithe profile, or does it work if there is no
profile at all?

- Brett

On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
 Thanks Greg,

 I tried your solution but I am still having problems, the
 properties file just got copied over without any filtering.

 I then changed my pom to:
 :
 resources
   resource
 directorysrc/main/resources/directory
 filteringtrue/filtering
   /resource
 /resources
 filters
   filtersrc/main/filters/env-dho/filter.properties/filter
 /filters
 :

 But the filtering still doesn't happen when I simply execute
 mvn -e process-resources.  The db-config.properties file just gets
 copied over without any filtering.

 My db-config.properties looks like:

 db.drivername=${db.drivername}
 db.urlscheme=${db.urlscheme}
 db.hostname=${db.hostname}
 db.name=${db.name}
 db.username=${db.username}
 db.password=${db.password}
 db.port=${db.port}

 And my filter.properties looks like:
 db.drivername=com.inet.tds.TdsDriver
 db.urlscheme=jdbc:inetdae7:
 db.hostname=TESTDB01
 db.name=DBNAME
 db.username=user
 db.password=passwd
 db.port=1433

 Did I specify the filter names wrong?

 Thanks,

 Dennis.


 -Original Message-
 From: Greg Case [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 11:28 AM
 To: Maven Users List
 Subject: Re: [M2]How to use filtering with build profiles?

 Dennis,

 I think what you want to do is move the filters definition into each
 profile itself, rather than referencing a property in the non-profiled
 build. At least that's how I am doing it, and it works fine. Not sure if
 it
 is best-practice or not... So your pom would like like this:

 project
 build
 resources
 resource
 directorysrc/main/resources/directory
 filteringtrue/filtering
 /resource
 /resources
 /build
 profiles
 profile
 idenv-dho/id
 activation
 property
 nameenv/name
 valuedho/value
 /property
 /activation
 build
 filters
 filtersrc/main/filters/env-dho/filter.properties/filter
 /filters
 /build
 /profile
 profile
 idenv-dev/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 build
 filters
 filtersrc/main/filters/env-dev/filter.properties/filter
 /filters
 /build
 /profile
 /profile

 Hope that helps,

 Greg Case

 -
 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 use filtering with build profiles?

2005-11-22 Thread Dennis Ho
Hi Brett,

I actually commented out all my profiles and it still didn't
work.  

The following are the debug log, do I have an old version of plugin?

[DEBUG]   commons-io:commons-io:jar:1.0 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.0-beta-1:resources'
--
[DEBUG]   (f) filterPropertiesFile =
C:\eclipseWorkspace\workspace\ivs-reports\filter.properties
[DEBUG]   (f) outputDirectory =
C:\eclipseWorkspace\workspace\ivs-reports\target\classes
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) resources = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO]

-
---
[INFO] BUILD SUCCESSFUL
[INFO]

-
---
[INFO] Total time: 1 second
[INFO] Finished at: Tue Nov 22 16:26:05 PST 2005
[INFO] Final Memory: 2M/5M
[INFO]

-
---

Thanks,

Dennis.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 4:21 PM
To: Maven Users List
Subject: Re: [M2]How to use filtering with build profiles?

I think there is a confusing aspect that we may not have resolved and
did intend to fix: resources are not inherited. Given that, I think
that the profile may not be inheriting the resources.

I'd have to look back if we fixed it already, but does it work if you
include the whole section ithe profile, or does it work if there is no
profile at all?

- Brett

On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
 Thanks Greg,

 I tried your solution but I am still having problems, the
 properties file just got copied over without any filtering.

 I then changed my pom to:
 :
 resources
   resource
 directorysrc/main/resources/directory
 filteringtrue/filtering
   /resource
 /resources
 filters
   filtersrc/main/filters/env-dho/filter.properties/filter
 /filters
 :

 But the filtering still doesn't happen when I simply execute
 mvn -e process-resources.  The db-config.properties file just gets
 copied over without any filtering.

 My db-config.properties looks like:

 db.drivername=${db.drivername}
 db.urlscheme=${db.urlscheme}
 db.hostname=${db.hostname}
 db.name=${db.name}
 db.username=${db.username}
 db.password=${db.password}
 db.port=${db.port}

 And my filter.properties looks like:
 db.drivername=com.inet.tds.TdsDriver
 db.urlscheme=jdbc:inetdae7:
 db.hostname=TESTDB01
 db.name=DBNAME
 db.username=user
 db.password=passwd
 db.port=1433

 Did I specify the filter names wrong?

 Thanks,

 Dennis.


 -Original Message-
 From: Greg Case [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 11:28 AM
 To: Maven Users List
 Subject: Re: [M2]How to use filtering with build profiles?

 Dennis,

 I think what you want to do is move the filters definition into each
 profile itself, rather than referencing a property in the
non-profiled
 build. At least that's how I am doing it, and it works fine. Not sure
if
 it
 is best-practice or not... So your pom would like like this:

 project
 build
 resources
 resource
 directorysrc/main/resources/directory
 filteringtrue/filtering
 /resource
 /resources
 /build
 profiles
 profile
 idenv-dho/id
 activation
 property
 nameenv/name
 valuedho/value
 /property
 /activation
 build
 filters
 filtersrc/main/filters/env-dho/filter.properties/filter
 /filters
 /build
 /profile
 profile
 idenv-dev/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 build
 filters
 filtersrc/main/filters/env-dev/filter.properties/filter
 /filters
 /build
 /profile
 /profile

 Hope that helps,

 Greg Case

 -
 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: Bad link to SVN on maven.apache.org

2005-11-22 Thread Lukas Theussl




It's not the same issue. The docs for the m2 plugins have not been
updated to reflect the SVN move, which is what was referred to.


You're right, sorry about the mix-up.

But it just underscores the point even more - not only our users are 
confused by all the ancient documentation sites that are still floating 
around ... ;)



-Lukas



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



Re: [M2]How to use filtering with build profiles?

2005-11-22 Thread Brett Porter
Yes, you should be using 2.0.

mvn -U process-resources will automatically update it (assuming you
are using Maven 2.0 itself?)

- Brett

On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
 Hi Brett,

 I actually commented out all my profiles and it still didn't
 work.

 The following are the debug log, do I have an old version of plugin?

 [DEBUG]   commons-io:commons-io:jar:1.0 (selected for runtime)
 [DEBUG] Configuring mojo
 'org.apache.maven.plugins:maven-resources-plugin:2.0-beta-1:resources'
 --
 [DEBUG]   (f) filterPropertiesFile =
 C:\eclipseWorkspace\workspace\ivs-reports\filter.properties
 [DEBUG]   (f) outputDirectory =
 C:\eclipseWorkspace\workspace\ivs-reports\target\classes
 [DEBUG]   (f) project = [EMAIL PROTECTED]
 [DEBUG]   (f) resources = [EMAIL PROTECTED]
 [DEBUG] -- end configuration --
 [INFO] [resources:resources]
 [INFO]
 
 -
 ---
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 -
 ---
 [INFO] Total time: 1 second
 [INFO] Finished at: Tue Nov 22 16:26:05 PST 2005
 [INFO] Final Memory: 2M/5M
 [INFO]
 
 -
 ---

 Thanks,

 Dennis.

 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 4:21 PM
 To: Maven Users List
 Subject: Re: [M2]How to use filtering with build profiles?

 I think there is a confusing aspect that we may not have resolved and
 did intend to fix: resources are not inherited. Given that, I think
 that the profile may not be inheriting the resources.

 I'd have to look back if we fixed it already, but does it work if you
 include the whole section ithe profile, or does it work if there is no
 profile at all?

 - Brett

 On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
  Thanks Greg,
 
  I tried your solution but I am still having problems, the
  properties file just got copied over without any filtering.
 
  I then changed my pom to:
  :
  resources
resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
/resource
  /resources
  filters
filtersrc/main/filters/env-dho/filter.properties/filter
  /filters
  :
 
  But the filtering still doesn't happen when I simply execute
  mvn -e process-resources.  The db-config.properties file just gets
  copied over without any filtering.
 
  My db-config.properties looks like:
 
  db.drivername=${db.drivername}
  db.urlscheme=${db.urlscheme}
  db.hostname=${db.hostname}
  db.name=${db.name}
  db.username=${db.username}
  db.password=${db.password}
  db.port=${db.port}
 
  And my filter.properties looks like:
  db.drivername=com.inet.tds.TdsDriver
  db.urlscheme=jdbc:inetdae7:
  db.hostname=TESTDB01
  db.name=DBNAME
  db.username=user
  db.password=passwd
  db.port=1433
 
  Did I specify the filter names wrong?
 
  Thanks,
 
  Dennis.
 
 
  -Original Message-
  From: Greg Case [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 22, 2005 11:28 AM
  To: Maven Users List
  Subject: Re: [M2]How to use filtering with build profiles?
 
  Dennis,
 
  I think what you want to do is move the filters definition into each
  profile itself, rather than referencing a property in the
 non-profiled
  build. At least that's how I am doing it, and it works fine. Not sure
 if
  it
  is best-practice or not... So your pom would like like this:
 
  project
  build
  resources
  resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
  /resource
  /resources
  /build
  profiles
  profile
  idenv-dho/id
  activation
  property
  nameenv/name
  valuedho/value
  /property
  /activation
  build
  filters
  filtersrc/main/filters/env-dho/filter.properties/filter
  /filters
  /build
  /profile
  profile
  idenv-dev/id
  activation
  activeByDefaulttrue/activeByDefault
  /activation
  build
  filters
  filtersrc/main/filters/env-dev/filter.properties/filter
  /filters
  /build
  /profile
  /profile
 
  Hope that helps,
 
  Greg Case
 
  -
  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]



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



RE: [M2]How to use filtering with build profiles?

2005-11-22 Thread Dennis Ho
Thanks, it works now.  And Greg's method also works.

I was playing with m2 beta a couple of months back so I have all the old
plug-ins.  In general, is it recommended to run mvn -U periodically to
get the latest plug-ins?  

Dennis.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 22, 2005 4:51 PM
To: Maven Users List
Subject: Re: [M2]How to use filtering with build profiles?

Yes, you should be using 2.0.

mvn -U process-resources will automatically update it (assuming you
are using Maven 2.0 itself?)

- Brett

On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
 Hi Brett,

 I actually commented out all my profiles and it still didn't
 work.

 The following are the debug log, do I have an old version of plugin?

 [DEBUG]   commons-io:commons-io:jar:1.0 (selected for runtime)
 [DEBUG] Configuring mojo
 'org.apache.maven.plugins:maven-resources-plugin:2.0-beta-1:resources'
 --
 [DEBUG]   (f) filterPropertiesFile =
 C:\eclipseWorkspace\workspace\ivs-reports\filter.properties
 [DEBUG]   (f) outputDirectory =
 C:\eclipseWorkspace\workspace\ivs-reports\target\classes
 [DEBUG]   (f) project = [EMAIL PROTECTED]
 [DEBUG]   (f) resources = [EMAIL PROTECTED]
 [DEBUG] -- end configuration --
 [INFO] [resources:resources]
 [INFO]


 -
 ---
 [INFO] BUILD SUCCESSFUL
 [INFO]


 -
 ---
 [INFO] Total time: 1 second
 [INFO] Finished at: Tue Nov 22 16:26:05 PST 2005
 [INFO] Final Memory: 2M/5M
 [INFO]


 -
 ---

 Thanks,

 Dennis.

 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 22, 2005 4:21 PM
 To: Maven Users List
 Subject: Re: [M2]How to use filtering with build profiles?

 I think there is a confusing aspect that we may not have resolved and
 did intend to fix: resources are not inherited. Given that, I think
 that the profile may not be inheriting the resources.

 I'd have to look back if we fixed it already, but does it work if you
 include the whole section ithe profile, or does it work if there is no
 profile at all?

 - Brett

 On 11/23/05, Dennis Ho [EMAIL PROTECTED] wrote:
  Thanks Greg,
 
  I tried your solution but I am still having problems, the
  properties file just got copied over without any filtering.
 
  I then changed my pom to:
  :
  resources
resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
/resource
  /resources
  filters
filtersrc/main/filters/env-dho/filter.properties/filter
  /filters
  :
 
  But the filtering still doesn't happen when I simply execute
  mvn -e process-resources.  The db-config.properties file just gets
  copied over without any filtering.
 
  My db-config.properties looks like:
 
  db.drivername=${db.drivername}
  db.urlscheme=${db.urlscheme}
  db.hostname=${db.hostname}
  db.name=${db.name}
  db.username=${db.username}
  db.password=${db.password}
  db.port=${db.port}
 
  And my filter.properties looks like:
  db.drivername=com.inet.tds.TdsDriver
  db.urlscheme=jdbc:inetdae7:
  db.hostname=TESTDB01
  db.name=DBNAME
  db.username=user
  db.password=passwd
  db.port=1433
 
  Did I specify the filter names wrong?
 
  Thanks,
 
  Dennis.
 
 
  -Original Message-
  From: Greg Case [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 22, 2005 11:28 AM
  To: Maven Users List
  Subject: Re: [M2]How to use filtering with build profiles?
 
  Dennis,
 
  I think what you want to do is move the filters definition into
each
  profile itself, rather than referencing a property in the
 non-profiled
  build. At least that's how I am doing it, and it works fine. Not
sure
 if
  it
  is best-practice or not... So your pom would like like this:
 
  project
  build
  resources
  resource
  directorysrc/main/resources/directory
  filteringtrue/filtering
  /resource
  /resources
  /build
  profiles
  profile
  idenv-dho/id
  activation
  property
  nameenv/name
  valuedho/value
  /property
  /activation
  build
  filters
  filtersrc/main/filters/env-dho/filter.properties/filter
  /filters
  /build
  /profile
  profile
  idenv-dev/id
  activation
  activeByDefaulttrue/activeByDefault
  /activation
  build
  filters
  filtersrc/main/filters/env-dev/filter.properties/filter
  /filters
  /build
  /profile
  /profile
 
  Hope that helps,
 
  Greg Case
 
 
-
  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 

Re: [m2] How to set a Mojo property from settings.xml

2005-11-22 Thread Odea Ching

Hi David,

Check out this url from the Maven documentation for setting the 
configuration in the settings.xml file:

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Regards,
Deng

David Jackman wrote:


One of the properties for a Mojo I'm writing is really a user-specific
thing, and ought to be set in each user's settings.xml file.  The guide
for configuring plugins only talks about setting configuration
properties in pom.xml, but not how to reference values set in
settings.xml.  How do I do this?

..David..


 




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



Re: Application packaging in Maven 2

2005-11-22 Thread dan tran
1 you can use maven-asssembly-plugin to unpack all your dependency jars and
repackage them into one big jar files.

2. your can cookup a plugin which depends on those jars  which you are going
to place on a internal remote repository
   this way you can run your app any where you like.  Just need a  pom file
which has your remote repo info .

-Dan



On 11/22/05, Duane Homick [EMAIL PROTECTED] wrote:

 Im having trouble understanding how to package an application we have and
 am looking for some guidance on how to do this.

 The application is essentially a JMS test client that has some third party
 dependencies.  These dependencies are defined in the pom.xml and available
 in the local repository.  I am able to get this client to build a .jar
 artifact, but this artifact does not contain any of the dependencies in it
 (I dont think it should).  I want to be able to run this application from
 another machine, but if I were to copy this jar to that machine and try to
 run it, it would fail for the obvious reasons that its dependencies do not
 exist on that machine.  So, is there a way to assemble a package containing
 my jar file and all the dependency jars (preferably in a /lib directory) so
 that I can run my application on the other machine without needing to
 configure classpaths, etc...?

 Thanks
 Duane Homick
 Sandvine Inc.

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




Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Peter A. Pilgrim

Brett Porter wrote:

Odd...

can you edit the BootstrapInstaller.java and add -X as an optional
in runMaven() ?

I'd like to know what the plexus dependencies are when these tests are run.

- Brett

On 11/22/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:


Unfortunately I am still getting this error.
I remove the files from repository codebase and even tried a re-checkout
from SVN,

Help!



What error diagnostic file do want me to send?


--
Peter Pilgrim
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Re: [m2] surefire not honoring excludes

2005-11-22 Thread Paul Spencer

Jesse,
I was trying to use excludes to exclude tests from compiling when 
converting my project from m1 to m2.  The excludes only affect what is 
executed, not compiled.


Paul Spencer


Jesse McConnell wrote:

I was just poking through this code...and it was excluding all the right
stuff for me :/

so for this setup below, you want all test cases that end in
TestCase.javaexcept for those in the com/foo/util directory...right?
and this is in
src/test/java...

this doesn't add to the existing patterns to find tests, if you specify
includes and excludes those are the only patterns used to find/exclude tests

jesse

On 11/22/05, Paul Spencer [EMAIL PROTECTED] wrote:


The surefire plugin is not honoring the excludes

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
forktrue/fork
includes
include**/*TestCase.java/include
/includes
excludes
exclude implementation=java.lang.String
com/foo/util/**
/exclude
/excludes
/configuration
/plugin

o The exclude is the same one used for the maven-compiler-plugin.
o mvn -X does not list the exclusion of the test source, just the source
[DEBUG] (f) excludes = [com/foo/util/**]

Paul Spencer

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






--
jesse mcconnell




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



Re: [m2] fork to run junit tests

2005-11-22 Thread Paul Spencer

Patrick,
See the following post.
http://www.mail-archive.com/users@maven.apache.org/msg28712.html

Paul Spencer

Patrick O'shea wrote:

Hi,

Is it possible to fork to run the junit tests ?
I'm using external code that is called when the forked jvm exits after the 
tests are run.
 
thanks in advance

Patrick



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



Re: [m2] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Brett Porter
The output of the maven-core part of the build

Cheers,
Brett

On 11/23/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:
 Brett Porter wrote:
  Odd...
 
  can you edit the BootstrapInstaller.java and add -X as an optional
  in runMaven() ?
 
  I'd like to know what the plexus dependencies are when these tests are run.
 
  - Brett
 
  On 11/22/05, Peter A. Pilgrim [EMAIL PROTECTED] wrote:
 
 Unfortunately I am still getting this error.
 I remove the files from repository codebase and even tried a re-checkout
 from SVN,
 
 Help!
 

 What error diagnostic file do want me to send?


 --
 Peter Pilgrim
 __ _ _ _
/ //__  // ___// ___/   +  Serverside Java
   / /___/ // /__ / /__ +  Struts
  / // ___// ___// ___/ +  Expresso Committer
   __/ // /__ / /__ / /__   +  Independent Contractor
  /___///////   +  Intrinsic Motivation
 On Line Resume
 ||
 \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

 -
 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] Bootstrap Maven Source Code does not build on Linux

2005-11-22 Thread Peter A. Pilgrim

Pilgrim, Peter wrote:

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]


====



Odd...

can you edit the BootstrapInstaller.java and add -X as an optional
in runMaven() ?

I'd like to know what the plexus dependencies are when these 
tests are run.


- Brett



I will do this tonight at home after work. If that is alright with you.

Strange. I will also check that the BASH profile is alright as well.
I am sure that there are no lingering environmental variables e.g
M2_HOME.



Ok here is the output with the ``mvn -X '' command.
BTW: I did ``svn update'' and removed  ``rm 
~/.m2/repository/org/codebase/plexus'' beforehand



[146]  c org.apache.maven.usability.PluginErrorDiagnoserTest.txt
---
Battery: org.apache.maven.usability.PluginErrorDiagnoserTest
---
testShouldDiagnoseInvalidPluginConfiguration(org.apache.maven.usability.PluginErrorDiagnoserTest)

[ stdout ] ---

-
Visual output for testShouldDiagnoseInvalidPluginConfiguration:
-

[ stderr ] ---


[ stacktrace ] ---

java.lang.NoSuchMethodError: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException.getFailedConfiguration()Lorg/codehaus/plexus/configuration/PlexusConfiguration;
at 
org.apache.maven.plugin.PluginConfigurationException.buildConfigurationDiagnosticMessage(PluginConfigurationException.java:265)
at 
org.apache.maven.usability.PluginConfigurationDiagnoser.diagnose(PluginConfigurationDiagnoser.java:49)
at 
org.apache.maven.usability.PluginErrorDiagnoserTest.testShouldDiagnoseInvalidPluginConfiguration(PluginErrorDiagnoserTest.java:73)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.codehaus.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:246)
at 
org.codehaus.surefire.battery.JUnitBattery.execute(JUnitBattery.java:220)

at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:203)
at org.codehaus.surefire.Surefire.run(Surefire.java:152)
at org.codehaus.surefire.Surefire.run(Surefire.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
at 
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:229)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at 

Re: [m2] surefire not honoring excludes

2005-11-22 Thread Paul Spencer

Brett,
1) The current behavior allows abstract test classes to be compiled but
   NOT executed, which is good.  I currently use this functionality
   on other projects.

2) The exclude list form the compiler plugin is not honored by the
   surefire plugin relative compilation of the test source.  In my
   case the exclude list of the compiler plugin was the same as the
   exclude list for the surefire plugin.  All things considered, I am
   not sure if the surefire plugin should inherit the compiler's exclude
   list.

3) Is their a different compiler plugin used by surefire?
   If yes, this what how is it addressed, i.e. artifactId?
   I have verified that the compiler configuration tags, like source
   and target in the surefire plugin configuration are not passed
   to the compiler plugin.  To me, this is a very minor issue.  I
   just mentioned it to pass along what I have learned.

Paul Spencer

Brett Porter wrote:

I've noticed this recently too. You can exclude sources from
compilation in the compiler plugin (check the compiler plugin
reference for the configuration item name).

Cheers,
Brett

On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:


I should further clarify not honoring the excludes.  My expectation
was the exclusion applied to the compiler and test runner.  It appear to
apply to only the test runner.
So, is it correct the excluded test are compiled and not run?

Is their a way to prevent a the compilation?

Paul Spencer

Paul Spencer wrote:


The surefire plugin is not honoring the excludes

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   configuration
 forktrue/fork
 includes
   include**/*TestCase.java/include
 /includes
 excludes
   exclude implementation=java.lang.String
  com/foo/util/**
   /exclude
 /excludes
   /configuration
 /plugin

o The exclude is the same one used for the maven-compiler-plugin.
o mvn -X does not list the exclusion of the test source, just the source
 [DEBUG]   (f) excludes = [com/foo/util/**]

Paul Spencer

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





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



release:prepare optional build step

2005-11-22 Thread dan tran
Hello, At my shop, we do daily realease using maven-release-plugin.
Currently maven makesure the source is buildable before perform the label.
Then at the perform step, maven builds again.

Is it reasonable to have maven skips the build at prepare step.
This way we can cut down the build time ( in half) ?

We can introduce a doPrepareBuild  field which defaults to true.

-D


Re: [m2] surefire not honoring excludes

2005-11-22 Thread Brett Porter
On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:
 Brett,
 1) The current behavior allows abstract test classes to be compiled but
 NOT executed, which is good.  I currently use this functionality
 on other projects.

ok, so that's a reason to keep it as is with both configurations.


 2) The exclude list form the compiler plugin is not honored by the
 surefire plugin relative compilation of the test source.  In my
 case the exclude list of the compiler plugin was the same as the
 exclude list for the surefire plugin.  All things considered, I am
 not sure if the surefire plugin should inherit the compiler's exclude
 list.

the surefire plugin doesn't inspect it at all. the only way it is
inherited is that if the test case is not compiled, surefire won't
find it to run so it is implicitly excluded.


 3) Is their a different compiler plugin used by surefire?
 If yes, this what how is it addressed, i.e. artifactId?
 I have verified that the compiler configuration tags, like source
 and target in the surefire plugin configuration are not passed
 to the compiler plugin.  To me, this is a very minor issue.  I
 just mentioned it to pass along what I have learned.

same artifact ID - to affect compilation the configuration must be on
maven-compiler-plugin.

Cheers,
Brett

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



[m2] Moving versions from project.xml to pom.xml

2005-11-22 Thread Paul Spencer
I am starting the process of converting projects from m1 to m2. My m1 
projects have a lot of historical information in the versions tag of 
project.xml that I would like to preserve.  My question is, where is the 
version history maintained in m2?


Paul Spencer

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



The POM for commons-discovery v0.2 is missing scopetest/scope for the junit dependency.

2005-11-22 Thread Paul Spencer
The POM for commons-discovery v0.2 is missing scopetest/scope for 
the junit dependency.

http://www.ibiblio.org/maven2/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.pom

I am not sure where to report this.

Paul Spencer

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



Re: The POM for commons-discovery v0.2 is missing scopetest/scope for the junit dependency.

2005-11-22 Thread Carlos Sanchez
http://maven.apache.org/guides/mini/guide-maven-evangelism.html

On 11/22/05, Paul Spencer [EMAIL PROTECTED] wrote:
 The POM for commons-discovery v0.2 is missing scopetest/scope for
 the junit dependency.
 http://www.ibiblio.org/maven2/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.pom

 I am not sure where to report this.

 Paul Spencer

 -
 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: The POM for commons-discovery v0.2 is missing scopetest/scope for the junit dependency.

2005-11-22 Thread Dion Gillard
Since the commons-discovery team didn't create the .pom file, it needs
to be filed against M2.

I've updated the M1 project.xml to have properties[scope] = test for junit.

On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:
 The POM for commons-discovery v0.2 is missing scopetest/scope for
 the junit dependency.
 http://www.ibiblio.org/maven2/commons-discovery/commons-discovery/0.2/commons-discovery-0.2.pom

 I am not sure where to report this.

 Paul Spencer

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




--
http://www.multitask.com.au/people/dion/
You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live. - George
Bernard Shaw

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



Re: [m2] Moving versions from project.xml to pom.xml

2005-11-22 Thread Brett Porter
In the repository - there is no direct conversion here, but it could
be constructed.

- Brett

On 11/23/05, Paul Spencer [EMAIL PROTECTED] wrote:
 I am starting the process of converting projects from m1 to m2. My m1
 projects have a lot of historical information in the versions tag of
 project.xml that I would like to preserve.  My question is, where is the
 version history maintained in m2?

 Paul Spencer

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



  1   2   >