Re: NO properties were copied when building WAR !!!

2003-11-20 Thread Eric Chow
yes, I just want to copy those .properties file into the /WEB-INF/classes


Eric

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 21, 2003 1:48 PM
Subject: Re: NO properties were copied when building WAR !!!


> You do know that '*.properties' in your pom only copies .properties files
> in the ${basedir}/src/conf directory?
>
> Is that what you want?
> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
>
>
>
> "Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 02:16:07 PM:
>
> > In fact, I used that format in the very beginning. But also failed.
> >
> > Eric
> >
> >
> >
> > - Original Message - 
> > From: <[EMAIL PROTECTED]>
> > To: "Maven Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, November 21, 2003 11:19 AM
> > Subject: Re: NO properties were copied when building WAR !!!
> >
> >
> > > "Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 01:56:39 PM:
> > >
> > > > Hello,
> > > >
> > > > Maven doesn't copy any properties to the WEB-INF/classes when
> creating
> > > WAR.
> > > >
> > > > But it works fine in WinXP.
> > > >
> > > >
> > > > Platform:
> > > > Win98 SE
> > > > JDK1.4.2
> > > > Maven-1.0rc1
> > > >
> > > > 
> > > >
> [EMAIL PROTECTED]
> > > > src/java
> > > > src/test
> > > >
> > > > 
> > > >   
> > > > **/*Test.java
> > > >   
> > > >   
> > > > **/NaughtyTest.java
> > > >   
> > > > 
> > > >
> > > > 
> > > >   
> > > > ${basedir}/src/conf
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > >
> > > See http://maven.apache.org/reference/project-descriptor.html#includes
> > >
> > > It's not clear, but the format for the  element is:
> > >
> > >*.properties
> > >hibernate.cfg.xml
> > > Try that and let us know how it goes.
> > > --
> > > dIon Gillard, Multitask Consulting
> > > Blog:  http://blogs.codehaus.org/people/dion/
> > >
> > >
> > >
> > > -
> > > 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]



hibernate:schema-export error

2003-11-20 Thread Ramana Ramachandran
Hi
I am using maven 1.0RC1 and
maven-hibernate-plugin-1.0-SNAPHOT and trying to
generate the ddl script for hsqldb.  However, I am
getting the following error when I try to execute
“maven.bat –debug hibernate:schema-export”

Root cause
java.lang.NoClassDefFoundError:
org/springframework/orm/hibernate/support/HibernateDaoSupport

I have checked {user.home}/.maven repository has the
spring jar file which does have the class file
org/springframework/orm/hibernate/support/HibernateDaoSupport.class

BTW maven-hibernate-plugin-1.0-SNAPHOT\project.xml has
the following spring dependency

  spring  
  1.0-M2




Any help would be greatly appreciated.
Thanks
Ramana

Debug log
=
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

[DEBUG] Adding reference: maven.dependency.classpath
-> C:\Documents and
Settings\rramachandran.CORP\.maven\repository\hsqldb\jars\hsqldb-1.7.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\hibernate\jars\hibernate-2.0.3.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\hibernate\jars\hibernate-tools-2.0.2.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\odmg\jars\odmg-3.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\cglib\jars\cglib-1.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\dom4j\jars\dom4j-1.4.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-beanutils\jars\commons-beanutils-1.6.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-collections\jars\commons-collections-2.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-dbcp\jars\commons-dbcp-1.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-lang\jars\commons-lang-1.0.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-logging\jars\commons-logging-1.0.3.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-pool\jars\commons-pool-1.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\xalan\jars\xalan-2.4.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\xerces\jars\xerces-2.4.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\xml-apis\jars\xml-apis-1.0.b2.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\jdom\jars\jdom-b8.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\spring\jars\spring-1.0-M2.jar
[available] [VERBOSE] Found: src\java
[available] [VERBOSE] Found: src\test
[DEBUG] Adding reference: maven-classpath -> 
[DEBUG] Adding reference: maven.compile.src.set -> 
[DEBUG] Adding reference: maven.test.compile.src.set
-> 
[DEBUG] Adding reference: maven.dependency.classpath
-> C:\Documents and
Settings\rramachandran.CORP\.maven\repository\hibernate\jars\hibernate-2.0.3.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\ant\jars\ant-1.5.3-1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-lang\jars\commons-lang-1.0.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-beanutils\jars\commons-beanutils-1.6.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-dbcp\jars\commons-dbcp-1.0-dev.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-collections\jars\commons-collections-2.1.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-logging\jars\commons-logging-1.0.3.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\commons-pool\jars\commons-pool-1.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\xml-apis\jars\xml-apis-1.0.b2.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\xerces\jars\xerces-2.4.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\odmg\jars\odmg-3.0.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\dom4j\jars\dom4j-1.4-dev-8.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\spring\jars\spring-1.0-M2.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\jdom\jars\jdom-b8.jar;C:\Documents
and
Settings\rramachandran.CORP\.maven\repository\cglib\jars\cglib-1.0.jar
[DEBUG] Adding reference: maven-classpath -> 
[DEBUG] Adding reference: maven.compile.src.set -> 
[DEBUG] Adding reference: maven.test.compile.src.set
-> 
>hibernate:init:

hibernate:schema-export:
[echo] Exporting Hibernate Schema file
[echo]
basedir=C:\eclipse_3_0M4\workspace\ContactManagementSystem
file:/C:/eclipse_3_0M4/workspace/ContactManagementSystem/target/classes/
Excludes:
Includes:**/*.hbm.xml
Base
dir:C:\eclipse_3_0M4\workspace\ContactManagementSy

Re: Variable substitution in xdocs

2003-11-20 Thread Jeffrey Bonevich
I have tried setting up a very simple multiproject (a master project and 
one subproject) - still no go for $pom or $project.  Definetely gets 
$reactorProjects in the top level, but not much else I can find in the 
subproject.  Is there a context at which I can get that could spit out 
the names of all variables available to the page when processing?

jeff

[EMAIL PROTECTED] wrote:
From memory the xdocs plugin will look in target/navigation.xml for a 
generated file in preference to ${maven.docs.src}/navigation.xml.

multiproject uses this to pre-process the nav file.

You could simply steal the stuff from multiproject.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Jeffrey Bonevich <[EMAIL PROTECTED]> wrote on 20/11/2003 11:12:41 AM:


I want to refer to pom specific values in my navigation.xml file (i.e. 
current version, etc.).  Can I do variable substitution in xdoc plugin? 
 Since it is velocity based I assume so, but I can find no 
documentation that tells me what variables I can refer to.  ${pom} and 
${reactorProject} do not seem to be among them.  I have seen one example 


that used a velocity forEach loop and refers to the variable 
$reactorProjects.  This was in the context of a multi-project; involved 
setting an attribute on maven:reactor (postprocessing=true).  I suspect 
maybe I can break in here with maven.xml and add my own variables to 
reference in my xdocs, but thought I would ask before rolling my own.

What ever anyone can feed me, I will be happy to compile and put on the 
wiki.

jeff

-
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: NO properties were copied when building WAR !!!

2003-11-20 Thread dion
You do know that '*.properties' in your pom only copies .properties files 
in the ${basedir}/src/conf directory?

Is that what you want?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



"Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 02:16:07 PM:

> In fact, I used that format in the very beginning. But also failed.
> 
> Eric
> 
> 
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: "Maven Users List" <[EMAIL PROTECTED]>
> Sent: Friday, November 21, 2003 11:19 AM
> Subject: Re: NO properties were copied when building WAR !!!
> 
> 
> > "Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 01:56:39 PM:
> > 
> > > Hello,
> > > 
> > > Maven doesn't copy any properties to the WEB-INF/classes when 
creating 
> > WAR.
> > > 
> > > But it works fine in WinXP.
> > > 
> > > 
> > > Platform:
> > > Win98 SE
> > > JDK1.4.2
> > > Maven-1.0rc1
> > > 
> > > 
> > > 
[EMAIL PROTECTED]
> > > src/java
> > > src/test
> > > 
> > > 
> > >   
> > > **/*Test.java
> > >   
> > >   
> > > **/NaughtyTest.java
> > >   
> > > 
> > > 
> > > 
> > >   
> > > ${basedir}/src/conf
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > >   
> > 
> > See http://maven.apache.org/reference/project-descriptor.html#includes
> > 
> > It's not clear, but the format for the  element is:
> > 
> >*.properties
> >hibernate.cfg.xml
> > Try that and let us know how it goes.
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:  http://blogs.codehaus.org/people/dion/
> > 
> > 
> > 
> > -
> > 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: NO properties were copied when building WAR !!!

2003-11-20 Thread Eric Chow
In fact, I used that format in the very beginning. But also failed.

Eric



- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 21, 2003 11:19 AM
Subject: Re: NO properties were copied when building WAR !!!


> "Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 01:56:39 PM:
> 
> > Hello,
> > 
> > Maven doesn't copy any properties to the WEB-INF/classes when creating 
> WAR.
> > 
> > But it works fine in WinXP.
> > 
> > 
> > Platform:
> > Win98 SE
> > JDK1.4.2
> > Maven-1.0rc1
> > 
> > 
> > [EMAIL PROTECTED]
> > src/java
> > src/test
> > 
> > 
> >   
> > **/*Test.java
> >   
> >   
> > **/NaughtyTest.java
> >   
> > 
> > 
> > 
> >   
> > ${basedir}/src/conf
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> 
> See http://maven.apache.org/reference/project-descriptor.html#includes
> 
> It's not clear, but the format for the  element is:
> 
>*.properties
>hibernate.cfg.xml
> Try that and let us know how it goes.
> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
> 
> 
> 
> -
> 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: NO properties were copied when building WAR !!!

2003-11-20 Thread dion
"Eric Chow" <[EMAIL PROTECTED]> wrote on 21/11/2003 01:56:39 PM:

> Hello,
> 
> Maven doesn't copy any properties to the WEB-INF/classes when creating 
WAR.
> 
> But it works fine in WinXP.
> 
> 
> Platform:
> Win98 SE
> JDK1.4.2
> Maven-1.0rc1
> 
> 
> [EMAIL PROTECTED]
> src/java
> src/test
> 
> 
>   
> **/*Test.java
>   
>   
> **/NaughtyTest.java
>   
> 
> 
> 
>   
> ${basedir}/src/conf
> 
>   
>   
> 
>   
> 
>   

See http://maven.apache.org/reference/project-descriptor.html#includes

It's not clear, but the format for the  element is:

   *.properties
   hibernate.cfg.xml
Try that and let us know how it goes.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



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



RE: plugin dependencies for plugin user

2003-11-20 Thread J. Matthew Pryor
Remind me to use

maven contentvalidate

in future so I can diagnose my own typos ...

problem solved, badly formed  section

jmp

-Original Message-
From: J. Matthew Pryor
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 2:03 PM
To: Maven Users List
Subject: RE: plugin dependencies for plugin user


Thanks that works.  I am now hoping to also be able to
include the actual
dependency classpath from the "user" project as well. 
i.e. AndroMDA has a
base set of plugins. It will search the classpath for
others. I would like
it to be able to find any other AndroMDA plugins that
are specified in the
project.xml of the project using my AndroMDA maven
plugin.  I have tried
this:   
 [snip]  



  but
maven.dependency.classpath seems to be empty, despite
there being entries in
the user project dependencies section  Have I got
something obvious wrong?
Thanks, Matthew  -Original Message- From:
Brett Porter
[mailto:[EMAIL PROTECTED] Sent: Monday,
November 17, 2003 11:27 AM
To: 'Maven Users List' Subject: RE: plugin
dependencies for plugin user
Hi,  Maven.dependency.classpath only uses what is in
the project's
descriptor, however if you are just building an ant
classpath you can create
the path with your plugin's dependencies using
dependency.getPath. Here is
an example from cactus: 




   





Cheers, Brett  >
-Original
Message- > From: J. Matthew Pryor
[mailto:[EMAIL PROTECTED] >
Sent: Monday, 17 November 2003 11:14 AM > To:
[EMAIL PROTECTED] >
Subject: plugin dependencies for plugin user > > >
Hello, > > I am writing
an AndroMDA (http://www.adnromda.org) > plugin for
Maven and > basically
have it working but I am having trouble >
understanding > dependencies. > >
The AndroMDA pluging requires a bunch of jars to >
compile (but mostly at >
runtime). I have listed these in the dependencies >
section of the
project.xml > for the plugin. I can compile & install
the plugin no >
problem. > > However the only way I can get it to work
is by > duplicating
the dependcy > list from the plugin into the
project.xml file of the >
project that uses the > plugin. > > I don't think this
is the right thing to
do, it seems > like a workaround. I > have read all I
can and searched
archives but cannot > find the answer to have > these
dependencies "flow
through" to the project that > uses the plugin. This >
may be complicated by
the fact that the plugin.jelly > has to do an Ant >
taskdef, I perform it
like this: > >   >
classname="org.andromda.core.anttasks.AndroMDAGenTask">
>>
 refid="maven.dependency.classpath"/> >  
 >
 > > But the taskdef fails unless I have all
of the > required
JARs for AndroMDA in > the dependencies section of the
project that simply >
wants to use the > AndroMDA plugin. Does that piece of
Jelly code refer > to
the > maven.dependency.classpath of the plugin or of
the > project using the
plugin? > > Is this normal? Is there some other way to
manage the >
depencies? I tried declaring the AndroMDA plugin in
the > depencies section
as a plugin, but that didn't > solve the
problem > > I hope I
have provided enough information. Links to > previsous
posts I missed > or
documenation I missed would be appreciated > > Thanks,
> Matthew > > >
__ > Do you Yahoo!? >
Protect your identity
with Yahoo! Mail AddressGuard >
http://antispam.yahoo.com/whatsnewfree > >
>
-
> To
unsubscribe, e-mail:
[EMAIL PROTECTED] > For additional
commands, e-mail: [EMAIL PROTECTED] >
__ Do you Yahoo!? Free
Pop-Up Blocker - Get
it now
ttp://companion.yahoo.com/ 

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


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



RE: plugin dependencies for plugin user

2003-11-20 Thread J. Matthew Pryor
Thanks that works.

I am now hoping to also be able to include the actual
dependency classpath
from the "user" project as well.

i.e. AndroMDA has a base set of plugins. It will
search the classpath for
others. I would like it to be able to find any other
AndroMDA plugins that
are specified in the project.xml of the project using
my AndroMDA maven
plugin.

I have tried this:



[snip]









but maven.dependency.classpath seems to be empty,
despite there being
entries in the user project dependencies section

Have I got something obvious wrong?

Thanks,
Matthew

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 11:27 AM
To: 'Maven Users List'
Subject: RE: plugin dependencies for plugin user


Hi,

Maven.dependency.classpath only uses what is in the
project's descriptor,
however if you are just building an ant classpath you
can create the path
with your plugin's dependencies using
dependency.getPath. Here is an example
from cactus:

  
  
  
  
  
  
  
  
  
  
  




Cheers,
Brett

> -Original Message-
> From: J. Matthew Pryor
[mailto:[EMAIL PROTECTED]
> Sent: Monday, 17 November 2003 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: plugin dependencies for plugin user
>
>
> Hello,
>
> I am writing an AndroMDA (http://www.adnromda.org)
> plugin for Maven and
> basically have it working but I am having trouble
> understanding
> dependencies.
>
> The AndroMDA pluging requires a bunch of jars to
> compile (but mostly at
> runtime). I have listed these in the dependencies
> section of the project.xml
> for the plugin. I can compile & install the plugin
no
> problem.
>
> However the only way I can get it to work is by
> duplicating the dependcy
> list from the plugin into the project.xml file of
the
> project that uses the
> plugin.
>
> I don't think this is the right thing to do, it
seems
> like a workaround. I
> have read all I can and searched archives but cannot
> find the answer to have
> these dependencies "flow through" to the project
that
> uses the plugin. This
> may be complicated by the fact that the plugin.jelly
> has to do an Ant
> taskdef, I perform it like this:
>
>   
>
classname="org.andromda.core.anttasks.AndroMDAGenTask">
>   
>refid="maven.dependency.classpath"/>
>   
>   
>
> But the taskdef fails unless I have all of the
> required JARs for AndroMDA in
> the dependencies section of the project that simply
> wants to use the
> AndroMDA plugin. Does that piece of Jelly code refer
> to the
> maven.dependency.classpath of the plugin or of the
> project using the plugin?
>
> Is this normal? Is there some other way to manage
the
> depencies? I tried declaring the AndroMDA plugin in
the
> depencies section as a plugin, but that
didn't
> solve the problem
>
> I hope I have provided enough information. Links to
> previsous posts I missed
> or documenation I missed would be appreciated
>
> Thanks,
> Matthew
>
>
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>


__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



NO properties were copied when building WAR !!!

2003-11-20 Thread Eric Chow
Hello,

Maven doesn't copy any properties to the WEB-INF/classes when creating WAR.

But it works fine in WinXP.


Platform:
Win98 SE
JDK1.4.2
Maven-1.0rc1


[EMAIL PROTECTED]
src/java
src/test


  
**/*Test.java
  
  
**/NaughtyTest.java
  



  
${basedir}/src/conf

  
  

  

  


Eric
==
If you know what you are doing, 
it is not called RESEARCH!
==

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



Re: how to use multi-projects with eclipse

2003-11-20 Thread Jeffrey Bonevich


Nicolas De Loof wrote:
Thank's for reply.

Using this, how do you use multiproject goals ?

Is it enough to set maven.multiproject.includes=../subproject1/project.xml, ../subproject2/project.xml  ?
Yep, although I customize a lot in project.properties (particularly you 
can set 'goal=' and multiproject:goal will run that set of goals for 
each project).  I used to hack maven.xml a bit too, but multiproject 
just makes it all too damn easy ;-)

Nico.



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


excluding files from

2003-11-20 Thread Scott Tavares
... can anyone point me to docs on the deploy plugin. I'm looking for a 
way to exclude one or more files from the deploy:copy-deps tag.

TIA

-ScottTavares-

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


Re: "-D" params with spaces are parsed into goals on unix

2003-11-20 Thread Martin Skopp
On Wed, 2003-11-19 at 05:58, [EMAIL PROTECTED] wrote:
> We had one before about this:
> http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-786
> But from memory, the 'fix' broke 'sh' or cygwin or something.

Possible "$@" is not available in original bourne shell, so I suggest
the following to determine if bash is active or not:

if [ "$BASH" == "" ]; then
  # shell is not the bash
  $JAVACMD \
...
$MAIN_CLASS $@
else
  # bash its the shell!
  $JAVACMD \
...
$MAIN_CLASS "$@"
fi

You don't need a real diff, do you dion?
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com
 
This email is intended to be viewed with a nonproportional font.
Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
Fingerprint: 1970 C78D 9A1D 99FA 5CE4  5C0D 29E6 6A95 3D40 27B5



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



RE: [ANN] Dashboard plugin 1.1 released

2003-11-20 Thread dion
"Vincent Massol" <[EMAIL PROTECTED]> wrote on 21/11/2003 09:44:49 AM:

> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 20 November 2003 23:18
> > To: Maven Users List
> > Subject: RE: [ANN] Dashboard plugin 1.1 released
> > 
> > "Vincent Massol" <[EMAIL PROTECTED]> wrote on 21/11/2003 03:19:46
> AM:
> > 
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent: 20 November 2003 15:25
> > > > To: Maven Users List
> > > > Subject: Re: [ANN] Dashboard plugin 1.1 released
> > > >
> > > > Vincent,
> > > >
> > > > it'd be nice to be able to not show projects for which there are
> no
> > > > collected stats.
> > > >
> > > > How easy would this be to do?
> > >
> > > That's already possible. That's the third option described on the
> > > dashboard web site. You can define the property
> > > maven.dashboard.rungoals=false. This will prevent goals from being
> > > executed automatically. You will need to execute them beforehand if
> you
> > > want any stat to show up. You also have a
> > > maven.dashboard.runreactor=true|false, if you already use a custom
> > > reactor (or multiproject plugin) in your projects.
> > 
> > I don't think you got my suggestion.
> > 
> > I'd basically like to be able to have the same report but without the
> rows
> > with no values in them.
> 
> Do you mean when the full row does not have value?
Yes, exactly.

> > I don't want to have to manually run the goals for all the projects I
> know
> > have stats.
> 
> What about excluding the projects that you wish to exclude? Or do you
> mean that you don't know in advance and want that automated? That's easy
> to do. However, I'm wondering the reason for that use case. I'm worried
> that if we remove these rows, people will start wondering why it is not
> run on other plugins (for the optional plugin page for ex). I think
> having no information is also providing information: saying that there
> is no source code for example.

Yep, it sure is, but I'd like an option to be able to ignore that.

--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/





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



RE: [ANN] Dashboard plugin 1.1 released

2003-11-20 Thread Vincent Massol


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 20 November 2003 23:18
> To: Maven Users List
> Subject: RE: [ANN] Dashboard plugin 1.1 released
> 
> "Vincent Massol" <[EMAIL PROTECTED]> wrote on 21/11/2003 03:19:46
AM:
> 
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: 20 November 2003 15:25
> > > To: Maven Users List
> > > Subject: Re: [ANN] Dashboard plugin 1.1 released
> > >
> > > Vincent,
> > >
> > > it'd be nice to be able to not show projects for which there are
no
> > > collected stats.
> > >
> > > How easy would this be to do?
> >
> > That's already possible. That's the third option described on the
> > dashboard web site. You can define the property
> > maven.dashboard.rungoals=false. This will prevent goals from being
> > executed automatically. You will need to execute them beforehand if
you
> > want any stat to show up. You also have a
> > maven.dashboard.runreactor=true|false, if you already use a custom
> > reactor (or multiproject plugin) in your projects.
> 
> I don't think you got my suggestion.
> 
> I'd basically like to be able to have the same report but without the
rows
> with no values in them.

Do you mean when the full row does not have value?

> 
> I don't want to have to manually run the goals for all the projects I
know
> have stats.

What about excluding the projects that you wish to exclude? Or do you
mean that you don't know in advance and want that automated? That's easy
to do. However, I'm wondering the reason for that use case. I'm worried
that if we remove these rows, people will start wondering why it is not
run on other plugins (for the optional plugin page for ex). I think
having no information is also providing information: saying that there
is no source code for example.

Thanks
-Vincent


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



RE: [ANN] Dashboard plugin 1.1 released

2003-11-20 Thread dion
"Vincent Massol" <[EMAIL PROTECTED]> wrote on 21/11/2003 03:19:46 AM:

> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 20 November 2003 15:25
> > To: Maven Users List
> > Subject: Re: [ANN] Dashboard plugin 1.1 released
> > 
> > Vincent,
> > 
> > it'd be nice to be able to not show projects for which there are no
> > collected stats.
> > 
> > How easy would this be to do?
> 
> That's already possible. That's the third option described on the
> dashboard web site. You can define the property
> maven.dashboard.rungoals=false. This will prevent goals from being
> executed automatically. You will need to execute them beforehand if you
> want any stat to show up. You also have a
> maven.dashboard.runreactor=true|false, if you already use a custom
> reactor (or multiproject plugin) in your projects.

I don't think you got my suggestion.

I'd basically like to be able to have the same report but without the rows 
with no values in them. 

I don't want to have to manually run the goals for all the projects I know 
have stats.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/





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



RE: deploy-snapshot vs. war:deploy-snapshot and ear:deploy-snapsh ot

2003-11-20 Thread Brett Porter
> There is a special type of deployer in maven-artifact plugin called 
> "External", which was supposed to be used for executing 
> arbitrary user 
> defined programs (like putty). This deployer is 
> "half-finished".  A new 
> protocol sounds like a good idea.  Leif: Patches and 
> documentation are 
> always welcomed :)

That sounds like the best approach.

> If we have solution based on  external  programs which supports SSH 
> (SCP)  which  works  both  on Windows and Linux, we can think about 
> switching
> from deploy plugins like to artifact plugin.

Great!

> Generaly I am trying to provide pure java, ready to use 
> out-of-the box solution. 

An admirable goal, but in the case of this SSH library, it is too hard to
configure and not as feature rich, where executing external apps is easy and
works well most of the time. It'd just be nice not to have to ask windows
people to download cygwin, putty, or whatever.

Giving both options as discussed is the best of both worlds.

> The main problem with artifact plugin is that it is poorly 
> tested. I wonder how many people are actually using it and 
> what kind of experinces they have with it... Wagon has alredy 
> much more unit tests and I am working on integration unit tests. 

I think the artifact plugin is better designed and better featured, but not
complete enough to be used everywhere. It's close though. I'm a little
disappointed anyone calling war:deploy gets forced into it though...

Cheers,
Brett


RE: PMD report exclusions

2003-11-20 Thread nick.giles

Fixed and working now, thanks dIon.

Nick

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 20 November 2003 14:24
> To: [EMAIL PROTECTED]
> Subject: RE: PMD report exclusions
> 
> 
> 
> Issue raised
> (http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1044),
> 
> Thanks,
> 
> Nick
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > Sent: 20 November 2003 03:18
> > To: Maven Users List
> > Subject: Re: PMD report exclusions
> > 
> > 
> > This is definitely a bug.
> > 
> > Please raise it in Jira.
> > 
> > I've got a fix ready to go.
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:  http://blogs.codehaus.org/people/dion/
> > 
> > 
> > 
> > <[EMAIL PROTECTED]> wrote on 18/11/2003 02:59:28 AM:
> > 
> > > 
> > > I'm producing a PMD report on my code, but I want to exclude some
> > > classes that are generated by JavaCC, because it makes code 
> > analysers go
> > > nuts. Just one parser produces two thousand violations... 
> > It seems that
> > > a single exclusion pattern works fine, but as soon as I put 
> > in a comma
> > > separated list all the exclusions are ignored. For example:
> > > 
> > > maven.pmd.includes=com/foo/project/**/*.java
> > > maven.pmd.excludes=com/foo/project/package/SomeParser*.java
> > > 
> > > works fine, analysing everything except the SomeParser 
> > classes. However,
> > > 
> > > 
> > > maven.pmd.includes=com/foo/project/**/*.java
> > > maven.pmd.excludes=com/foo/project/package/SomeParser*.java,
> > > com/foo/project/package/ADifferentParser*.java
> > > 
> > > causes the analyser to match as though only maven.pmd.includes was
> > > specified.
> > > 
> > > Any ideas here, or should I head off to JIRA?
> > > 
> > > Cheers,
> > > 
> > > Nick
> > > 
> > > ---
> > > Research Engineer
> > > Intelligent Systems Lab, BT Exact
> > > Tel:   (+44)1473 605 894
> > > Email: [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: JDBC 2.0 Jar

2003-11-20 Thread Derick Fernando
Hi Dion,


  jdbc
  2.0
  http://java.sun.com/products/jdbc/


Derick

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 8:41 PM
Subject: Re: JDBC 2.0 Jar


> What's the  or  of that dependency?
> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
>
>
>
> "Derick Fernando" <[EMAIL PROTECTED]> wrote on 20/11/2003 06:56:26 AM:
>
> > Hi,
> >
> > I tried renaming it as well, no cigar.
> > I commented out the dependency for now, build worked fine which is all I
> > need for the moment.
> >
> > Thanks for your help,
> > Derick
> >
> > - Original Message - 
> > From: "Emmanuel Venisse" <[EMAIL PROTECTED]>
> > To: "Maven Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 19, 2003 11:43 AM
> > Subject: Re: JDBC 2.0 Jar
> >
> >
> > > The jar name is jdbc-2.0.jar and not jdbc2_0-stdext.jar
> > >
> > > Emmanuel
> > >
> > > - Original Message - 
> > > From: "Derick Fernando" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, November 19, 2003 7:19 PM
> > > Subject: JDBC 2.0 Jar
> > >
> > >
> > > > Hello,
> > > >
> > > > I'm trying to build middlegen and I get the following:
> > > >
> > > > | Attempting to download jdbc-2.0.jar.
> > > > | WARNING: Failed to download jdbc-2.0.jar.
> > > > | The build cannot continue because of the following unsatisfied
> > > dependency:
> > > > |
> > > > | jdbc-2.0.jar (try downloading from
> http://java.sun.com/products/jdbc/)
> > > >
> > > > I assume this is the JDBC 2.0 Optional extensions? I made a folder
> in
> > the
> > > > repository in called jdbc and put the jdbc2_0-stdext.jar in the jars
> > > folder.
> > > > I still get the same message.
> > > >
> > > > What am I missing?
> > > >
> > > > Thanks,
> > > > Derick
> > > >
> > > >
> > > >
> -
> > > > 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: Subversion changelog

2003-11-20 Thread Emmanuel Venisse
Your pattern support string that's not use by svn changelog.

I think this pattern is more correct :

"^r(ev\\s(\\d+)\\:|(\\d+)\\s\\|)\\s+" + //revision number

Emmanuel

- Original Message - 
From: "Jörg Schaible" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 5:00 PM
Subject: RE: Subversion changelog


Mikael Lundgren wrote on Thursday, November 20, 2003 4:26 PM:
> It almost does the trick...
>
> However a log line may look like this (only the relevant portion is
> shown):
>
> r15 |  kaz | 2002-08-26 14:33:26 -0400
>
> OR like this:
>
> rev 15:  kaz | 2002-08-26 14:33:26 -0400
>
> Note the spaces around the version number.

It's not only the space, it is also the colon ...

  "^r(ev)?\\s*(\\d+)\\s*(\\:|\\|)\\s+" + // revision
number

Next try ;-)

Regards,
Jörg

-
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: Subversion changelog

2003-11-20 Thread Mikael Lundgren
It's getting more creative ;-)

However... looking further at the source yields stuff like this:

currentRevision = headerRegexp.getParen(1);
currentLogEntry = new ChangeLogEntry();
currentLogEntry.setAuthor(headerRegexp.getParen(2));
currentLogEntry.setDate(parseDate());
where the getParen(1) and similar things probably are the cause for the 
headache. Both my and Jörg's expressions match the svn log -v output... 
but problems arise when the information is later extracted.

Oh well... now it's time for a beer... we have our autumn pub at the 
office tonight ;-)

Cheers!
/Mikael Lundgren
Jörg Schaible wrote:

Mikael Lundgren wrote on Thursday, November 20, 2003 4:26 PM:

It almost does the trick...

However a log line may look like this (only the relevant portion is
shown): 

r15 |  kaz | 2002-08-26 14:33:26 -0400

OR like this:

rev 15:  kaz | 2002-08-26 14:33:26 -0400

Note the spaces around the version number.


It's not only the space, it is also the colon ...

  "^r(ev)?\\s*(\\d+)\\s*(\\:|\\|)\\s+" + // revision number

Next try ;-)

Regards,
Jörg


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


Re: Subversion changelog

2003-11-20 Thread Mikael Lundgren
It's getting more creative ;-)

However... looking further at the source yields stuff like this:

currentRevision = headerRegexp.getParen(1);
currentLogEntry = new ChangeLogEntry();
currentLogEntry.setAuthor(headerRegexp.getParen(2));
currentLogEntry.setDate(parseDate());
where the getParen(1) and similar things probably are the cause for the 
headache. Both my and Jörg's expressions match the svn log -v output... 
but problems arise when the information is later extracted.

Oh well... now it's time for a beer... we have our autumn pub at the 
office tonight ;-)

Cheers!

/Mikael Lundgren

Jörg Schaible wrote:

Mikael Lundgren wrote on Thursday, November 20, 2003 4:26 PM:

It almost does the trick...

However a log line may look like this (only the relevant portion is
shown): 

r15 |  kaz | 2002-08-26 14:33:26 -0400

OR like this:

rev 15:  kaz | 2002-08-26 14:33:26 -0400

Note the spaces around the version number.


It's not only the space, it is also the colon ...

  "^r(ev)?\\s*(\\d+)\\s*(\\:|\\|)\\s+" + // revision number

Next try ;-)

Regards,
Jörg


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


Re: Subversion changelog

2003-11-20 Thread Emmanuel Venisse
No, because if the first string is rev, first separator is ":"  (rev 15:)
and if it's a "r" we have a " |" (r 15 |) with a spas before "|"


- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 5:02 PM
Subject: Re: Subversion changelog


So this should work:
"^r(ev )?(\\d+):\\s+" + // revision number


?--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



Mikael Lundgren <[EMAIL PROTECTED]> wrote on 21/11/2003 02:25:49
AM:

> Jörg Schaible wrote:
> >>Now I officially give up :-( This is starting to take way too
> >>much time
> >>for something that someone with better knowledge about regexp probably
> >>can fix in minutes.
> >
> >
> > Should work:
> >  "^r(ev)? (\\d+):\\s+" + // revision number
> >
> > Regards,
> > Jörg
> >
>
> Thanks!
>
> It almost does the trick...
>
> However a log line may look like this (only the relevant portion is
shown):
>
> r15 |  kaz | 2002-08-26 14:33:26 -0400
>
> OR like this:
>
> rev 15:  kaz | 2002-08-26 14:33:26 -0400
>
> Note the spaces around the version number.
>
> Regards
> /Mikael Lundgren
>
>
>
> -
> 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: [ANN] Dashboard plugin 1.1 released

2003-11-20 Thread Vincent Massol

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 20 November 2003 15:25
> To: Maven Users List
> Subject: Re: [ANN] Dashboard plugin 1.1 released
> 
> Vincent,
> 
> it'd be nice to be able to not show projects for which there are no
> collected stats.
> 
> How easy would this be to do?

That's already possible. That's the third option described on the
dashboard web site. You can define the property
maven.dashboard.rungoals=false. This will prevent goals from being
executed automatically. You will need to execute them beforehand if you
want any stat to show up. You also have a
maven.dashboard.runreactor=true|false, if you already use a custom
reactor (or multiproject plugin) in your projects.

-Vincent

> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
> 
> 
> 
> "Vincent Massol" <[EMAIL PROTECTED]> wrote on 20/11/2003 09:26:15
PM:
> 
> > The Maven team is pleased to announce the Dashboard plugin 1.1
release!
> >
> > http://maven.apache.org/reference/plugins/dashboard
> >
> > This plugin generates a dashboard HTML report containing information
> > gathered from other Maven reports (Checkstyle, Clover, JUnit,
Simian,
> > etc). The dashboard aggregate this information for all subprojects,
> > presenting them in a single tabular format.
> >
> > Changes over version 1.0:
> >
> > o Ensure that the Clover plugin will generate the XML report (and
only
> >   the XML report) when the Dashboard plugin is run. The Clover XML
> >   report is required by the Clover aggregators as they extract
> >   information from it.
> > o Do not exclude project.xml in the default
maven.dashboard.excludes
> >   list as it is already excluded by the default
maven.dashboard.includes
> >
> >   list.
> >
> > Note that this plugin has been tested with Maven 1.0 rc2 from CVS
HEAD.
> > Using it with another version of Maven is at your own risks! :-)
> >
> > An example of the Dashboard plugin in action is available here:
> >
http://maven.apache.org/reference/plugins/optional/dashboard-report.html
> >
> > You can download the Dashboard plugin here:
> >
http://www.ibiblio.org/maven/maven/plugins/maven-dashboard-plugin-1.1.ja
> > r
> >
> > Have fun!
> > -Vincent
> >
> >
> >
-
> > 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: Subversion changelog

2003-11-20 Thread Jörg Schaible
Mikael Lundgren wrote on Thursday, November 20, 2003 4:26 PM:
> It almost does the trick...
> 
> However a log line may look like this (only the relevant portion is
> shown): 
> 
> r15 |  kaz | 2002-08-26 14:33:26 -0400
> 
> OR like this:
> 
> rev 15:  kaz | 2002-08-26 14:33:26 -0400
> 
> Note the spaces around the version number.

It's not only the space, it is also the colon ...

  "^r(ev)?\\s*(\\d+)\\s*(\\:|\\|)\\s+" + // revision number

Next try ;-)

Regards,
Jörg

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



Re: Subversion changelog

2003-11-20 Thread dion
So this should work: 
"^r(ev )?(\\d+):\\s+" + // revision number


?--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



Mikael Lundgren <[EMAIL PROTECTED]> wrote on 21/11/2003 02:25:49 
AM:

> Jörg Schaible wrote:
> >>Now I officially give up :-( This is starting to take way too
> >>much time
> >>for something that someone with better knowledge about regexp probably
> >>can fix in minutes.
> > 
> > 
> > Should work: 
> >  "^r(ev)? (\\d+):\\s+" + // revision number
> > 
> > Regards,
> > Jörg
> > 
> 
> Thanks!
> 
> It almost does the trick...
> 
> However a log line may look like this (only the relevant portion is 
shown):
> 
> r15 |  kaz | 2002-08-26 14:33:26 -0400
> 
> OR like this:
> 
> rev 15:  kaz | 2002-08-26 14:33:26 -0400
> 
> Note the spaces around the version number.
> 
> Regards
> /Mikael Lundgren
> 
> 
> 
> -
> 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: Subversion changelog

2003-11-20 Thread Mikael Lundgren
Jörg Schaible wrote:
Now I officially give up :-( This is starting to take way too
much time
for something that someone with better knowledge about regexp probably
can fix in minutes.


Should work: 
 "^r(ev)? (\\d+):\\s+" + // revision number

Regards,
Jörg
Thanks!

It almost does the trick...

However a log line may look like this (only the relevant portion is shown):

r15 |  kaz | 2002-08-26 14:33:26 -0400

OR like this:

rev 15:  kaz | 2002-08-26 14:33:26 -0400

Note the spaces around the version number.

Regards
/Mikael Lundgren


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


RE: Subversion changelog

2003-11-20 Thread Jörg Schaible
Mikael Lundgren wrote on Thursday, November 20, 2003 3:43 PM:

> [EMAIL PROTECTED] wrote:
> 
>> It'd be good to change the regexp code to match both versions. --
>> dIon Gillard, Multitask Consulting
>> Blog:  http://blogs.codehaus.org/people/dion/
>> 
> 
> Yes, it would I guess. I have tried to create such an expression and
> even got it to work using the ORO package demonstrator at the jakarta
> site. However I can't get it to work with the regexp package.
> 
> Now I officially give up :-( This is starting to take way too
> much time
> for something that someone with better knowledge about regexp probably
> can fix in minutes.

Should work: 
 "^r(ev)? (\\d+):\\s+" + // revision number

Regards,
Jörg

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



Re: Subversion changelog

2003-11-20 Thread Mikael Lundgren
[EMAIL PROTECTED] wrote:

It'd be good to change the regexp code to match both versions.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Yes, it would I guess. I have tried to create such an expression and 
even got it to work using the ORO package demonstrator at the jakarta 
site. However I can't get it to work with the regexp package.

Now I officially give up :-( This is starting to take way too much time 
for something that someone with better knowledge about regexp probably 
can fix in minutes.

Regards
/Mikael Lundgren
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: PMD report exclusions

2003-11-20 Thread nick.giles

Issue raised
(http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1044),

Thanks,

Nick

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 20 November 2003 03:18
> To: Maven Users List
> Subject: Re: PMD report exclusions
> 
> 
> This is definitely a bug.
> 
> Please raise it in Jira.
> 
> I've got a fix ready to go.
> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
> 
> 
> 
> <[EMAIL PROTECTED]> wrote on 18/11/2003 02:59:28 AM:
> 
> > 
> > I'm producing a PMD report on my code, but I want to exclude some
> > classes that are generated by JavaCC, because it makes code 
> analysers go
> > nuts. Just one parser produces two thousand violations... 
> It seems that
> > a single exclusion pattern works fine, but as soon as I put 
> in a comma
> > separated list all the exclusions are ignored. For example:
> > 
> > maven.pmd.includes=com/foo/project/**/*.java
> > maven.pmd.excludes=com/foo/project/package/SomeParser*.java
> > 
> > works fine, analysing everything except the SomeParser 
> classes. However,
> > 
> > 
> > maven.pmd.includes=com/foo/project/**/*.java
> > maven.pmd.excludes=com/foo/project/package/SomeParser*.java,
> > com/foo/project/package/ADifferentParser*.java
> > 
> > causes the analyser to match as though only maven.pmd.includes was
> > specified.
> > 
> > Any ideas here, or should I head off to JIRA?
> > 
> > Cheers,
> > 
> > Nick
> > 
> > ---
> > Research Engineer
> > Intelligent Systems Lab, BT Exact
> > Tel:   (+44)1473 605 894
> > Email: [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: [ANN] Dashboard plugin 1.1 released

2003-11-20 Thread dion
Vincent,

it'd be nice to be able to not show projects for which there are no 
collected stats.

How easy would this be to do?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



"Vincent Massol" <[EMAIL PROTECTED]> wrote on 20/11/2003 09:26:15 PM:

> The Maven team is pleased to announce the Dashboard plugin 1.1 release!
> 
> http://maven.apache.org/reference/plugins/dashboard
> 
> This plugin generates a dashboard HTML report containing information 
> gathered from other Maven reports (Checkstyle, Clover, JUnit, Simian, 
> etc). The dashboard aggregate this information for all subprojects, 
> presenting them in a single tabular format.
> 
> Changes over version 1.0:
> 
> o Ensure that the Clover plugin will generate the XML report (and only 
>   the XML report) when the Dashboard plugin is run. The Clover XML 
>   report is required by the Clover aggregators as they extract 
>   information from it.
> o Do not exclude project.xml in the default  maven.dashboard.excludes
>   list as it is already excluded by the default maven.dashboard.includes
> 
>   list.
> 
> Note that this plugin has been tested with Maven 1.0 rc2 from CVS HEAD. 
> Using it with another version of Maven is at your own risks! :-)
> 
> An example of the Dashboard plugin in action is available here:
> http://maven.apache.org/reference/plugins/optional/dashboard-report.html
> 
> You can download the Dashboard plugin here:
> http://www.ibiblio.org/maven/maven/plugins/maven-dashboard-plugin-1.1.ja
> r
> 
> Have fun!
> -Vincent
> 
> 
> -
> 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: how to use multi-projects with eclipse

2003-11-20 Thread dion
"Nicolas De Loof" <[EMAIL PROTECTED]> wrote on 20/11/2003 11:33:58 
PM:

> Thank's for reply.
> 
> Using this, how do you use multiproject goals ?
> 
> Is it enough to set maven.multiproject.includes=..
> /subproject1/project.xml, ../subproject2/project.xml  ?
> 
> Nico.

We do that, as well as exclude the 'master-project/project.xml'.


> 
> 
> - Original Message - 
> From: "Jeffrey Bonevich" <[EMAIL PROTECTED]>
> To: "Maven Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 20, 2003 11:25 AM
> Subject: Re: how to use multi-projects with eclipse
> 
> 
> > eclipse don't workm that way (unless root is the eclipse project and 
the
> > subprojects are just directories under that, in which case you would
> > only end up with one jar file, one .classpath, one .project).  I do 
this
> > like so:
> >
> > (workspace)
> >|--master-project
> >||-project.xml etc.
> >|--subproject1
> >||-project.xml (extends 
${basedir}/../master-project/project.xml
> >|--subproject2
> >||-project.xml (extends 
${basedir}/../master-project/project.xml
> >
> > This is pretty simple and works well.  You can easily add a third
> > subproject for common utilities shared by both the other 
subprojects...
[snip]
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/





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



Re: How can I specify the that $HOME should be in the classpath

2003-11-20 Thread dion
Ciaran Treanor <[EMAIL PROTECTED]> wrote on 21/11/2003 
12:15:23 AM:

> Hi,
> I'm wondering how I can specify that $HOME should be added to
> the classpath before running unit tests and when generating
> the project files using the eclipse plugin.
You don't do things this way with Maven.

With maven you declare your dependency on specific files (jars etc) rather 
than anything found in a directory.

Does this help? If not, give us some more info on what you need to do.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



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



How can I specify the that $HOME should be in the classpath

2003-11-20 Thread Ciaran Treanor
Hi,
I'm wondering how I can specify that $HOME should be added to
the classpath before running unit tests and when generating
the project files using the eclipse plugin.
Thanks,
ct


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


Re: how to use multi-projects with eclipse

2003-11-20 Thread Nicolas De Loof
Thank's for reply.

Using this, how do you use multiproject goals ?

Is it enough to set maven.multiproject.includes=../subproject1/project.xml, 
../subproject2/project.xml  ?

Nico.


- Original Message - 
From: "Jeffrey Bonevich" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 11:25 AM
Subject: Re: how to use multi-projects with eclipse


> eclipse don't workm that way (unless root is the eclipse project and the
> subprojects are just directories under that, in which case you would
> only end up with one jar file, one .classpath, one .project).  I do this
> like so:
>
> (workspace)
>|--master-project
>||-project.xml etc.
>|--subproject1
>||-project.xml (extends ${basedir}/../master-project/project.xml
>|--subproject2
>||-project.xml (extends ${basedir}/../master-project/project.xml
>
> This is pretty simple and works well.  You can easily add a third
> subproject for common utilities shared by both the other subprojects...
>
> jeff
>
> Nicolas De Loof wrote:
> > Hi all,
> >
> > I'm using maven on a project involving two jars and I understood to late I should 
> > use multi-projects to do that. Not
a
> > big problem, but I would like some suggestions for the next project that will use 
> > mave :
> >
> > We use eclipse for java developments. I would like to define a multi-project this 
> > way :
> >
> > (root)
> > /project.xml
> > /maven.xml
> > /project.properties
> >
> > /subproject1 (an ejb for example)
> > /src/java
> > /src/test
> > /project.xml (extends ../project.xml)
> >
> > /subproject2 (webapp for example)
> > /src/java
> > /src/test
> > /src/web
> > /project.xml (extends ../project.xml)
> >
> > (If something seems stupid, please tell me !)
> >
> >
> > On eclipse, I would like to import "root" project from CVS  *AND* child projects 
> > so that  independant eclipse
> > .classpath/.project can be defined for subprojects.
> >
> > Without that, I'm sure I'll find some code in ejb project that uses webapp 
> > classes, for example date or format
utils.
> >
> > Do you have any suggestion on the way to make all of this work on eclipse with *as 
> > simple as possible* configuration
?
> >
> > Nico.
> >
> >
> >
> >
> >
> > -
> > 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: how to use multi-projects with eclipse

2003-11-20 Thread Jeffrey Bonevich
eclipse don't workm that way (unless root is the eclipse project and the 
subprojects are just directories under that, in which case you would 
only end up with one jar file, one .classpath, one .project).  I do this 
like so:

(workspace)
  |--master-project
  ||-project.xml etc.
  |--subproject1
  ||-project.xml (extends ${basedir}/../master-project/project.xml
  |--subproject2
  ||-project.xml (extends ${basedir}/../master-project/project.xml
This is pretty simple and works well.  You can easily add a third 
subproject for common utilities shared by both the other subprojects...

jeff

Nicolas De Loof wrote:
Hi all,

I'm using maven on a project involving two jars and I understood to late I should use 
multi-projects to do that. Not a
big problem, but I would like some suggestions for the next project that will use mave 
:
We use eclipse for java developments. I would like to define a multi-project this way :

(root)
/project.xml
/maven.xml
/project.properties
/subproject1 (an ejb for example)
/src/java
/src/test
/project.xml (extends ../project.xml)
/subproject2 (webapp for example)
/src/java
/src/test
/src/web
/project.xml (extends ../project.xml)
(If something seems stupid, please tell me !)

On eclipse, I would like to import "root" project from CVS  *AND* child projects 
so that  independant eclipse
.classpath/.project can be defined for subprojects.
Without that, I'm sure I'll find some code in ejb project that uses webapp classes, for example date or format utils.

Do you have any suggestion on the way to make all of this work on eclipse with *as simple as possible* configuration ?

Nico.





-
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: Javadoc Cross Reference

2003-11-20 Thread Martin Skopp
On Wed, 2003-11-19 at 20:03, Alain Javier Guarnieri del Gesu wrote:
> Cross-referecens are absolute and point to my local file system.
> That's bad.

Check the Javadoc plugin doc, possibly you can fix this by using the
offline javadoc feature...
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com
 
This email is intended to be viewed with a nonproportional font.
Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
Fingerprint: 1970 C78D 9A1D 99FA 5CE4  5C0D 29E6 6A95 3D40 27B5



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



RE: Unable to download the initial jar files

2003-11-20 Thread enghoe

I did what you did and the result is still the same.

The difference is that my corporate proxy server requires authentication,
so I also have the following properties in the project.properties file:
maven.proxy.username
maven.proxy.password

I wrote a small program to test the HTTP connection (using HttpUtils.java
as an example), and when I tried to access website like
"http://www.yahoo.com/";, it gives a HTTP response code 407 (Proxy
Authentication needed).  Do I need to do something to configure the JVM to
allow proxy authentication?


Regards,
Eng Hoe
App Dev-DCS
SGX-IT Division

DID: (65) 62368963
FAX: (65) 64388840
email: [EMAIL PROTECTED]


   

<[EMAIL PROTECTED] 

.com>To: <[EMAIL PROTECTED]>   
   
 cc:   

19/11/2003   Subject: RE: Unable to download the 
initial jar files 
08:11 PM   

Please respond 

to "Maven  

Users List"

   

   






It uses http, as indicated by the full address it's trying to resolve:
http://www.ibiblio.org/maven/ant/jars/ant-1.5.3-1.jar

Since that does resolve to a jar file, either you were trying during the
server outage mentioned elsewhere on this list, or you are correct in
your assertion that you're not getting through the proxy. Try putting
the proxy settings in your project.properties, and seeing if that helps.
It may be that Maven is looking in the wrong place for your
build.properties.

I have settings like:
maven.proxy.host=proxy1.foo.bar.com
maven.proxy.port=3128

At the head of my project.properties, and that gets me through the
firewall.

Hope that helps.

Nick

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 19 November 2003 01:49
> To: [EMAIL PROTECTED]
> Subject: Unable to download the initial jar files
>
>
> I am a new Maven user and I had downloaded the Maven 1.0 rc1
> for testing.
> However, the moment I tried to compile my project, I hit the
> problem of
> unable to download those jar files which Maven needed.
>
> The following is the error message I got:
>
> 2003-11-19 09:43:25,069 INFO
> org.apache.maven.verifier.DependencyVerifier
> - Attempting to download ant-1.5.3-1.jar.
> 2003-11-19 09:43:47,035 WARN
> org.apache.maven.verifier.DependencyVerifier
> - Error retrieving artifact from
> [http://www.ibiblio.org/maven/ant/jars/ant-1.5.3-1.jar]:
> java.lang.Exception: Can't get ant-1.5.3-1.jar to C:\Documents and
> Settings\itaeh\.maven\repository\ant\jars\ant-1.5.3-1.jar
> 2003-11-19 09:43:47,035 WARN
> org.apache.maven.verifier.DependencyVerifier
> - WARNING: Failed to download ant-1.5.3-1.jar.
> ...
>
> I am working behind a corporate fire wall but I had
> configured the proxy
> settings in the build.properties file as described in the userguide.
> However, that still doesn't work.  I am not sure what means
> does Maven use
> to download these jar files (is it Http or Ftp?).  Is there a way to
> resolve this problem?
>
>
> Thanks & regards,
> Eng Hoe
> App Dev-DCS
> SGX-IT Division
>
> DID: (65) 62368963
> FAX: (65) 64388840
> email: [EMAIL PROTECTED]
>
> Confidentiality Caution
> ===
> Privileged/Confidential Information may be contained in this
> message. If
> you are not the addressee indicated in this message (or
> responsible for
> delivery of the message to such person), you may not copy or
> deliver this
> message to anyone. In such case, you should destroy this
> message and kindly
> notify the sender by reply email. Opinions, conclusions and other
> information in this message that is not of an official nature shall be
> deemed as neither given nor endorsed by SGX unless indicated by an
> authorised representative independent of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAI

refresh source file set

2003-11-20 Thread Ronald Blaschke
Hi,

I'd like to automatically generate some java source files and thought
I could do it like this.

- Specify a "generated" source directory, eg target/generated-java in
project.xml
- In maven.xml:
  

  

whereas "generate-source" does
- Copy plain java files from src/java to target/generated-java
- Generate source files as needed into target/generated-java

Unfortunately maven complains with
[echo] No java source files to compile.

My question: How do I "refresh" the source file set maven uses?
  

 
  
  
Regards,
Ronald
-- 



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



[ANN] Dashboard plugin 1.1 released

2003-11-20 Thread Vincent Massol
The Maven team is pleased to announce the Dashboard plugin 1.1 release!

http://maven.apache.org/reference/plugins/dashboard

This plugin generates a dashboard HTML report containing information 
gathered from other Maven reports (Checkstyle, Clover, JUnit, Simian, 
etc). The dashboard aggregate this information for all subprojects, 
presenting them in a single tabular format.

Changes over version 1.0:

o Ensure that the Clover plugin will generate the XML report (and only 
  the XML report) when the Dashboard plugin is run. The Clover XML 
  report is required by the Clover aggregators as they extract 
  information from it.
o Do not exclude project.xml in the default  maven.dashboard.excludes
  list as it is already excluded by the default maven.dashboard.includes

  list.

Note that this plugin has been tested with Maven 1.0 rc2 from CVS HEAD. 
Using it with another version of Maven is at your own risks! :-)

An example of the Dashboard plugin in action is available here:
http://maven.apache.org/reference/plugins/optional/dashboard-report.html

You can download the Dashboard plugin here:
http://www.ibiblio.org/maven/maven/plugins/maven-dashboard-plugin-1.1.ja
r

Have fun!
-Vincent


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



Re: deploy-snapshot vs. war:deploy-snapshot and ear:deploy-snapsh ot

2003-11-20 Thread Michal Maczka
Brett Porter wrote:

Hi Leif,

(Sorry for CC'ing back to the list again, but they'll probably want to
review this)
Sounds like a good idea - perhaps a new protocol could be added to artifact
(scpexe:// ?) that uses the mentioned parameters. Alternatively, it might be
a branch of the existing protocl based on another property - however, I
think the new protocol idea is better.
Michal, do you have any current thoughts on the direction of artifact?

Your changes would be welcome - just submit a patch to JIRA when you are
done and I'll commit it and release a new version. Let me know if you want
to bounce any more ideas around.
 

There is a special type of deployer in maven-artifact plugin called 
"External", which was supposed to be used for executing arbitrary user 
defined programs (like putty). This deployer is "half-finished".  A new 
protocol sounds like a good idea.  Leif: Patches and documentation are 
always welcomed :)
If we have solution based on  external  programs which supports SSH 
(SCP)  which  works  both  on Windows and Linux, we can think about 
switching
from deploy plugins like to artifact plugin.

Generaly I am trying to provide pure java, ready to use out-of-the box solution. 
So my vision is: if there is Java libaray which does the same trick as external program - it should be used.
I am progressing with Artifact Transport Libaray called "Wagon" which probably will be used in future verions of Maven( after 1.0). It should be moved to Apache CVS repo in a matter of days.

The main problem with artifact plugin is that it is poorly tested.
I wonder how many people are actually using it and what kind of experinces they have with it...
Wagon has alredy much more unit tests and I am working on integration unit tests. 

regards 

Michal



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


Re: Variable substitution in xdocs

2003-11-20 Thread Paul Libbrecht
Are you really meaning it's being run through velocity ??
So if understand well, these encoding variables are just >>needed<< all 
the times!!
Why not treat XML as XML ? Hence use the encoding header decently.
This is just a shame!
(or I'm mistaking)

This could be a reason I had so many atrocities about encodings in my 
organization for example...

The funky thing is that such all xdoc and navigation.xml get processed 
through jelly anyways later (hence as XML), does it mean there's some 
velocity before ? I don't understand this.

Paul



On Jeudi, nove 20, 2003, at 03:39 Europe/Paris, O'Fallon, Paul 
(MAN-Corporate) wrote:

My experience has been that navigation.xml is run through velocity in a
multiproject build (actually in the multiproject plugin), but not when
simply running "maven site".  It would be great to have navigation.xml 
run
through velocity in both cases (for consistency's sake -- I pulled my 
hair
out wondering why one navigation.xml was evaluating velocity tags and
another one wasn't... :-)

- Paul

-Original Message-
From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 7:13 PM
To: Maven Users List
Subject: Variable substitution in xdocs
I want to refer to pom specific values in my navigation.xml
file (i.e.
current version, etc.).  Can I do variable substitution in
xdoc plugin?
  Since it is velocity based I assume so, but I can find no
documentation that tells me what variables I can refer to.
${pom} and ${reactorProject} do not seem to be among them.  I
have seen one example that used a velocity forEach loop and
refers to the variable $reactorProjects.  This was in the
context of a multi-project; involved setting an attribute on
maven:reactor (postprocessing=true).  I suspect maybe I can
break in here with maven.xml and add my own variables to
reference in my xdocs, but thought I would ask before rolling my own.
What ever anyone can feed me, I will be happy to compile and
put on the wiki.
jeff

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


how to use multi-projects with eclipse

2003-11-20 Thread Nicolas De Loof
Hi all,

I'm using maven on a project involving two jars and I understood to late I should use 
multi-projects to do that. Not a
big problem, but I would like some suggestions for the next project that will use mave 
:

We use eclipse for java developments. I would like to define a multi-project this way :

(root)
/project.xml
/maven.xml
/project.properties

/subproject1 (an ejb for example)
/src/java
/src/test
/project.xml (extends ../project.xml)

/subproject2 (webapp for example)
/src/java
/src/test
/src/web
/project.xml (extends ../project.xml)

(If something seems stupid, please tell me !)


On eclipse, I would like to import "root" project from CVS  *AND* child projects so 
that  independant eclipse
.classpath/.project can be defined for subprojects.

Without that, I'm sure I'll find some code in ejb project that uses webapp classes, 
for example date or format utils.

Do you have any suggestion on the way to make all of this work on eclipse with *as 
simple as possible* configuration ?

Nico.





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



Re: PMD not recognizing property settings when added as a report in project.xml

2003-11-20 Thread dion
This is working as designed.

If you specify the report in the  element, it will be called 
*regardless*.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



Brian Burridge <[EMAIL PROTECTED]> wrote on 20/11/2003 03:23:26 AM:

> I have added 'maven.pmd.enable=false' to my project.properties (just to
> test picking up the properties) and have added the pmd plugin as a
> report in project.xml. However pmd still runs. But, when I run 'maven
> pmd' then it does look at the property I set, and does not run (and I
> can toggle it back and forth via that property).
> 
> 
> Brian
> 
> -
> 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: Creating another checkstyle target

2003-11-20 Thread dion
If plugins use sourceDirectory instead of src.set, it's a bug.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



"John D Taylor (ROE)" <[EMAIL PROTECTED]> wrote on 20/11/2003 02:53:54 AM:

> I wish I knew - I've been struggling with the same problem.  Many of the
> plugins only seem to process the src directory unfortunately - e.g. 
javadoc
> & checkstyle.
> It's not a very satisfactory solution, but I've created a separate POM 
which
> simply declares my test code to be the source code.  I know it's a bit
> clumsy, but you could factor out the common bits of the two POMs into a 
POM
> which you extend.  This would at least cut down on some of the work in
> maintaining two POMs.
> 
> John Taylor
> - Original Message - 
> From: "Kevin Pearcey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 18, 2003 10:23 AM
> Subject: Creating another checkstyle target
> 
> 
> > How do I create an additional checkstyle target?
> >
> > Currently it does not appear that checkstyle checks any of my test 
code
> > classes, I've pointed this out before but no one seems to care about 
the
> > quality of test code, just that the tests pass. In our projects we 
want to
> > produce all the usual checkstyle reports including coverage of the 
test
> > code, however we suspect that this will want a separate checkstyle
> > configuration as the rules will be slightly less strict.
> >
> > Is this simple to achieve?
> >
> > Cheers
> >
> > Kevin Pearcey
> >
> >
> >
> >
> > -
> > 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: AW: String trim

2003-11-20 Thread dion
Jon,

which properties from the checkstyle plugin were causing you problems?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



Rademacher Tobias <[EMAIL PROTECTED]> wrote on 20/11/2003 12:48:49 
AM:

> Trimming is possible from every jelly tag. just set trim attribute to 
true:
> 
> e.g.
> 
> ${maven.bla.bli.blu}
> 
> > -Ursprüngliche Nachricht-
> > Von: Jon Strayer [mailto:[EMAIL PROTECTED]
> > Gesendet am: Mittwoch, 19. November 2003 14:45
> > An: 'Maven Users List'
> > Betreff: String trim
> > 
> > How do you trim a string in Jelly?
> > 
> > I had a problem where the checkstyle plugin stoped being
> > able to find my checkstyle settings.  I traced it down to
> > trailing spaces in the project.properties file.
> > 
> > -- 
> > 
> > 
> > 
> > Hell hath no fury like a vested interest masquerading as a 
> > moral principle.
> > 
> > -
> > 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: Subversion changelog

2003-11-20 Thread dion
> Is Subversion fully supported by the scm now?

If you mean the scm plugin, no. If you mean the scm reporting plugins 
(changelog, activity, developer-activity etc), yes.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


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



Re: Subversion changelog

2003-11-20 Thread dion
It'd be good to change the regexp code to match both versions.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



Mikael Lundgren <[EMAIL PROTECTED]> wrote on 20/11/2003 03:53:56 
AM:

> Hmmm,
> 
> it seems that subversion 0.33.0 changed the format of the data created 
> by running svn log... from http://svn.collab.net/repos/svn/trunk/CHANGES 

> the following line:
> 
> * 'svn log' output headers now say "r | " instead of "rev :  "
> 
> Could this be the problem? I checked the sources for the maven changelog 

> plugin and the regular exception seems to expect "rev " and not 
> "r"...
> 
> Now this would seem trivial to change in the java source code for the 
> plugin, unfortunately I have no idea about how to actually create my own 

> version of the changelog plugin nor how to tell maven how to use a 
> different version of the plugin... surely this is documented somewhere?
> 
> Regards
> 
> /Mikael Lundgren
> 
> 
> -
> 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]



Special directory reference ???

2003-11-20 Thread Eric Chow
Hello,

Is there any specific variable to reference the following directory ?

1. project name/project id
2. webapp.WEB-INF/lib under maven.build.dir


Eric


==
If you know what you are doing, 
it is not called RESEARCH!
==

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