Re: Running reactor without any goals ?

2003-07-21 Thread dion
Dont set the reactors goals property
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Paul Libbrecht <[EMAIL PROTECTED]> wrote on 22/07/2003 08:36:58 AM:

> 
> Hi,
> 
> 
> I'd like to run through a set of projects so as to get their 
> dependencies... however, I'd like to avoid running any goal.
> How can I do that ?
> 
> Thanks.
> 
> Paul
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: POM JSR

2003-07-21 Thread dion
You guys do realise that +1 means that you agree and are able to help do 
it, right?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Jamie McCrindle <[EMAIL PROTECTED]> wrote on 21/07/2003 07:32:07 
PM:

> +1 this idea.
> 
> most of the ide's have the concept of a project (or at least have a way 
to
> specify all the source locations and dependencies so that you can 
compile).
> i'd prefer interfaces rather an .xml as the standard (IJavaProject 
etc.).
> one wonders if this is included in JSR 198?
> 
> 
> > -Original Message-
> > From: Dave Ford [mailto:[EMAIL PROTECTED]
> > Sent: 19 July 2003 17:27
> > To: Maven Users
> > Subject: POM JSR
> > 
> > 
> > Multiple goals and plug-ins can all use information from the 
> > POM. It seems
> > to me, that multiple tools could also use it. For example, it 
> > would be nice
> > if IntelliJ could read my list of jar dependencies from 
> > project.xml so I
> > wouldn't have to maintain that information twice. Does anyone 
> > think a java
> > standard for project meta-data would be useful?
> > 
> > Dave Ford
> > Smart Soft - The Developer Training Company
> > http://www.smart-soft.com
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> 
> This e-mail message (including any attachment) is intended only for 
> the personal 
> use of the recipient(s) named above. This message is confidential and 
may be 
> legally privileged.  If you are not an intended recipient, you may 
> not review, copy or 
> distribute this message. If you have received this communication in 
> error, please notify 
> us immediately by e-mail and delete the original message.
> 
> Any views or opinions expressed in this message are those of the author 
only. 
> Furthermore, this message (including any attachment) does not create
> any legally 
> binding rights or obligations whatsoever, which may only be created 
> by the exchange 
> of hard copy documents signed by a duly authorised representative 
ofHutchison 
> 3G UK Limited.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Using Jikes

2003-07-21 Thread Dave Ford
I found the following property defined under the java plug-in:

maven.compile.executable=/usr/bin/jikes

However, I don't think it does anything for two reasons:

1. Compile time takes exactly the same amount of time regardless of the
setting
2. No matter what value I put, I get no error. For example, I can put:

maven.compile.executable=bla bla

And I get the same results. I tried putting the property in:

/project.properties

And also at the command prompt:

maven -Dmaven.compile.executable=/usr/bin/jikes java:compile

What am I doing wrong?

Thanks.

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com



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



Jmeter/Maven integration

2003-07-21 Thread Mark McBride


Hi,

Does anyone have advice with running Jmeter from maven?

I see two options:
Use the jmeter-ant task
Which works great but doesn't have a maven report for it.
Use the latka maven plug-in which converts jmeter test plans.
This looks nice but it doesn't seem to convert everything over.
Maybe this is a good time to write a jmeter plug-in for maven =)

Also does anyone know of any tools for trending the jmeter results?

Thanks in advance!

-Mark


RE: Running reactor without any goals ?

2003-07-21 Thread Brett Porter
Maybe we need a no-op goal in Maven. This might have uses outside of this
purpose - eg checking all sources are present and in the correct location.
As a workaround, you could use one of the many dummy plugin (eg war:load)
goals - although I'm not sure I should really recommend that :) You can
create your own maven.xml with "dummy:dummy" and run that.

Probably there should be a way to suck in project.xml's easily from other
projects, rather than having to do this.

- Brett

--
Brett Porter
Developer, Content & Distribution
f2 network ~ everything essential


-Original Message-
From: Paul Libbrecht [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 22 July 2003 8:37 AM
To: Maven Users List
Subject: Running reactor without any goals ?



Hi,


I'd like to run through a set of projects so as to get their 
dependencies... however, I'd like to avoid running any goal. How can I do
that ?

Thanks.

Paul


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


Re: b10 problem compiling (resources:copy missing)

2003-07-21 Thread dion
There really is a resources:copy dynamic tag defined, it's in maven.jar in 
a file called driver.jelly.

Can you post the result of running 'maven -e '??
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Lester Ward <[EMAIL PROTECTED]> wrote on 21/07/2003 11:59:55 PM:

> I just installed a virgin copy of b10. When running various goals (site,
> java:jar, etc), I get the following failure:
> 
> BUILD FAILED
> File.. file:/C:/Documents and
> Settings/lward/.maven/plugins/maven-test-plugin-1.3/
> Element... resources:copy
> Line.. 299
> Column 11
> java.lang.NullPointerException
> Total time:  9 seconds
> 
> Near as I can tell, the last few lines of the
> maven-test-plugin-1.3/plugin.jelly file invoke a goal called
> "resources:copy", which does not seem to exist anywhere. When I do a 
maven
> -g, nothing like that shows up in the list.
> 
> So, is the test plugin code wrong? Or is the problem that there really
> should be a resources:copy somewhere? Or is there some new configuration 
I
> don't know about? Or something else?
> 
> Any ideas?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: jelly:maven and maven Tags

2003-07-21 Thread dion
Check out http://maven.apache.org/reference/user-guide.html#maven.xml

There's a link there to the jelly docs
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


"Mirko Novakovic" <[EMAIL PROTECTED]> wrote on 21/07/2003 
11:46:06 PM:

> Hello,
> 
> I just looked at the Turbine maven.xml and saw that they are jusing 
> jelly:maven and maven Tags and defined the namespaces for them. Some 
> tags like maven:snapshot are very interesting. Where can I find a 
> listing or documentation of both tag-groups? I lokked at the Jelly 
> Libraries Doc 
> (http://jakarta.apache.org/commons/sandbox/jelly/libs/index.html) and 
> the Maven Homepage and I can't find them anywhere...
> 
> Thanks.
> 
> Mirko
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Clover plugin

2003-07-21 Thread dion
Post it into Jira: jira.codehaus.org under Maven.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


"Simon Matic Langford" <[EMAIL PROTECTED]> wrote on 22/07/2003 
12:50:56 AM:

> I've written a small patch for the plugin.jelly for the clover plugin to
> support historic reports, what's the best way to get it included?
> 
> thanks
> 
> simon
> 
> The information contained in this e-mail is intended only for the person
> or
> entity to which it is addressed and may contain confidential and/or
> privileged material. If You are not the intended recipient of this
> e-mail,
> the use of this information or any disclosure, copying or distribution
> is
> Prohibited and may be unlawful. If you received this in error, please
> contact the sender and delete the material from any computer. The views
> expressed in this e-mail may not necessarily be the views of The PCMS
> Group
> plc and should not be taken as authority to carry out any instruction
> contained.
> 
> 


Running reactor without any goals ?

2003-07-21 Thread Paul Libbrecht
Hi,

I'd like to run through a set of projects so as to get their 
dependencies... however, I'd like to avoid running any goal.
How can I do that ?

Thanks.

Paul

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


RE: Little bug in maven-projects.xsd

2003-07-21 Thread Brett Porter
I don't believe it is... Vincent added it in June. There may also be an
overwrite flag - I haven't looked at it recently. It resides in
driver.jelyy; 
I also raised an issue on JIRA I plan to work on to enhance the filtering to
let you load properties files and so on without the need to write preGoals,
but I don't know the # off the top of my head.

Cheers,
Brett

--
Brett Porter
Developer, Content & Distribution
f2 network ~ everything essential


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 22 July 2003 8:31 AM
To: Maven Users List
Subject: RE: Little bug in maven-projects.xsd


Does anyone know where it's documented?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Brett Porter <[EMAIL PROTECTED]> wrote on 22/07/2003 07:46:07 AM:

> I was just thinking that this morning... Should probably be:
> 
> 
> 
> I think.
> 
> --
> Brett Porter
> Developer, Content & Distribution
> f2 network ~ everything essential
> 
> 
> -Original Message-
> From: Paul Libbrecht [mailto:[EMAIL PROTECTED]
> Sent: Monday, 21 July 2003 9:03 PM
> To: Maven Users List
> Subject: Little bug in maven-projects.xsd
> 
> 
> 
> ... namely the filtering element is declared nowhere.
> 
> Until I can have something better I just inserted
> 
>
>  
> 
> In there...
> 
> Paul
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


RE: Little bug in maven-projects.xsd

2003-07-21 Thread dion
Does anyone know where it's documented?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Brett Porter <[EMAIL PROTECTED]> wrote on 22/07/2003 07:46:07 AM:

> I was just thinking that this morning... Should probably be:
> 
> 
> 
> I think.
> 
> --
> Brett Porter
> Developer, Content & Distribution
> f2 network ~ everything essential
> 
> 
> -Original Message-
> From: Paul Libbrecht [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 21 July 2003 9:03 PM
> To: Maven Users List
> Subject: Little bug in maven-projects.xsd
> 
> 
> 
> ... namely the filtering element is declared nowhere.
> 
> Until I can have something better I just inserted
> 
>
>  
> 
> In there...
> 
> Paul
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Using of appserver:start

2003-07-21 Thread dion
Have u seen the combination of Apache's JMeter and Latka available in 
Maven?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


"Henner Kollmann" <[EMAIL PROTECTED]> wrote on 22/07/2003 07:39:53 
AM:

> Hi Eric,
> 
> Nice to here you!
> 
> > 
> > Sounds to me like you are doing cactus style testing?  The 
> > cactus plugin does exactly that.
> No, cactus testing do not help. I can not retrieve posted data with 
cactus
> and compare the results of a sequence like:
> 
> First page,
> Post form results,
> Get next page as result to compare.
> 
> > 
> > You could do something like
> > 
> > appserver:start
> > webtest scripts run 
> > appserver:stop
> > 
> No, that will not work. After the appserver:start the whole process 
stops
> until you stop it with CTRL-C.
> 
> > What kinds of tests are you trying to run?
> I found maxq - a nice recorder of client side. I try to integrate the so
> generated tests with maven. Maxq uses the HttpClient package for getting
> client sides.
> 
> Regards,
> Henner
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: "multiproject" Plugin

2003-07-21 Thread dion
Fixed today.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Alwyn Schoeman <[EMAIL PROTECTED]> wrote on 18/07/2003 02:16:57 PM:

> While we are on the multiproject subject.
> 
> Am I the only one who get errors of  not supporting attribute
> 'name'?
> 
> I needed to change this to the correct 'value' for it to work for me,
> but it seems to not happen to other people...
> 
> 
> -- 
> Alwyn Schoeman
> SMART Money Inc.
> 
> If you're a SMARTY and you're using the better DNS connections, you
> can access my homepage at http://nevyn.smarties.com.ph/Members/alwyn.
> The other unlucky ones: http://10.126.136.35/myplone
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: API url for dependencies

2003-07-21 Thread dion
Me too.

Do you have a patch?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Work:  http://www.multitask.com.au


Trygve Laugstøl <[EMAIL PROTECTED]> wrote on 18/07/2003 05:22:56 PM:

> I would like it if the api docs was read from the pom of the 
> dependency, with the option to supply it in your own pom if you need a 
>   offline cache or you just want it at the company intranet server.
> 
> Trygvis
> 
> [EMAIL PROTECTED] wrote:
> > Nope, not possible, but it sounds like a nice addition.
> > 
> > How about raising it as an improvement on Jira ( 
http://jira.codehaus.org 
> > ) for the Maven project.
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:  http://blogs.codehaus.org/people/dion/
> > Work:  http://www.multitask.com.au
> > 
> > 
> > "Simon Matic Langford" <[EMAIL PROTECTED]> wrote on 
18/07/2003 
> > 03:24:20 AM:
> > 
> > 
> >>Hi
> >>
> >>Is it possible to define an API location for a dependency so that the
> >>generated javadocs can be linked to them, or even an offline location
> >>for those behind a firewall?
> >>
> >>e.g.
> >>
> >>
> >>  batik
> >>  1.5
> >>  http://xml.apache.org/batik
> >>  http://xml.apache.org/batik/javadoc/
> >>  etc/batik.packages
> >>
> >>
> >>Thanks
> >>
> >>simon
> >>
> >>The information contained in this e-mail is intended only for the 
person
> >>or
> >>entity to which it is addressed and may contain confidential and/or
> >>privileged material. If You are not the intended recipient of this
> >>e-mail,
> >>the use of this information or any disclosure, copying or distribution
> >>is
> >>Prohibited and may be unlawful. If you received this in error, please
> >>contact the sender and delete the material from any computer. The 
views
> >>expressed in this e-mail may not necessarily be the views of The PCMS
> >>Group
> >>plc and should not be taken as authority to carry out any instruction
> >>contained.
> >>
> >>
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Little bug in maven-projects.xsd

2003-07-21 Thread Brett Porter
I was just thinking that this morning... Should probably be:



I think.

--
Brett Porter
Developer, Content & Distribution
f2 network ~ everything essential


-Original Message-
From: Paul Libbrecht [mailto:[EMAIL PROTECTED] 
Sent: Monday, 21 July 2003 9:03 PM
To: Maven Users List
Subject: Little bug in maven-projects.xsd



... namely the filtering element is declared nowhere.

Until I can have something better I just inserted

   
 

In there...

Paul


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


RE: Hoto use filters before compilation in Maven

2003-07-21 Thread Brett Porter
Filtering Java files? Sounds like a recipe for disaster to me... What are
you trying to do that can't be done by reading properties from an external
resource file?
The only thing I can think of is JDK specific code, but most people solve
this by abstracting it to separate classes and conditionally including it in
the project.

Cheers,
Brett

--
Brett Porter
Developer, Content & Distribution
f2 network ~ everything essential


-Original Message-
From: Michal Maczka [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 22 July 2003 6:59 AM
To: Maven Users List
Subject: RE: Hoto use filters before compilation in Maven




> -Original Message-
> From: Joël Wijngaarde [Us Media] [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 1:27 PM
> To: 'Maven Users List'
> Subject: Hoto use filters before compilation in Maven
>
>
> Hi,
>
> I'm building a web application for a client. During testing we deploy 
> the application on a staging server. There are some slight differences 
> between the configuration of the staging server and the live 
> environment. Mainly the 'web.xml' and the 'log4j.xml' files, but also 
> some slight differences in the .java files.
>
> In ant we can use the filter tag to perform some changes. We first 
> copy the class files to a new folder using a filter rule and then 
> compile the filtered classes.
>
> Is there a 'standard' way of doing something similar in maven. Or does 
> it require creating 'pre-goals' in a 'maven.xml' file? How I could use 
> filtering inside a maven project?
>
> I will try to add the answers received here in the maven wiki at: 
> http://wiki.codehaus.org/maven/CreatingWebApplications
>
>

Currently in Maven you can do filtering of "resources".
see: http://maven.apache.org/reference/project-descriptor.html#resources

You cannot do this with Java classes (unless you do will create pre-goals).

Michal



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


AW: Using of appserver:start

2003-07-21 Thread Henner Kollmann
Hi Eric,

Nice to here you!

> 
> Sounds to me like you are doing cactus style testing?  The 
> cactus plugin does exactly that.
No, cactus testing do not help. I can not retrieve posted data with cactus
and compare the results of a sequence like:

First page,
Post form results,
Get next page as result to compare.

> 
> You could do something like
> 
> appserver:start
> webtest scripts run 
> appserver:stop
> 
No, that will not work. After the appserver:start the whole process stops
until you stop it with CTRL-C.

> What kinds of tests are you trying to run?
I found maxq - a nice recorder of client side. I try to integrate the so
generated tests with maven. Maxq uses the HttpClient package for getting
client sides.

Regards,
Henner


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



RE: Hoto use filters before compilation in Maven

2003-07-21 Thread Michal Maczka


> -Original Message-
> From: Joël Wijngaarde [Us Media] [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 1:27 PM
> To: 'Maven Users List'
> Subject: Hoto use filters before compilation in Maven
>
>
> Hi,
>
> I'm building a web application for a client. During testing we deploy
> the application on a staging server. There are some slight differences
> between the configuration of the staging server and the live
> environment. Mainly the 'web.xml' and the 'log4j.xml' files, but also
> some slight differences in the .java files.
>
> In ant we can use the filter tag to perform some changes. We first copy
> the class files to a new folder using a filter rule and then compile the
> filtered classes.
>
> Is there a 'standard' way of doing something similar in maven. Or does
> it require creating 'pre-goals' in a 'maven.xml' file? How I could use
> filtering inside a maven project?
>
> I will try to add the answers received here in the maven wiki at:
> http://wiki.codehaus.org/maven/CreatingWebApplications
>
>

Currently in Maven you can do filtering of "resources".
see: http://maven.apache.org/reference/project-descriptor.html#resources

You cannot do this with Java classes (unless you do will create pre-goals).

Michal



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



Canoo WebTest Plugin 0.7 problems

2003-07-21 Thread Leandro Rodrigo Saad Cruz
Hi Siegfried.


  Debian/Linux
  Apache Ant version 1.5.3
  java version "1.4.1_02"
  maven 1.0-beta-10



I'm trying to use the canoo plugin but keep getting this error :


webtest:info:
[echo] 
  maven.webtest.file= *.xml
  maven.webtest.target  = 
  maven.webtest.src = src/webtest  
  maven.webtest.config.host = localhost
  maven.webtest.config.port = 8080
  maven.webtest.config.protocol = http  
  maven.webtest.config.basepath = /multirc
  maven.webtest.config.summary  = true
  maven.webtest.config.verbose  = true
  maven.webtest.config.saveresponse = true
  maven.webtest.config.resultpath   =
/home/leandro/workspace/multirc/target/webtest  
  maven.webtest.config.resultfile   = 
  maven.webtest.jar.fileset.dir = 
  maven.webtest.jar.fileset.include = 
  maven.webtest.jar.fileset.exclude =


webtest:test:
[echo] Starting Canoo Webtest ...
[echo] Processing simpletest.xml
[java] Buildfile:
/home/leandro/workspace/multirc/src/webtest/simpletest.xml
[java] No public execute() in class
com.canoo.webtest.steps.verify.VerifyLinks
[java] 
[java] BUILD FAILED
[java] No public execute() in class
com.canoo.webtest.steps.verify.VerifyLinks
[java] 
[java] Total time: 2 seconds
[java] [ERROR] Java Result: 1
[echo] Finished running Canoo Webtest Plugin

webtest:generate-test-report:

webtest:generate-summary-report:
[echo] Summary
BUILD SUCCESSFUL
Total time:  10 seconds



The simpltest.xml file works when I use ant -f simpletest.xml and all
required jars are on my $CLASSPATH

Do you have any clue why ?

-- 
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)
http://www.ibnetwork.com.br
http://db.apache.org/ojb
http://xingu.sourceforge.net


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



RE: Using of appserver:start

2003-07-21 Thread EPugh
Sounds to me like you are doing cactus style testing?  The cactus plugin
does exactly that.

You could do something like

appserver:start
webtest scripts run 
appserver:stop



What kinds of tests are you trying to run?

Eric
-Original Message-
From: Henner Kollmann
To: 'Maven Users List'
Sent: 7/21/03 1:41 PM
Subject: Using of appserver:start

Hi all,

Maven appserver:start only starts the defined application server and do
not
run further.

Do you have any idea  how to start the application server, run several
tests
against the server and stop the server in an maven task?

Thanks,

Henner


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


Using of appserver:start

2003-07-21 Thread Henner Kollmann
Hi all,

Maven appserver:start only starts the defined application server and do not
run further.

Do you have any idea  how to start the application server, run several tests
against the server and stop the server in an maven task?

Thanks,

Henner


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



RE: WAR file naming

2003-07-21 Thread Michal Maczka


> -Original Message-
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 1:18 PM
> To: 'Maven Users List'
> Subject: RE: WAR file naming
>
>
>
>
> > -Original Message-
> > From: James Ward [mailto:[EMAIL PROTECTED]
> > Sent: 17 July 2003 21:50
> > To: Maven Users List
> > Subject: RE: WAR file naming
> >
> > Actually if you are packaging your war into an ear, you can specify
> the
> > context, or if you have jboss you can put a jboss-web.xml in your
> > WEB-INF and specify it there.  Regardless, the default behavior should
> > be the same as the jar and ejb plugins where it is named with the
> > version.
>
> +1
>

I am also +1 to change it.
Last time I changed it I was asked on the mailing list to change it back

If nobody from committers has something against I would like to change
a value of property maven.war.final.name
from: ${pom.artifactId}}.war
to:${maven.final.name}.war



Michal



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



Modifying the xdocs template files

2003-07-21 Thread Jefferson K. French
Is it possible to override any of the templates in the xdocs plugin,
besides editing the installed file? I want to change the wording on
some of the pages, rather than the colors. For instance, since our
project does not allow anonymous CVS access, I'd like to remove the
section about anonymous access from cvs-usage.html. I've tried setting
various properties in an attempt to use different plug-resources or
templates, but so far to no avail.

I thought this would be something others would have asked, but I
couldn't find an answer in the archives. Either others don't want to
do this, or I'm completely missing something!

Thanks for any help.

Jeff

-- 
mailto:[EMAIL PROTECTED]



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



Howto access properties set by war plugin in maven.xml

2003-07-21 Thread Wijngaarde [Us Media]
Hi All,

Trying to create different goals to create different war files I tried
the following code to create a war containing different log4j config
files depending on the called goal.

I defined the 'war:staging' goal:



  Building WAR ${pom.artifactId} for staging server
  Using log4j configuration: 
${maven.war.webapp.dir}/WEB-INF/log4j-staging.xml

  

  



But I do not seem to be able to access the '${maven.war.webapp.dir}'
property from my script. It is empty when I echo the property. So, I was
wondering how I could access the properties set by the war plugin. And
how I can use them in additional defined goals


Sincerely,

Joel Wijngaarde


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



Clover plugin

2003-07-21 Thread Simon Matic Langford
I've written a small patch for the plugin.jelly for the clover plugin to
support historic reports, what's the best way to get it included?

thanks

simon

The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
 



b10 problem compiling (resources:copy missing)

2003-07-21 Thread Lester Ward
I just installed a virgin copy of b10. When running various goals (site,
java:jar, etc), I get the following failure:

BUILD FAILED
File.. file:/C:/Documents and
Settings/lward/.maven/plugins/maven-test-plugin-1.3/
Element... resources:copy
Line.. 299
Column 11
java.lang.NullPointerException
Total time:  9 seconds

Near as I can tell, the last few lines of the
maven-test-plugin-1.3/plugin.jelly file invoke a goal called
"resources:copy", which does not seem to exist anywhere. When I do a maven
-g, nothing like that shows up in the list.

So, is the test plugin code wrong? Or is the problem that there really
should be a resources:copy somewhere? Or is there some new configuration I
don't know about? Or something else?

Any ideas?

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



jelly:maven and maven Tags

2003-07-21 Thread Mirko Novakovic
Hello,

I just looked at the Turbine maven.xml and saw that they are jusing 
jelly:maven and maven Tags and defined the namespaces for them. Some 
tags like maven:snapshot are very interesting. Where can I find a 
listing or documentation of both tag-groups? I lokked at the Jelly 
Libraries Doc 
(http://jakarta.apache.org/commons/sandbox/jelly/libs/index.html) and 
the Maven Homepage and I can't find them anywhere...

Thanks.

Mirko

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


Hoto use filters before compilation in Maven

2003-07-21 Thread Wijngaarde [Us Media]
Hi,

I'm building a web application for a client. During testing we deploy
the application on a staging server. There are some slight differences
between the configuration of the staging server and the live
environment. Mainly the 'web.xml' and the 'log4j.xml' files, but also
some slight differences in the .java files.

In ant we can use the filter tag to perform some changes. We first copy
the class files to a new folder using a filter rule and then compile the
filtered classes. 

Is there a 'standard' way of doing something similar in maven. Or does
it require creating 'pre-goals' in a 'maven.xml' file? How I could use
filtering inside a maven project?

I will try to add the answers received here in the maven wiki at:
http://wiki.codehaus.org/maven/CreatingWebApplications


Best regards,

Joel

-- 
Us Media
Stadhouderskade 115
1073 AX Amsterdam

t: +31 20 428 6868
f: +31 20 470 6905
w: http://www.usmedia.nl


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



Getting tools.jar on the javac classpath

2003-07-21 Thread Simon Matic Langford
Hi

How do I persuade maven to put tools.jar onto the classpath when doing
the goal java:compile, as I depend on some of those packages for
non-production code...

thanls

simon

The information contained in this e-mail is intended only for the person
or
entity to which it is addressed and may contain confidential and/or
privileged material. If You are not the intended recipient of this
e-mail,
the use of this information or any disclosure, copying or distribution
is
Prohibited and may be unlawful. If you received this in error, please
contact the sender and delete the material from any computer. The views
expressed in this e-mail may not necessarily be the views of The PCMS
Group
plc and should not be taken as authority to carry out any instruction
contained.
 



RE: WAR file naming

2003-07-21 Thread Vincent Massol


> -Original Message-
> From: James Ward [mailto:[EMAIL PROTECTED]
> Sent: 17 July 2003 21:50
> To: Maven Users List
> Subject: RE: WAR file naming
> 
> Actually if you are packaging your war into an ear, you can specify
the
> context, or if you have jboss you can put a jboss-web.xml in your
> WEB-INF and specify it there.  Regardless, the default behavior should
> be the same as the jar and ejb plugins where it is named with the
> version.  

+1

> And of course there should be some way to override the name if
> you do not want to specifically set the war's context using one of the
> previously mentioned methods (or a different method).
> 
> -James
> 
> 
> On Thu, 2003-07-17 at 13:37, Michal Maczka wrote:
> > > -Original Message-
> > > From: Andy Jefferson [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, July 17, 2003 9:01 PM
> > > To: Maven Users List
> > > Subject: WAR file naming
> > >
> > >
> > > Its been raised as an issue by others but for a Maven newcomer, is
> there
> > > any reason why the WAR file has a naming that omits the version
and
> > > hence is inconsistent with the JAR and EAR namings.
> >
> > Yes. For many(all?) Servlet engines war file name = root context of
the
> web
> > application.
> > That's why many users prefer to have an artifact which is ready to
> deploy.
> >
> > > In addition, it uses
> > > the Ant task 'jar' instead of the Ant task 'war'.
> > >
> >
> > Basically war task is simple extension of jar task:
> >
> >
>
http://cvs.apache.org/viewcvs/ant/src/main/org/apache/tools/ant/taskdefs
/W
> ar
> > .java
> >
> > and really does nothing special but provides you some nested tags
which
> help
> > you
> > to put together files from different locations into war file.
> > In maven this is already solved/configurable in different way
> > and processing without using war task seems to be simpler
> > (e.g. no warning is printed when WEB-INF folder contains web.xml
file).
> >
> >
> > Michal
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
-
> > 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]



Little bug in maven-projects.xsd

2003-07-21 Thread Paul Libbrecht

... namely the filtering element is declared nowhere.
Until I can have something better I just inserted

  

In there...

Paul

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


Re: Problem with dependencies

2003-07-21 Thread Ben Walding
Re security issues.

Remember that proxy authentication is typically done using a base64 
encode of  "Basic " + user + ":" + pass in an http header. It is trivial 
to reverse this and grab your password as it travels over the network.  
If other people can read files in your home directory 
(~/build.properties is read remember), you've got greater problems.

Michal Maczka wrote:

On Mon, 2003-07-21 at 10:45, Mirko Novakovic wrote:
 

Hello,

I am new to Maven and just trying to set up my project.

I try to compile the sources in my project by typing in "maven 
java:compile" (I've defined the POM).

I get an error because of unsatisfied dependencies, e.g. ant-1.5.1.jar. 
( which are not dependencies defined in my POM) I've set up my own 
remote repository (in build.properties) and there I have version 1.5.3 
of ant. Is there a chance to change the dependencies for the java goal? 
I don't want to put all the needed "old" jars in my remote repsoitory...

   

I am afraid you need them in java plugin and in many other
plugins...unless you want to write a dozens of your own maven plugins 
or download required dependencies manually. 
But then you have almost no profits from using Maven.

 

There would be a chance to get them from the ibiblio.org server but 
there I've the problem that I've to go through an proxy. The rights are 
very restricted in our company and it would be unsecure to put my proy 
password in the build.properties file. So I've to get the libs from my 
own remote repository.

Thank you.
   

You can consider making your own company-wide mirror of maven's ibiblio
repository.
Note also that you can pass a password using command line option:
-Dmaven.proxy.password=
It is not secure as well, but still better then keeping the password in
properties files.
Michal 

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

2003-07-21 Thread Jamie McCrindle
+1 this idea.

most of the ide's have the concept of a project (or at least have a way to
specify all the source locations and dependencies so that you can compile).
i'd prefer interfaces rather an .xml as the standard (IJavaProject etc.).
one wonders if this is included in JSR 198?


> -Original Message-
> From: Dave Ford [mailto:[EMAIL PROTECTED]
> Sent: 19 July 2003 17:27
> To: Maven Users
> Subject: POM JSR
> 
> 
> Multiple goals and plug-ins can all use information from the 
> POM. It seems
> to me, that multiple tools could also use it. For example, it 
> would be nice
> if IntelliJ could read my list of jar dependencies from 
> project.xml so I
> wouldn't have to maintain that information twice. Does anyone 
> think a java
> standard for project meta-data would be useful?
> 
> Dave Ford
> Smart Soft - The Developer Training Company
> http://www.smart-soft.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




This e-mail message (including any attachment) is intended only for the personal 
use of the recipient(s) named above. This message is confidential and may be 
legally privileged.  If you are not an intended recipient, you may not review, copy or 
distribute this message. If you have received this communication in error, please 
notify 
us immediately by e-mail and delete the original message.

Any views or opinions expressed in this message are those of the author only. 
Furthermore, this message (including any attachment) does not create any legally 
binding rights or obligations whatsoever, which may only be created by the exchange 
of hard copy documents signed by a duly authorised representative of Hutchison 
3G UK Limited.



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



Re: Problem with dependencies

2003-07-21 Thread Michal Maczka
On Mon, 2003-07-21 at 10:45, Mirko Novakovic wrote:
> Hello,
> 
> I am new to Maven and just trying to set up my project.
> 
> I try to compile the sources in my project by typing in "maven 
> java:compile" (I've defined the POM).
> 
> I get an error because of unsatisfied dependencies, e.g. ant-1.5.1.jar. 
> ( which are not dependencies defined in my POM) I've set up my own 
> remote repository (in build.properties) and there I have version 1.5.3 
> of ant. Is there a chance to change the dependencies for the java goal? 
> I don't want to put all the needed "old" jars in my remote repsoitory...
> 

I am afraid you need them in java plugin and in many other
plugins...unless you want to write a dozens of your own maven plugins 
or download required dependencies manually. 
But then you have almost no profits from using Maven.

> There would be a chance to get them from the ibiblio.org server but 
> there I've the problem that I've to go through an proxy. The rights are 
> very restricted in our company and it would be unsecure to put my proy 
> password in the build.properties file. So I've to get the libs from my 
> own remote repository.
> 
> Thank you.

You can consider making your own company-wide mirror of maven's ibiblio
repository.

Note also that you can pass a password using command line option:
-Dmaven.proxy.password=
It is not secure as well, but still better then keeping the password in
properties files.

Michal 


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



Problem with dependencies

2003-07-21 Thread Mirko Novakovic
Hello,

I am new to Maven and just trying to set up my project.

I try to compile the sources in my project by typing in "maven 
java:compile" (I've defined the POM).

I get an error because of unsatisfied dependencies, e.g. ant-1.5.1.jar. 
( which are not dependencies defined in my POM) I've set up my own 
remote repository (in build.properties) and there I have version 1.5.3 
of ant. Is there a chance to change the dependencies for the java goal? 
I don't want to put all the needed "old" jars in my remote repsoitory...

There would be a chance to get them from the ibiblio.org server but 
there I've the problem that I've to go through an proxy. The rights are 
very restricted in our company and it would be unsecure to put my proy 
password in the build.properties file. So I've to get the libs from my 
own remote repository.

Thank you.

Greetings from Germany,
Mirko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to not extend maven.xml from parent project to subprojects?

2003-07-21 Thread Michal Maczka
On Fri, 2003-07-18 at 17:24, Darren Hartford wrote:
> Hey all,
> Still loving Maven, thank you thank you thank you

> I came across this scenario, and it tripped me up a bit before finally figuring it 
> out, so sharing it and wondering if there is a better way of handling it.  What I 
> have is in my root project folder, the maven.xml has the following pre-goal to 
> create a list of all the subprojects.  Attached below is the code snip if anyone is 
> interested.
> 
> I got tripped up on this because the pre-goal I defined in my root maven.xml 
> extended/carried over to all my subprojects.  This is kinda cool, but I don't want 
> to do that in this scenario (it tries to run the pre-goal from the subproject, which 
> the reactor doesn't like).  I suppose I could go into *each* maven.xml file in each 
> of the subprojects and do an overwrite, but that just seems silly.  Any ideas?  TIA!
> -D
> 
I think that the best is to have two distinct projects:

foo-shared (all "normal" subproject inheriting from this project)
foo-aggregator (this project is used to perform reactor-powered builds
which are aggregating results e.g. handling generation of sites for all
of subprojects)


Michal


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