Fwd: how to set the correct timezone?

2006-05-08 Thread geoff laura

not sure why but my emails dont seem to be making it into the list so I am
sending again?

any help would be great,
cheers,
g

-- Forwarded message --
From: geoff laura [EMAIL PROTECTED]
Date: May 5, 2006 4:25 PM
Subject: how to set the correct timezone?
To: continuum-users@maven.apache.org

Currently all builds from continuum are showing the time as *UTC* (GMT). How
do I configure this to be Sydney time?

much appreciated,
geoff


Problem with http URL when adding new project

2006-05-08 Thread CDickson
Hi,

I am using the following URL to try to add a new M2 project:
http://behrcvs.masco_coatings.com/cgi-bin/viewcvs.cgi/*checkout*/commons/pom.xml

But I am getting the following error in red bold text [ You must provide a 
valid url (http, https, ftp and file protocols are allowed) ] 

Any ideas? The URL works in Firefox just fine.

Thanks.

--
Craig Dickson
IT Manager, Web Development
Behr Process Corporation
Santa Ana, California



--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 

RE: forced build notifications stopped in 1.0.3

2006-05-08 Thread Davidson, Alexander
Can someone please let me know if this is the case and/or if this is planned 
for a future release? 

-Original Message-
From: Davidson, Alexander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 1:16 PM
To: continuum-users@maven.apache.org
Subject: forced build notifications stopped in 1.0.3

Seems that the behavior of 1.0.3 has changed in that forced builds no longer 
send notifications. I have always had it set up with 
sendOnSuccessfalse/sendOnSuccess but in 1.0.2 it would still send forced 
SUCCESS messages which I think is a good thing. Is there a new way of 
configuring continuum to do this? The alternative is that developers have to 
manually send out a notification when the build goes green.

Thanks,
Alex


Re: forced build notifications stopped in 1.0.3

2006-05-08 Thread dan tran

Yes it will be in 1.1 .

However, I dont recall forced build sent notification in 1.0.2.  I had 3
1.0.2 + some patches Continuum server, and never see this behavior

-D


On 5/8/06, Davidson, Alexander [EMAIL PROTECTED] wrote:


Can someone please let me know if this is the case and/or if this is
planned for a future release?

-Original Message-
From: Davidson, Alexander [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 1:16 PM
To: continuum-users@maven.apache.org
Subject: forced build notifications stopped in 1.0.3

Seems that the behavior of 1.0.3 has changed in that forced builds no
longer send notifications. I have always had it set up with
sendOnSuccessfalse/sendOnSuccess but in 1.0.2 it would still send
forced SUCCESS messages which I think is a good thing. Is there a new way of
configuring continuum to do this? The alternative is that developers have to
manually send out a notification when the build goes green.

Thanks,
Alex



Re: maven 2.0.4 error in site generation

2006-05-08 Thread harald . meyer

Quoting Charlie [EMAIL PROTECTED]:
I have just upgrade to 2.0.4 and when I run mvn site I am getting 
ERROR in the log. The error are as follow:


[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
Any Ideas why this is happening? The content seems to be ok but my 
images that sits under /src/site/images hasn't got copied over...
I also got those messages, but the content produced was OK. The manual 
says that you should keep your images in src/site/resources/images, the 
images directory will be
copied as immediate child directory of the generated site branch 
(ommitting the resources part of the path).


Harald



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



PHP Deployments

2006-05-08 Thread Serge Sozonoff
Hello All,

Does anyone know if any PHP plugins exist for Maven 2?
I know there are some for Maven 1 but since we are starting a new project I
would really like to kick it off using maven 2.

I guess what I am really looking for is:
a. Check the PHP code for any compile time errors.
b. Deploy the PHP application to a cluster of machines in a very managed
fashion. This could possibly a mix of some sort of packaging system (zip) and
then a deploy but then we need something to unpack on the other end. Or simply
a file transfer.

As background this is an application using both PHP and Java code and ideally
we could deploy the application as a whole.

Anyone have any experience or thoughts on this?

Kind thanks,
Serge

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



RE: Maven Clover Plugin 2.1 Excludes Exception

2006-05-08 Thread Vincent Massol
Hi George,

 

You're using a wrong format that doesn't exist. Try instead:

 

exclude**/*Fake*.java/exclude

 

Thanks

-Vincent

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: lundi 8 mai 2006 06:56
To: users@maven.apache.org
Cc: [EMAIL PROTECTED]
Subject: Maven Clover Plugin 2.1 Excludes Exception

 

I am seeing Maven Clover Plugin 2.0 doesn't exclude my files for
instrumenting.

From the 2.1 link:

http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11129
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11129styleName=
Htmlversion=12216 styleName=Htmlversion=12216

 

I saw the fix(MCLOVER-24) was in 2.1 and tried that. But I got an exception:

 

java.lang.NullPointerException
at
org.codehaus.plexus.util.DirectoryScanner.setExcludes(DirectoryScanne
r.java:502)
at
org.codehaus.plexus.compiler.util.scan.AbstractSourceInclusionScanner
.scanForSources(AbstractSourceInclusionScanner.java:75)
at
org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner.g
etIncludedSources(SimpleSourceInclusionScanner.java:62)
at
org.apache.maven.plugin.clover.CloverInstrumentInternalMojo.computeFi
lesToInstrument(CloverInstrumentInternalMojo.java:367)
at
org.apache.maven.plugin.clover.CloverInstrumentInternalMojo.execute(C
loverInstrumentInternalMojo.java:114)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:531)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi

 

Any ideas for this issue? The pom has this piece of code(in build section):

   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-clover-plugin/artifactId
version2.1/version 
configuration
 excludes
  exclude name=**/*Fake*.java /
exclude name=**/*Test.java /
exclude name=**/proxies/**/*.java /
  exclude name=**/EJS*.java /
 exclude name=**/_EJS*.java /
 exclude name=**/*_Stub.java /
 exclude name=**/ejbModule/**/*Bean*_*.java /
 exclude name=**/ejbModule/**/Concret*_*.java /
 exclude name=**/ejbModule/**/*_*[0-9]*.java /
  /excludes

 

I have spent much time, no luck. 

 

BTW, I have to specify 2.1 as the clover plugin version on build section,
otherwise the 2.0 is picked. Or if I put on reporting section, 2.0 is also
always picked.

 

Thanks,

George Zhao

Web Development Group
Phone: 925-924-4467

=



Re: [1.1] Hung build - threaddump

2006-05-08 Thread Kenney Westerhof
On Sun, 7 May 2006, Jon Strayer wrote:

Hi,

I assume you've gone through your share of JDK's in all this time?
If not, can you try with a newer JDK?

-- Kenney

 I occasionally get hung maven builds with cruise control.  About one a day
 (that's about one every 40 builds or so).  I finally got a thread dump.  I
 can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta 2,
 but I've had the problem with as long as I can remember (that would take it
 back to 0.9 or so).

 Full thread dump  [Sun May 07 13:49:08 CDT 2006] (Java HotSpot(TM) Server VM
 1.4.2 1.4.2.06-041015-12:22-PA_RISC1.1 PA1.1 mix
 ed mode):

 Thread-13 daemon prio=10 tid=40057958 nid=34 lwp_id=22588 runnable
 [0x4cdf5000..0x4cdf54c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:177)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:243)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 Thread-12 daemon prio=10 tid=40057ac0 nid=33 lwp_id=22587 runnable
 [0x4cff9000..0x4cff94c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:194)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:252)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
 - locked 6b0427b0 (a java.io.BufferedInputStream)
 at java.io.FilterInputStream.read(FilterInputStream.java:90)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 process reaper daemon prio=9 tid=40057c28 nid=32 lwp_id=22586 runnable
 [0x4ce76000..0x4ce764c0]
 at java.lang.UNIXProcess.waitForProcessExit(Native Method)
 at java.lang.UNIXProcess.access$1000(UNIXProcess.java:20)
 at java.lang.UNIXProcess$4.run(UNIXProcess.java:117)

 MultiThreadedHttpConnectionManager cleanup daemon prio=10 tid=400577f0
 nid=12 lwp_id=21662 in Object.wait() [0x4d07a000..0x
 4d07a4c0]
 at java.lang.Object.wait(Native Method)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5595b9c0 (a java.lang.ref.ReferenceQueue$Lock)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)

 Signal Dispatcher daemon prio=10 tid=40057688 nid=7 lwp_id=21573 waiting
 on condition [0x..0x]

 Finalizer daemon prio=10 tid=40057520 nid=5 lwp_id=21571 in Object.wait()
 [0x6ae3c000..0x6ae3c4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:188)

 Reference Handler daemon prio=10 tid=400573b8 nid=4 lwp_id=21570 in
 Object.wait() [0x6aebd000..0x6aebd4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c0d0 (a java.lang.ref.Reference$Lock)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
 - locked 5587c0d0 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=40057250 nid=1 lwp_id=21567 in Object.wait()
 [0x77ff3000..0x77ff14b0]
 at java.lang.Object.wait(Native Method)
 - waiting on 6b042480 (a java.lang.UNIXProcess)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.UNIXProcess.waitFor(UNIXProcess.java:146)
 - locked 6b042480 (a java.lang.UNIXProcess)
 at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:539)
 at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:471)
 at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1952)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
 at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
 :95)
 at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
 :186)
 at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
 at 

[m1] Plugin for Slice2Java compiler

2006-05-08 Thread Gisbert Amm
Is there a Maven 1 plugin for the Slice2Java compiler (see 
http://www.zeroc.com/ice.html)?


Regards,
Gisbert Amm

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



mvn install sort classpath

2006-05-08 Thread mathapfahl

I have a problem.
Executing the mvn install, I want to sort the classpath.
How can I manipulate it ?

Any ideas ?

Thanks in advance !

matha

--
View this message in context: 
http://www.nabble.com/mvn-install-sort-classpath-t1575823.html#a4278242
Sent from the Maven - Users forum at Nabble.com.


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



Re: maven 2.0.4 error in site generation

2006-05-08 Thread Twine

Thanks for the tip... Guess the documentation needs updating.. Still no
news about the error tho ;)
Charlie

[EMAIL PROTECTED] wrote:

Quoting Charlie [EMAIL PROTECTED]:
I have just upgrade to 2.0.4 and when I run mvn site I am getting 
ERROR in the log. The error are as follow:


[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 
got 0
Any Ideas why this is happening? The content seems to be ok but my 
images that sits under /src/site/images hasn't got copied over...
I also got those messages, but the content produced was OK. The manual 
says that you should keep your images in src/site/resources/images, 
the images directory will be
copied as immediate child directory of the generated site branch 
(ommitting the resources part of the path).


Harald



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






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



[m2] Disable generation of xml test reports

2006-05-08 Thread Vinod Panicker

Hi,

Is there a way to disable generation of xml test reports?  I'm running
a huge number of tests and don't need the xml output.  Just need plain
text reports.  The xml file generation adds up to a huge amount of
time.

Adding reportFormatplain/reportFormat doesn't disable xml generation :(

Regards,
Vinod.

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



AW: mvn install sort classpath

2006-05-08 Thread Domsch, Christian
Why would you want to do that? They only reason would be, that you depend on 
the classloader order and that would be a Very Bad Idea(tm). 

Christian.

 -Ursprüngliche Nachricht-
 Von: mathapfahl [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 8. Mai 2006 11:54
 An: users@maven.apache.org
 Betreff: mvn install sort classpath
 
 
 I have a problem.
 Executing the mvn install, I want to sort the classpath.
 How can I manipulate it ?
 
 Any ideas ?
 
 Thanks in advance !
 
 matha

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



Re: maven 2.0.4 error in site generation

2006-05-08 Thread Charlie
Thanks for the tip... Guess the documentation needs updating.. Still no 
news about the error tho ;)

Charlie

[EMAIL PROTECTED] wrote:

Quoting Charlie [EMAIL PROTECTED]:
I have just upgrade to 2.0.4 and when I run mvn site I am getting 
ERROR in the log. The error are as follow:


[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 
got 0
Any Ideas why this is happening? The content seems to be ok but my 
images that sits under /src/site/images hasn't got copied over...
I also got those messages, but the content produced was OK. The manual 
says that you should keep your images in src/site/resources/images, 
the images directory will be
copied as immediate child directory of the generated site branch 
(ommitting the resources part of the path).


Harald



-
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: RE : RE : Configuring path for picking submodule site

2006-05-08 Thread RobJac

I am using 2.0_SNAPSHOT version of maven-site-plugin. But its the same case,
how does taking this version of maven-site-plugin help? Do i have an option
to configure my submodule site  location if this version is used? If yes,
where can it be configured?
--
View this message in context: 
http://www.nabble.com/Configuring-path-for-picking-submodule-site-t1555973.html#a4278961
Sent from the Maven - Users forum at Nabble.com.


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



[m2] release plugin removes all comments from pom.xml

2006-05-08 Thread Jens Zastrow
Is tehre any technical issue why the release plugin needs to remove all
the comments and to reformat the whole pom.xml?

Thanks
Jens Zastrow

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



Re: [m2] release plugin removes all comments from pom.xml

2006-05-08 Thread Geoffrey De Smet

Yes, I added one, but it was a duplicate of an existing one already.
Forgot the id though.

Jens Zastrow wrote:

Is tehre any technical issue why the release plugin needs to remove all
the comments and to reformat the whole pom.xml?

Thanks
Jens Zastrow


--
With kind regards,
Geoffrey De Smet


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



Re: Refering to parent directory from child pom xml

2006-05-08 Thread RobJac

tried using ../target/site in my cild pom xml for reporting outputDirectory
but does not seem to help. It was trying look for
\parentProject\childProject\..\target\site
--
View this message in context: 
http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4279157
Sent from the Maven - Users forum at Nabble.com.


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



How to get superscript symbol in APT Format?

2006-05-08 Thread andreas.ebbert-karroum
I found this question in the archive, but no answer to it. Is it possible?
 
http://www.mail-archive.com/users@maven.apache.org/msg33187.html
 
(same use-case here, btw: Java^TM)
Andreas Ebbert-Karroum 
  Senior Software Design Engineer - Nokia Networks Services / Middleware 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 




This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia GmbH does not accept legal responsibility for the 
contents of this message as it has been transmitted over a public network. 
Thank you. 

Nokia GmbH, Nokia Networks is a German Company. Further information about the 
Company is available from its principal offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nokia.com/ 





Archetype Directories

2006-05-08 Thread bryan hansen
So is it possible to have an archetype create multiple
java source directories (mainly packages)? I want to
have an archetype that creates an
org.mycompany.App.java class and the archetype also
create an org.mycompany.service.AppService.java.

I know that you can have multiple directories created
with the resources like the webapp directories, but
the way the packageName gets applied it doesn't seem
to work for .java files.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [m2] release plugin removes all comments from pom.xml

2006-05-08 Thread dan tran

http://jira.codehaus.org/browse/MRELEASE-45

It is fixed in svn, please test.

-D


On 5/8/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:


Yes, I added one, but it was a duplicate of an existing one already.
Forgot the id though.

Jens Zastrow wrote:
 Is tehre any technical issue why the release plugin needs to remove all
 the comments and to reformat the whole pom.xml?

 Thanks
 Jens Zastrow

--
With kind regards,
Geoffrey De Smet


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




RE: [m2] release plugin removes all comments from pom.xml

2006-05-08 Thread Jens Zastrow
Yes it - almost - works.

Our pom´s should include some kind of documentation in the header.
Unf. this comments get removed from the pom during the release.
I´m not sure but maybe this is jdom related - a well formed xml document 
should only have 1 root node but our ones have 2 (project + comment).


[original pom.xml]
?xml version=1.0 encoding=ISO-8859-1?
!-- 
==
   |
   |   This pom.xml: http://maven.apache.org/maven-model/maven.html
   |
   |   Getting Started : 
http://maven.apache.org/guides/getting-started/index.html
   |   Guides  : http://maven.apache.org/guides/index.html
   |
   

 -- 
project xmlns=http://maven.apache.org/POM/4.0.0; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
...

[transformed pom.xml]
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
...

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 4:08 PM
To: Maven Users List
Subject: Re: [m2] release plugin removes all comments from pom.xml

http://jira.codehaus.org/browse/MRELEASE-45

It is fixed in svn, please test.

-D


On 5/8/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:

 Yes, I added one, but it was a duplicate of an existing one already.
 Forgot the id though.

 Jens Zastrow wrote:
  Is tehre any technical issue why the release plugin needs to remove 
  all the comments and to reformat the whole pom.xml?
 
  Thanks
  Jens Zastrow

 --
 With kind regards,
 Geoffrey De Smet


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



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



Re: [m2] release plugin removes all comments from pom.xml

2006-05-08 Thread Brett Porter

I thought I was working around this as well, but you should find that
if you remove the line breaks in the project element in your
original, that doesn't happen.

- Brett

On 5/9/06, Jens Zastrow [EMAIL PROTECTED] wrote:

Yes it - almost - works.

Our pom´s should include some kind of documentation in the header.
Unf. this comments get removed from the pom during the release.
I´m not sure but maybe this is jdom related - a well formed xml document 
should only have 1 root node but our ones have 2 (project + comment).


[original pom.xml]
?xml version=1.0 encoding=ISO-8859-1?
!-- 
==
   |
   |   This pom.xml: http://maven.apache.org/maven-model/maven.html
   |
   |   Getting Started : 
http://maven.apache.org/guides/getting-started/index.html
   |   Guides  : http://maven.apache.org/guides/index.html
   |
   
 
--
project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
...

[transformed pom.xml]
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
...

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:08 PM
To: Maven Users List
Subject: Re: [m2] release plugin removes all comments from pom.xml

http://jira.codehaus.org/browse/MRELEASE-45

It is fixed in svn, please test.

-D


On 5/8/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:

 Yes, I added one, but it was a duplicate of an existing one already.
 Forgot the id though.

 Jens Zastrow wrote:
  Is tehre any technical issue why the release plugin needs to remove
  all the comments and to reformat the whole pom.xml?
 
  Thanks
  Jens Zastrow

 --
 With kind regards,
 Geoffrey De Smet


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



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




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



[m2] release plugin - multiproject/plugin-project issue

2006-05-08 Thread Jens Zastrow
see http://jira.codehaus.org/browse/MRELEASE-102

Any workaround?

Thanks
Jens Zastrow

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



configuring a list as default value for a plugin parameter

2006-05-08 Thread Tom Huybrechts

Hi all,

is it possible to define a default value for a mojo parameter that is
an array or collection ?

e.g.:

/**
* @parameter expression=option1,option2
*/
private String[] options;

Tom

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



Re: [m2] release plugin removes all comments from pom.xml

2006-05-08 Thread ian . d . stewart
I may be smoking crack (if I am, don't hesitate to let me know), but it is
my understanding that whitespace (including line breaks) within a tag
should not alter how the tag is handled.

For example:

element
  attr1=...
  attr2=...
  attr3=...

should be parsed the same as

element attr1=... attr2=... attr2=...

I know that I've encountered issues with Cocoon where it generates
TextNodes for whitespace-only content between elements.  Perhaps this is an
issue with Xalan?

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078


   
  Brett Porter   
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org
  il.com  cc: 
   Subject:  Re: [m2] release 
plugin removes all comments from pom.xml
  05/08/2006 10:24 
  AM   
  Please respond to
  Maven Users 
  List
   




I thought I was working around this as well, but you should find that
if you remove the line breaks in the project element in your
original, that doesn't happen.

- Brett

On 5/9/06, Jens Zastrow [EMAIL PROTECTED] wrote:
 Yes it - almost - works.

 Our pom´s should include some kind of documentation in the header.
 Unf. this comments get removed from the pom during the release.
 I´m not sure but maybe this is jdom related - a well formed xml
document should only have 1 root node but our ones have 2 (project +
comment).


 [original pom.xml]
 ?xml version=1.0 encoding=ISO-8859-1?
 !--
==

|
|   This pom.xml:
http://maven.apache.org/maven-model/maven.html
|
|   Getting
Started : http://maven.apache.org/guides/getting-started/index.html
|
Guides  : http://maven.apache.org/guides/index.html
|


 --
 project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 ...

 [transformed pom.xml]
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd

 modelVersion4.0.0/modelVersion
 ...

 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Monday, May 08, 2006 4:08 PM
 To: Maven Users List
 Subject: Re: [m2] release plugin removes all comments from pom.xml

 http://jira.codehaus.org/browse/MRELEASE-45

 It is fixed in svn, please test.

 -D


 On 5/8/06, Geoffrey De Smet [EMAIL PROTECTED] wrote:
 
  Yes, I added one, but it was a duplicate of an existing one already.
  Forgot the id though.
 
  Jens Zastrow wrote:
   Is tehre any technical issue why the release plugin needs to remove
   all the comments and to reformat the whole pom.xml?
  
   Thanks
   Jens Zastrow
 
  --
  With kind regards,
  Geoffrey De Smet
 
 
  -
  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: Refering to parent directory from child pom xml

2006-05-08 Thread Lee Meador

Sorry, you need ../../ (do the dot-dot twice)

Thanks.

On 5/8/06, RobJac [EMAIL PROTECTED] wrote:



tried using ../target/site in my cild pom xml for reporting
outputDirectory
but does not seem to help. It was trying look for
\parentProject\childProject\..\target\site
--
View this message in context:
http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4279157
Sent from the Maven - Users forum at Nabble.com.


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





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


[m2] internal repository with jars but no pom

2006-05-08 Thread barth

Hello all,

I am trying to migrate a project from maven 1 to maven 2. We have an
internal repository containing a lot of libraries we use. The problem I am
experiencing is that we just have jar files in this repository but not any
pom file... With maven 1 it was working fine but with maven 2 I get this
kind of error : 

***
Downloading:
file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms/batik-dom-0.10.1.pom
[WARNING] Unable to get resource from repository repo2
(file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven)
Downloading:
http://repo1.maven.org/maven2/cewolf/batik-dom/0.10.1/batik-dom-0.10.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
***

G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms doesn't exist but
G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/jars does.
My question is simple : what should I do ? create manually each pom ? or can
I specify somewhere that I want the same behaviour than for maven 1 ? 

Thanks a lot in advance,

Barth

PS: Here is the definition of my repository 
 repository
idrepo2/id
namerepo2/name
   
urlfile:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/url
layoutlegacy/layout
snapshotsenabledtrue/enabled/snapshots
/repository
--
View this message in context: 
http://www.nabble.com/-m2-internal-repository-with-jars-but-no-pom-t1577488.html#a4282535
Sent from the Maven - Users forum at Nabble.com.


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



Re: Including files from another module in the webapp module

2006-05-08 Thread ian . d . stewart
If applicationContext-domain.xml is a resource within a sub-project with
packaging=jar, then it should be accessible using the classpath: pseudo
protocol from any projects that depend on the sub-project.

For example:

context-param
  param-namecontextConfigLocation/param-name
  param-valueclasspath:applicationContext-domain.xml/param-value
/context-param

A better practive, IMO, is to place the application context XML document in
the project-specific package.  Then you could have something like:

context-param
  param-namecontextConfigLocation/param-name
  param-value
classpath:com/example/myproj/applicationContext.xml
classpath:com/example/myproj/domain/applicationContext.xml
classpath:com/example/myproj/web/applicationContext.xml
  /param-value
/context-param

Where com/example/myproj/applicationContext.xml contains bean definitions
common to both domain and web, any beans defined in
com/example/myproj/domain/applicationContext.xml will override beans with
the same id as those defined in com/example/myproj/applicationContext.xml,
same thing for com/example/myproj/web/applicationContext.xml vis-a-vis
com/example/myproj/domain/applicationContext.xml

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078




  Alexandre

  Poitras  To:   Maven Users List 
users@maven.apache.org   
  alexandre.poitrascc: 

  @gmail.com   Subject:  Re: Including files 
from another module in the webapp module  


  05/06/2006 10:36  

  PM

  Please respond to 

  Maven Users List







If you also use those files in the domain project, they shouldn't be in the
WEB-INF directory because you would have to duplicate them. It wouldn't be
a
very good design. So your issue isn't related to Maven but to your
application structure. You should fix this by specifying the following
entries in your web.xml file :

context-param
param-namecontextConfigLocation/param-name

 param-value
   applicationContext-web.xml
   applicationContext-domain.xml
 /param-value
   /context-param


Simple as that.

On 5/6/06, Ilya Sterin [EMAIL PROTECTED] wrote:

 All, I have a multi-module project, one called domain (where most
 business logic is located) and the other is webapp.

 I'm using Spring.

 In my domain module, I have various Spring context configuration files
 in the resources directory.  In order to make things work with Spring
 MVC in the webapp module, my web.xml file has the following...

 context-param
 param-namecontextConfigLocation/param-name
 param-value
   /WEB-INF/applicationContext-web.xml
   /WEB-INF/applicationContext-domain.xml
 /param-value
   /context-param

 Specifying the various collections of Spring configuration files.

 The question is, when I build my webapp module, what is the best way
 to grab the applicationContext-domain.xml file from the domain modules
 resources dir and place it in WEB-INF?

 Also, I might still have a Ant way of doing things:-), so if you have
 any recommendations of the best way of doing this, please let me know.
 I can't simply have this file in the WEB-INF dir to begin with, since
 the domain module needs to be able to run independent unit tests and
 will eventually provide other services that are not served to a web
 client.

 Any ideas would be appreciated.

 Thanks.

 Ilya Sterin

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






[m2] download sources to local repo

2006-05-08 Thread delasoul

Hello,

for certain projects our build generates an additional ***-sources.jar file
which is deployed to our remote repository.
If I have a dependency on one of these projects I want this ***-source.jar
to be downloaded to my local repo together with the artifact jar.

Is there a possibility to do this without using the eclipse plugin?

thanx in advance for any help,

michael

--
View this message in context: 
http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4283001
Sent from the Maven - Users forum at Nabble.com.


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



Re: Refering to parent directory from child pom xml

2006-05-08 Thread RobJac

Thanks Lee. It works now.. But I feel this is not a proper fix. I think we
need some way of defining the parent directory from the child pom xml. I
will try to do some further investigation on this.
--
View this message in context: 
http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4283251
Sent from the Maven - Users forum at Nabble.com.


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



Re: [1.1] Hung build - threaddump

2006-05-08 Thread Jon Strayer

On 5/8/06, Kenney Westerhof [EMAIL PROTECTED] wrote:


On Sun, 7 May 2006, Jon Strayer wrote:

Hi,

I assume you've gone through your share of JDK's in all this time?
If not, can you try with a newer JDK?




Not yet.  I a couple of months I can.

BTW, a later hang up was in a jUnit test (at least a jUnit test error was
reported when I killed the java process).

I tried to get a thread dump from that process, but I can't find it.  Where
does standard out go when running jUnit tests (in another jvm)?


-- Kenney


 I occasionally get hung maven builds with cruise control.  About one a
day
 (that's about one every 40 builds or so).  I finally got a thread
dump.  I
 can't make sense of it.  Can anyone help?  FYI, this is Maven 1.1 Beta
2,
 but I've had the problem with as long as I can remember (that would take
it
 back to 0.9 or so).

 Full thread dump  [Sun May 07 13:49:08 CDT 2006] (Java HotSpot(TM)
Server VM
 1.4.2 1.4.2.06-041015-12:22-PA_RISC1.1 PA1.1 mix
 ed mode):

 Thread-13 daemon prio=10 tid=40057958 nid=34 lwp_id=22588 runnable
 [0x4cdf5000..0x4cdf54c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:177)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:243)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(
StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 Thread-12 daemon prio=10 tid=40057ac0 nid=33 lwp_id=22587 runnable
 [0x4cff9000..0x4cff94c0]
 at java.io.FileInputStream.readBytes(Native Method)
 at java.io.FileInputStream.read(FileInputStream.java:194)
 at java.lang.UNIXProcess$DeferredCloseInputStream.read(
 UNIXProcess.java:252)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java
:183)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java
:222)
 at java.io.BufferedInputStream.read(BufferedInputStream.java
:277)
 - locked 6b0427b0 (a java.io.BufferedInputStream)
 at java.io.FilterInputStream.read(FilterInputStream.java:90)
 at org.apache.tools.ant.taskdefs.StreamPumper.run(
StreamPumper.java
 :90)
 at java.lang.Thread.run(Thread.java:534)

 process reaper daemon prio=9 tid=40057c28 nid=32 lwp_id=22586 runnable
 [0x4ce76000..0x4ce764c0]
 at java.lang.UNIXProcess.waitForProcessExit(Native Method)
 at java.lang.UNIXProcess.access$1000(UNIXProcess.java:20)
 at java.lang.UNIXProcess$4.run(UNIXProcess.java:117)

 MultiThreadedHttpConnectionManager cleanup daemon prio=10 tid=400577f0
 nid=12 lwp_id=21662 in Object.wait() [0x4d07a000..0x
 4d07a4c0]
 at java.lang.Object.wait(Native Method)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5595b9c0 (a java.lang.ref.ReferenceQueue$Lock)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$ReferenceQueueThread.run
 (MultiThreadedHttpConnect
 ionManager.java:927)

 Signal Dispatcher daemon prio=10 tid=40057688 nid=7 lwp_id=21573
waiting
 on condition [0x..0x]

 Finalizer daemon prio=10 tid=40057520 nid=5 lwp_id=21571 in
Object.wait()
 [0x6ae3c000..0x6ae3c4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
 - locked 5587c050 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java
:188)

 Reference Handler daemon prio=10 tid=400573b8 nid=4 lwp_id=21570 in
 Object.wait() [0x6aebd000..0x6aebd4c0]
 at java.lang.Object.wait(Native Method)
 - waiting on 5587c0d0 (a java.lang.ref.Reference$Lock)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java
:120)
 - locked 5587c0d0 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=40057250 nid=1 lwp_id=21567 in Object.wait()
 [0x77ff3000..0x77ff14b0]
 at java.lang.Object.wait(Native Method)
 - waiting on 6b042480 (a java.lang.UNIXProcess)
 at java.lang.Object.wait(Object.java:429)
 at java.lang.UNIXProcess.waitFor(UNIXProcess.java:146)
 - locked 6b042480 (a java.lang.UNIXProcess)
 at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java
:539)
 at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java
:471)
 at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java
:1952)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java
:195)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java

Re: JBoss AOP needs .aop suffix for jars

2006-05-08 Thread Roland Kofler
Thanks, but maven2 still adds *.jar to the name so that I get 
jarname.aop.jar
also its installed in the shnapshot repo, as the standard project name 
- version .jar.


No way to do this?
Roland

Alexandre Poitras schrieb:

Put this in your pom
build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
  jarNamejarname.aop/jarName
   /configuration
 /plugin
   /plugins
 /build

You can find all the Jar Mojo configuration elements there :
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html

On 5/5/06, Roland Kofler [EMAIL PROTECTED] wrote:

JBoss AOP needs .aop suffix for jars.
how can i do that?

thanks, Roland

-
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: Where to find reference documentation for parameter Types?

2006-05-08 Thread Dave Comeau

Thanks for the response Edwin :)

So I'm assuming that there is no universal way for looking up the property
set for any given Object type parameter?

If I wanted to know what parameters I could give to MavenProjectHelper for
example, I'd have to try to find the Javadoc and look at it's JavaBean style
properties?

http://maven.apache.org/ref/current/maven-project/apidocs/org/apache/maven/p
roject/MavenProject.html

Of course, I assume this would be a bit of trial and error as well, since
not all setXXX() methods would be guaranteed to be mapped to a config
parameter?

Dave


-Original Message-
From: Edwin Punzalan [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 10:20 PM
To: Maven Users List
Subject: Re: Where to find reference documentation for parameter Types?


Dave,

I'll tell you what I know... to others, if i'm wrong, please correct 
me.  ^_^

Native parameters are common-sense, so I won't describe them anymore.

For collection types, like List, removing the s at the parameter name 
would be filling the collection. For example:

files
  file/
  file/
/files

Also, in your example, the Artifact object is the parameter type.  
When a parameter is of type Object (or subclasses it), then it can 
accept sub parameters equivalent to its field names (i'm not sure though 
if the fields have to have a setter method).  And the same is true if 
the sub-parameter is still an object. Like so:

house
  door
colorwhite/color
  /door
  window
colorwhite/color
  /window
/house


Dave Comeau wrote:
 Just a question how about how to effectively read plugin documentation.

 On this page:


http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

 The Type column indicates three different types: Artifact, MavenProject
 and MavenProjectHelper.

 How do I find out what the format of those types are?

 For example, if I look at the How to use link for the same plugin:

 http://mojo.codehaus.org/build-helper-maven-plugin/howto.html

 Go to the bottom and see that the attach-artifact example shows:

 configuration
 artifacts
   artifact
 filesome file/file
 typeextension of your file /type
 classifieroptionalclassifier
   /artifact
   ...
 /artifacts
 /configuration


 I assume somewhere I can find a reference that would tell me that Artifact
 types have the File/Type/Classifier sub-parameters?

 Where would this be?

 Dave


   

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



Re: Generating site - outputEncoding=utf-8 doesn't work with menu and links names

2006-05-08 Thread Borut Bolčina
Look here http://jira.codehaus.org/browse/MSITE-19 and vote. UTF8 
characters don't work. I am quite frustrated 'couse I can't write docs 
for current projects at work.


-borut


Alexandre Poitras pravi:

I have had the same problem. I think the problem is Velocity encoding
isn't set correctly but I could be wrong. I think there have been
discussions about this bug in the past so you should search in this
list archives.

On 4/25/06, MiSt [EMAIL PROTECTED] wrote:
  

My pom.xml:
(...)
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-site-plugin/artifactId
  configuration
  outputEncodingUTF-8/outputEncoding
/configuration
/plugin
(...)

Site's charset is ok:
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
and content from xdoc is proper UTF-8, but menu name,  menu items names
and links names  have broken encoding.
I have ?xml version=1.0 encoding=UTF-8? in site.xml

I am doing something wrong or it is a bug ?


maven-site-plugin 2.0-beta-4
maven 2.0.4



--
Michael Steiner


--
Nie przychodz! Nie przyjezdzaj! Nie dzwon! Zamow ogloszenie drobne do Gazety 
Wyborczej przez internet wchodzac na http://www.aaaby.pl/wyborcza i wygraj nawet 
10.000 zl!

-
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: [mojo] axistools java2wsdl example?

2006-05-08 Thread Piéroni Raphaël

Hello,
check the axis-archetype
at mojo.codehaus.org

Raphaël

2006/5/8, David J. M. Karlsen [EMAIL PROTECTED]:


Anybody have an example of plugin config for the java2wsdl goal?

--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



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




Downloading poms

2006-05-08 Thread Tim McCune
Newbie alert: I've only been seriously trying out Maven 2 for a couple
days now.  Here's my biggest headache so far.  Every time I build, I
have to sit and wait while Maven tries to download poms from the central
repository for all of the jars that have no corresponding poms.  I get a
bunch of messages like:

Downloading:
http://repo1.maven.org/maven2/jboss/jboss-ejb3x/rc5/jboss-ejb3x-rc5.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Sure, in a perfect world, every jar would have a corresponding pom, but
come on.  There are always going to be jars without poms, and this
shouldn't stop me from using them.  It seems like Maven should make a
single attempt to grab a pom when it downloads the jar, realize that
there isn't one, make a note of it in the local repository, and use that
information in the future so it doesn't keep making futile attempts to
download the pom.

Am I understanding the problem correctly?  Any suggestions for a fix?

Thanks.

--Tim


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



Re: Downloading poms

2006-05-08 Thread Wayne Fay

When you installed those dependencies in your local repo, did you use
-DgeneratePom=true   ?

If not, reinstall the 3rd party artifacts and use that parameter so
poms are created, to avoid this downloading poms from central thing
in the future.

Wayne

On 5/8/06, Tim McCune [EMAIL PROTECTED] wrote:

Newbie alert: I've only been seriously trying out Maven 2 for a couple
days now.  Here's my biggest headache so far.  Every time I build, I
have to sit and wait while Maven tries to download poms from the central
repository for all of the jars that have no corresponding poms.  I get a
bunch of messages like:

Downloading:
http://repo1.maven.org/maven2/jboss/jboss-ejb3x/rc5/jboss-ejb3x-rc5.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Sure, in a perfect world, every jar would have a corresponding pom, but
come on.  There are always going to be jars without poms, and this
shouldn't stop me from using them.  It seems like Maven should make a
single attempt to grab a pom when it downloads the jar, realize that
there isn't one, make a note of it in the local repository, and use that
information in the future so it doesn't keep making futile attempts to
download the pom.

Am I understanding the problem correctly?  Any suggestions for a fix?

Thanks.

--Tim


-
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: Downloading poms

2006-05-08 Thread Tim McCune
On Mon, 2006-05-08 at 13:36 -0500, Wayne Fay wrote:
 When you installed those dependencies in your local repo, did you use
 -DgeneratePom=true   ?
 
 If not, reinstall the 3rd party artifacts and use that parameter so
 poms are created, to avoid this downloading poms from central thing
 in the future.

Thanks for the reply Wayne.  Not quite sure what you're referring to.
The jars that get installed in my local repo are put there 1 of 2 ways.
Either:
1) Checked into a subversion module, which copies them to a web server
on commit.
2) Placed on the web server by Continuum after building the project with
Maven 1.

For option 1, it sounds like you're suggesting that there's a way to get
Maven to generate a pom for the jar file?  If so, could you elaborate?
For option 2, Maven 2 isn't involved at all, and it's an automated
process, so I don't think that it's feasible at all to get a pom
generated for these jars.


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



Can't parse date/time (while Generating reports with standard)

2006-05-08 Thread Vijay Shanker
Could any body suggest me the solution for the below given problem. I have 
project with child projects. When I build child project through Continuum, 
there is no problem but when try to build child projects through root project 
then gets exception. 
 
Thanking you in advance.
Vijay
 
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [site:site]
[INFO] Generate changelog report.
[INFO] Generating changed sets xml to: /opt/continuum-1.0.3/apps/continuum/worki
ng-directory/1/GALC_Core/target/changelog.xml
[INFO] Executing: cvs -z3 -f -d /usr/local/CVSROOT -q log -d '2006-04-08T14:24:
51-05002006-05-09T14:24:51-0500'
[INFO] Working directory: /opt/continuum-1.0.3/apps/continuum/working-directory/
1/GALC_Core/com
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR] cvs [log aborted]: Can't parse date/time: 2006-04-08T14:24:51-0500


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



Re: Odd Compilation Issue

2006-05-08 Thread Sean McNamara
Thanks to Wendy, Kris, and Simon for their input on this.  For anyone 
interested, here's a brief synopsis of what was happening:

It looks like under Maven v1.1, code was being compiled by default as v1.2 
using the 1.4 JVM.

After switching to Maven2, the code was being compiled as v1.1.

The JSP compiler in the application server looks like it was generating v1.2 
code, and was having trouble linking in the 1.1 resources prepared by M2.

Directing M2 to create v1.2 classes solved the problem.

As an interesting side-note, having M2 compile v1.4 classes caused the same 
issue with the JSP compiler.

Being the the error was package could not be found, it took a bit of digging 
to find the source of the problem, but I certainly appreciate the help from you 
guys.

Thanks!

-Sean

- Original Message 
From: Wendy Smoak [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Friday, May 5, 2006 4:37:14 PM
Subject: Re: Odd Compilation Issue

On 5/5/06, Sean McNamara [EMAIL PROTECTED] wrote:

 After chasing my tail for the last week, I took a look at the classfiles that 
 were giving us a problem in a hex editor, and see that the actual classfiles 
 differ in terms of the major and minor numbers in the classfile.

 I only have a single JVM installed on this machine, so I'm pretty confident 
 the same one is being used in both compiles.

 Does anyone have the slightest idea how this might be possible?

Different target versions?  Were you setting 'maven.compile.source'
and 'maven.compile.target' with Maven 1.1, and/or are you configuring
the compiler plugin for Maven 2?  (Or if you're not configuring either
of them, maybe the default has changed?)

 * http://maven.apache.org/maven-1.x/plugins/java/faq.html
 * http://maven.apache.org/plugins/maven-compiler-plugin/howto.html

--
Wendy

-
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: JBoss AOP needs .aop suffix for jars

2006-05-08 Thread Alexandre Poitras

Well I didn't think about it at first but you need to define a new packaging
type to make it work. You provide a new packaging type by developping a new
plugin. Basically, the plugin would just define some new packaging type
in some xml files. No need for any Java files since you don't developp any
Mojo. It shouldn't be a very hard task.

Take a look at :
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
There is a Specifying a New Packaging section. You can almost copy  paste
the entire xml file found in the standard jar plugin to create your. By the
way, maybe it already exists in a JBoss plugin, I have no idea.

Hope it helps!

On 5/8/06, Roland Kofler [EMAIL PROTECTED] wrote:


Thanks, but maven2 still adds *.jar to the name so that I get
jarname.aop.jar
also its installed in the shnapshot repo, as the standard project name
- version .jar.

No way to do this?
Roland

Alexandre Poitras schrieb:
 Put this in your pom
 build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
   jarNamejarname.aop/jarName
/configuration
  /plugin
/plugins
  /build

 You can find all the Jar Mojo configuration elements there :
 http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html

 On 5/5/06, Roland Kofler [EMAIL PROTECTED] wrote:
 JBoss AOP needs .aop suffix for jars.
 how can i do that?

 thanks, Roland

 -
 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: Downloading poms

2006-05-08 Thread Alexandre Poitras

From what I understand, those jar are generated by another build tool then

Maven 2 on a constant basic (snapshots) ? If it's the case, you should write
a conversion script that call Maven 2 to install the file or generate the
necessary files. You can do this using install:install-file and
deploy:deploy-file :
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

If I remember correctly, Maven 2 was able to work without pom in the past
but in the end there were so many jars coming without pom that they decided
to remove the option. But I could be wrong.


On 5/8/06, Tim McCune [EMAIL PROTECTED] wrote:


On Mon, 2006-05-08 at 13:36 -0500, Wayne Fay wrote:
 When you installed those dependencies in your local repo, did you use
 -DgeneratePom=true   ?

 If not, reinstall the 3rd party artifacts and use that parameter so
 poms are created, to avoid this downloading poms from central thing
 in the future.

Thanks for the reply Wayne.  Not quite sure what you're referring to.
The jars that get installed in my local repo are put there 1 of 2 ways.
Either:
1) Checked into a subversion module, which copies them to a web server
on commit.
2) Placed on the web server by Continuum after building the project with
Maven 1.

For option 1, it sounds like you're suggesting that there's a way to get
Maven to generate a pom for the jar file?  If so, could you elaborate?
For option 2, Maven 2 isn't involved at all, and it's an automated
process, so I don't think that it's feasible at all to get a pom
generated for these jars.


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




Re: [m2] Disable generation of xml test reports

2006-05-08 Thread Alexandre Poitras

I haven't tested it but useFilefalse/useFile should do the trick.
See :
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html


On 5/8/06, Vinod Panicker [EMAIL PROTECTED] wrote:


Hi,

Is there a way to disable generation of xml test reports?  I'm running
a huge number of tests and don't need the xml output.  Just need plain
text reports.  The xml file generation adds up to a huge amount of
time.

Adding reportFormatplain/reportFormat doesn't disable xml generation
:(

Regards,
Vinod.

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




Re: Archetype Directories

2006-05-08 Thread Alexandre Poitras

I think you'll have to install the patch Aaron submitted until a new release
of the archetype plugin. Voting for the issue should help ;)

On 5/8/06, bryan hansen [EMAIL PROTECTED] wrote:


So is it possible to have an archetype create multiple
java source directories (mainly packages)? I want to
have an archetype that creates an
org.mycompany.App.java class and the archetype also
create an org.mycompany.service.AppService.java.

I know that you can have multiple directories created
with the resources like the webapp directories, but
the way the packageName gets applied it doesn't seem
to work for .java files.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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




Re: [m2] download sources to local repo

2006-05-08 Thread Alexandre Poitras

Add this to your dependency :
typejava-source/type

*I don't know if you need to add both a normal jar dependency and a
java-source dependency. My guess is that a java-source dependency
automatically include the binary jar in the build but I could be wrong.


On 5/8/06, delasoul [EMAIL PROTECTED] wrote:



Hello,

for certain projects our build generates an additional ***-sources.jarfile
which is deployed to our remote repository.
If I have a dependency on one of these projects I want this ***-source.jar
to be downloaded to my local repo together with the artifact jar.

Is there a possibility to do this without using the eclipse plugin?

thanx in advance for any help,

michael

--
View this message in context:
http://www.nabble.com/-m2-download-sources-to-local-repo-t1577673.html#a4283001
Sent from the Maven - Users forum at Nabble.com.


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




Re: [ANN] Maven Test Plugin 1.8 for Maven 1.x released

2006-05-08 Thread Jon Strayer

I just installed this plugin an now my builds fail with this exception:

Any ideas?

java.lang.NullPointerException
   at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput
(XMLJUnitResultFormatter.java:253)
   at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.setSystemOutput
(XMLJUnitResultFormatter.java:92)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.sendOutAndErr(
JUnitTestRunner.java:435)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(
JUnitTestRunner.java:319)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(
JUnitTask.java:1072)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:682)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(
JUnitTask.java:1434)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:632)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
   at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:78)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:109)
   at org.apache.maven.werkz.Goal.fire(Goal.java:656)
   at org.apache.maven.werkz.Goal.attain(Goal.java:592)
   at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
   at org.apache.maven.werkz.Goal.attain(Goal.java:590)
   at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:693)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
   at org.apache.maven.cli.App.doMain(App.java:511)
   at org.apache.maven.cli.App.main(App.java:1258)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)


On 5/8/06, Lukas Theussl [EMAIL PROTECTED] wrote:


We are pleased to announce the Maven Test Plugin 1.8 release!

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

Run JUnit tests.


===

Changes in this version include:

   New Features:

o Set junit's showoutput attribute if Maven is executed in debug (-X)
mode.
   Fixes MPTEST-43.
o Allow to add additional elements to the test classpath, new property
   maven.test.classpath. Fixes MPTEST-47. Thanks to Henning
Schmiedehausen.
o Display a warning if some tests do not pass (and
   maven.test.failure.ignore=true). Fixes MPTEST-36.
o Add timeouts to the test plugin, new property maven.junit.timeout. Fixes
   MPTEST-10.
o Add ability to fail the build on test errors, new property
   maven.test.error.ignore. Fixes MPTEST-58. Thanks to Mauro Botelho.
o Add maven.test.excludeXmlApis property to avoid duplicated Xerces. Fixes
   MPTEST-55. Thanks to Eric Hartmann.

   Fixed bugs:

o test:test should honour the maven.test.compile.src.set variable. Fixes
   MPTEST-49.
o Do not execute test:test-resources and test:compile unless tests will
be run.
   Fixes MPTEST-46.
o test:single should ignore maven.test.skip=true. Fixes MPTEST-59.
o Test failure doesn't halt execution of test suite. Fixes MPTEST-39.

   Changes:

o Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by
xml-apis
   1.3.03. Add the xml-resolver dependency for xerces. Fixes MAVEN-1753.
o Upgrade to Junit 3.8.2.
o Update dependencies to match ones in maven 1.1 core and to unify them
   between plugins. Fixes MAVEN-1712.


===


To automatically install the plugin, type the following on a single line:

maven plugin:download

-Dmaven.repo.remote=http://www.ibiblio.org/maven,
http://cvs.apache.org/repository/
   -DgroupId=maven
   -DartifactId=maven-test-plugin
   -Dversion=1.8

For a manual installation, you can download the plugin here:

http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-test-plugin-1.8.jar


Have fun!
-The Maven Test Plugin development team

-
To unsubscribe, 

Re: [m2] internal repository with jars but no pom

2006-05-08 Thread Alexandre Poitras

This problem seem to come quite often lately. I know Apache use a conversion
tool or script to keep in sync their Maven 1  2 repositories. Would be nice
if a developer could give us an idea where we can find it.

On 5/8/06, barth [EMAIL PROTECTED] wrote:



Hello all,

I am trying to migrate a project from maven 1 to maven 2. We have an
internal repository containing a lot of libraries we use. The problem I am
experiencing is that we just have jar files in this repository but not any
pom file... With maven 1 it was working fine but with maven 2 I get this
kind of error :

***
Downloading:
file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms/batik-
dom-0.10.1.pom
[WARNING] Unable to get resource from repository repo2
(file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven)
Downloading:
http://repo1.maven.org/maven2/cewolf/batik-dom/0.10.1/batik-dom-0.10.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
***

G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms doesn't exist
but
G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/jars does.
My question is simple : what should I do ? create manually each pom ? or
can
I specify somewhere that I want the same behaviour than for maven 1 ?

Thanks a lot in advance,

Barth

PS: Here is the definition of my repository
repository
   idrepo2/id
   namerepo2/name

urlfile:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/url
   layoutlegacy/layout
   snapshotsenabledtrue/enabled/snapshots
   /repository
--
View this message in context:
http://www.nabble.com/-m2-internal-repository-with-jars-but-no-pom-t1577488.html#a4282535
Sent from the Maven - Users forum at Nabble.com.


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




Re: [m2] internal repository with jars but no pom

2006-05-08 Thread Alexandre Poitras

I think this is it :
https://svn.apache.org/repos/asf/maven/sandbox/repoclean/

But I have no idea how it works.


On 5/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote:


This problem seem to come quite often lately. I know Apache use a
conversion tool or script to keep in sync their Maven 1  2 repositories.
Would be nice if a developer could give us an idea where we can find it.


On 5/8/06, barth [EMAIL PROTECTED] wrote:


 Hello all,

 I am trying to migrate a project from maven 1 to maven 2. We have an
 internal repository containing a lot of libraries we use. The problem I
 am
 experiencing is that we just have jar files in this repository but not
 any
 pom file... With maven 1 it was working fine but with maven 2 I get this
 kind of error :

 ***
 Downloading:
 file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms/batik-
 dom-0.10.1.pom
 [WARNING] Unable to get resource from repository repo2
 (file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven)
 Downloading:

 http://repo1.maven.org/maven2/cewolf/batik-dom/0.10.1/batik-dom-0.10.1.pom
 [WARNING] Unable to get resource from repository central
 (http://repo1.maven.org/maven2)
 ***

 G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms doesn't exist
 but
 G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/jars does.
 My question is simple : what should I do ? create manually each pom ? or
 can
 I specify somewhere that I want the same behaviour than for maven 1 ?

 Thanks a lot in advance,

 Barth

 PS: Here is the definition of my repository
 repository
idrepo2/id
namerepo2/name

 urlfile:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/url
layoutlegacy/layout
snapshotsenabledtrue/enabled/snapshots
/repository
 --
 View this message in context: 
http://www.nabble.com/-m2-internal-repository-with-jars-but-no-pom-t1577488.html#a4282535

 Sent from the Maven - Users forum at Nabble.com http://nabble.com/.


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





Re: [ANN] Maven Test Plugin 1.8 for Maven 1.x released

2006-05-08 Thread Lukas Theussl

Googling for your error message I found this:

http://issues.apache.org/bugzilla/show_bug.cgi?id=36733

Can you provide more specific information about your environment or, 
better, open a jira ticket with a reproducible test case attached?


Cheers,
-Lukas


Jon Strayer wrote:

I just installed this plugin an now my builds fail with this exception:

Any ideas?

java.lang.NullPointerException
   at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput 


(XMLJUnitResultFormatter.java:253)
   at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.setSystemOutput 


(XMLJUnitResultFormatter.java:92)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.sendOutAndErr(
JUnitTestRunner.java:435)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(
JUnitTestRunner.java:319)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(
JUnitTask.java:1072)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:682)
   at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(
JUnitTask.java:1434)
   at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:632)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
   at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
   at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
   at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
   at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:78)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction 


(MavenGoalTag.java:109)
   at org.apache.maven.werkz.Goal.fire(Goal.java:656)
   at org.apache.maven.werkz.Goal.attain(Goal.java:592)
   at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
   at org.apache.maven.werkz.Goal.attain(Goal.java:590)
   at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:693)
   at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
   at org.apache.maven.cli.App.doMain(App.java:511)
   at org.apache.maven.cli.App.main(App.java:1258)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)


On 5/8/06, Lukas Theussl [EMAIL PROTECTED] wrote:



We are pleased to announce the Maven Test Plugin 1.8 release!

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

Run JUnit tests.


=== 



Changes in this version include:

   New Features:

o Set junit's showoutput attribute if Maven is executed in debug (-X)
mode.
   Fixes MPTEST-43.
o Allow to add additional elements to the test classpath, new property
   maven.test.classpath. Fixes MPTEST-47. Thanks to Henning
Schmiedehausen.
o Display a warning if some tests do not pass (and
   maven.test.failure.ignore=true). Fixes MPTEST-36.
o Add timeouts to the test plugin, new property maven.junit.timeout. 
Fixes

   MPTEST-10.
o Add ability to fail the build on test errors, new property
   maven.test.error.ignore. Fixes MPTEST-58. Thanks to Mauro Botelho.
o Add maven.test.excludeXmlApis property to avoid duplicated Xerces. 
Fixes

   MPTEST-55. Thanks to Eric Hartmann.

   Fixed bugs:

o test:test should honour the maven.test.compile.src.set variable. Fixes
   MPTEST-49.
o Do not execute test:test-resources and test:compile unless tests will
be run.
   Fixes MPTEST-46.
o test:single should ignore maven.test.skip=true. Fixes MPTEST-59.
o Test failure doesn't halt execution of test suite. Fixes MPTEST-39.

   Changes:

o Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by
xml-apis
   1.3.03. Add the xml-resolver dependency for xerces. Fixes MAVEN-1753.
o Upgrade to Junit 3.8.2.
o Update dependencies to match ones in maven 1.1 core and to unify them
   between plugins. Fixes MAVEN-1712.


=== 




To automatically install the plugin, type the following on a single line:

maven plugin:download

-Dmaven.repo.remote=http://www.ibiblio.org/maven,
http://cvs.apache.org/repository/
   -DgroupId=maven
   -DartifactId=maven-test-plugin
   

Re: [ANN] Maven Test Plugin 1.8 for Maven 1.x released

2006-05-08 Thread Arnaud HERITIER

Hi Jon, what is your maven version ?? and your jdk ?
I'm afraid we have a problem of compatibililty with xml parsers API.
This is a fake NullPointerException due to a bug in ant :
http://issues.apache.org/bugzilla/show_bug.cgi?id=36733

Arnaud.

On 5/8/06, Jon Strayer [EMAIL PROTECTED] wrote:


I just installed this plugin an now my builds fail with this exception:

Any ideas?

java.lang.NullPointerException
at

org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput
(XMLJUnitResultFormatter.java:253)
at

org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.setSystemOutput
(XMLJUnitResultFormatter.java:92)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.sendOutAndErr
(
JUnitTestRunner.java:435)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(
JUnitTestRunner.java:319)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(
JUnitTask.java:1072)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:682)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(
JUnitTask.java:1434)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
JUnitTask.java:632)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java
:186)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:78)
at

org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:109)
at org.apache.maven.werkz.Goal.fire(Goal.java:656)
at org.apache.maven.werkz.Goal.attain(Goal.java:592)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:693)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java
:263)
at org.apache.maven.cli.App.doMain(App.java:511)
at org.apache.maven.cli.App.main(App.java:1258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)


On 5/8/06, Lukas Theussl [EMAIL PROTECTED] wrote:

 We are pleased to announce the Maven Test Plugin 1.8 release!

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

 Run JUnit tests.



===

 Changes in this version include:

New Features:

 o Set junit's showoutput attribute if Maven is executed in debug (-X)
 mode.
Fixes MPTEST-43.
 o Allow to add additional elements to the test classpath, new property
maven.test.classpath. Fixes MPTEST-47. Thanks to Henning
 Schmiedehausen.
 o Display a warning if some tests do not pass (and
maven.test.failure.ignore=true). Fixes MPTEST-36.
 o Add timeouts to the test plugin, new property maven.junit.timeout.
Fixes
MPTEST-10.
 o Add ability to fail the build on test errors, new property
maven.test.error.ignore. Fixes MPTEST-58. Thanks to Mauro Botelho.
 o Add maven.test.excludeXmlApis property to avoid duplicated Xerces.
Fixes
MPTEST-55. Thanks to Eric Hartmann.

Fixed bugs:

 o test:test should honour the maven.test.compile.src.set variable. Fixes
MPTEST-49.
 o Do not execute test:test-resources and test:compile unless tests will
 be run.
Fixes MPTEST-46.
 o test:single should ignore maven.test.skip=true. Fixes MPTEST-59.
 o Test failure doesn't halt execution of test suite. Fixes MPTEST-39.

Changes:

 o Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by
 xml-apis
1.3.03. Add the xml-resolver dependency for xerces. Fixes MAVEN-1753.
 o Upgrade to Junit 3.8.2.
 o Update dependencies to match ones in maven 1.1 core and to unify them
between plugins. Fixes MAVEN-1712.



===


 To automatically install the plugin, type the following on a single
line:

 maven plugin:download

 -Dmaven.repo.remote=http://www.ibiblio.org/maven,
 

Re: [m2] internal repository with jars but no pom

2006-05-08 Thread Alexandre Poitras

Oh wait I'm stupid :) Maven 2 is able to work with a maven 1 repository.
Just make sure layout is set to 'legacy' in your repository declaration.

On 5/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote:


 I think this is it :
https://svn.apache.org/repos/asf/maven/sandbox/repoclean/

But I have no idea how it works.


 On 5/8/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

 This problem seem to come quite often lately. I know Apache use a
 conversion tool or script to keep in sync their Maven 1  2 repositories.
 Would be nice if a developer could give us an idea where we can find it.


 On 5/8/06, barth [EMAIL PROTECTED]  wrote:
 
 
  Hello all,
 
  I am trying to migrate a project from maven 1 to maven 2. We have an
  internal repository containing a lot of libraries we use. The problem
  I am
  experiencing is that we just have jar files in this repository but not
  any
  pom file... With maven 1 it was working fine but with maven 2 I get
  this
  kind of error :
 
  ***
  Downloading:
  file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms/batik-
  dom-0.10.1.pom
  [WARNING] Unable to get resource from repository repo2
  (file:/G:/Departments/IT/Groups/AIS/Sections/PM/maven)
  Downloading:
 
  http://repo1.maven.org/maven2/cewolf/batik-dom/0.10.1/batik-dom-0.10.1.pom
  [WARNING] Unable to get resource from repository central
  ( http://repo1.maven.org/maven2)
  ***
 
  G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/poms doesn't
  exist but
  G:/Departments/IT/Groups/AIS/Sections/PM/maven/cewolf/jars does.
  My question is simple : what should I do ? create manually each pom ?
  or can
  I specify somewhere that I want the same behaviour than for maven 1 ?
 
  Thanks a lot in advance,
 
  Barth
 
  PS: Here is the definition of my repository
  repository
 idrepo2/id
 namerepo2/name
 
  urlfile:/G:/Departments/IT/Groups/AIS/Sections/PM/maven/url
 layoutlegacy/layout
 snapshotsenabledtrue/enabled/snapshots
 /repository
  --
  View this message in context: 
http://www.nabble.com/-m2-internal-repository-with-jars-but-no-pom-t1577488.html#a4282535
 
  Sent from the Maven - Users forum at Nabble.com http://nabble.com/.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




Re: overriding maven-core default implementations of components

2006-05-08 Thread Alexandre Poitras

I don't think it quite doable at the moment but there are some discussions
for 2.1 :
http://docs.codehaus.org/display/MAVEN/Substitution+of+Custom+Maven+Components


On 5/5/06, Aaron Anderson [EMAIL PROTECTED] wrote:


The maven-core artifact has a META-INF/plexus/components.xml that defines
the default implementations for all the components. One can create a plugin
that has it's own component.xml override and if a POM has this plugin
configured with extention-true then the override will occur.

I would like to take this a step further and somehow configure the default
maven installation to use a custom component.xml file with custom
implementations. For example, in the absence of a POM I would like the
archetype plugin to use my implementation of the Archetype interface instead
of the default one.

Is there a way to modify the default super POM that all POM's extend from
to use a custom plugin that defines new implementations for components? Is
modifying and creating a custom maven-core artifact the only way to change
the default implementations for components?




Fwd: Trouble with maven 2.0.4 + jaxb 2.0 EA3 + cobertura-maven-plugin 2.0-20060430.035113-7 and maven-surefire-report-plugin 2.0

2006-05-08 Thread Christian Müller

Hi all,

I testet maven 2.0.4 and i have some trouble with the
cobertura-maven-plugin. If i run mvn test all tests are success. But if i
run mvn site the second test fails (the first test success).

$ mvn site
[INFO] Scanning for projects...
[INFO]

[INFO] Building TALE-CORE Archetype
[INFO]task-segment: [site]
[INFO]


[INFO] Preparing surefire-report:report
...
[INFO] [surefire:test]
[INFO] Setting reports dir:
c:\workspaceTALE\tale\tale-core\target/surefire-reports

---
T E S T S
---
[surefire] Running de.arcor.tale.util.XMLUtilTest
[surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2,143 sec

Results :
[surefire] Tests run: 2, Failures: 0, Errors: 0

[INFO] Preparing cobertura:cobertura
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 35 classes to
c:\workspaceTALE\tale\tale-core\target\generated-classes\cobertura
Cobertura: Saved information on 33 classes.
Instrument time: 701ms

[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
c:\workspaceTALE\tale\tale-core\target/surefire-reports

---
T E S T S
---
Cobertura: Loaded information on 33 classes.
[surefire] Running de.arcor.tale.util.XMLUtilTest
[surefire] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0,801 sec
 FAILURE !!

Results :
[surefire] Tests run: 2, Failures: 0, Errors: 2

Cobertura: Saved information on 33 classes.
[ERROR] There are some test failure.
...
Cobertura: Loaded information on 33 classes.
Report time: 2894ms

[INFO] Cobertura Report generation was successful.
[INFO] Generate an index file for the English version.
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 31 seconds
[INFO] Finished at: Mon May 08 23:55:00 CEST 2006
[INFO] Final Memory: 8M/15M
[INFO]



The Exception is:
java.lang.LinkageError: loader constraints violated when linking
javax/xml/namespace/QName class
   at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.clinit(
RuntimeBuiltinLeafInfoImpl.java:779)
   at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.init(
RuntimeTypeInfoSetImpl.java:25)
   at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(
RuntimeModelBuilder.java:78)
   at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(
RuntimeModelBuilder.java:41)
   at com.sun.xml.bind.v2.model.impl.ModelBuilder.init(ModelBuilder.java
:97)
   at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.init(
RuntimeModelBuilder.java:44)
   at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(
JAXBContextImpl.java:320)
   at com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(
JAXBContextImpl.java:198)
   at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java
:76)
   at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java
:55)
   at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java
:124)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
   at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:358)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:323)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
   at de.xyz.tale.util.XMLUtil.deserialize(XMLUtil.java:43)

Any idea?
javax.xml.namespace.QName is available in rt.jar (java 1.5.0_06) and
jsr173-1.0.jar (needet for javax.xml.stream.XMLStreamReader).

Please help me.

Regards,
Christian


Re: [ANN] Maven Test Plugin 1.8 for Maven 1.x released

2006-05-08 Thread Arnaud HERITIER

Jon,

 If you are using m1.1 beta 2, can you try the snapshot of the beta 3 I
just uploaded here :
http://people.apache.org/~aheritier/maven/1.X/snapshots/20060508/
 It contains this new plugin and fixes some problems with xml parsers APIs.

 Thanks

Arnaud

On 5/8/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:


Hi Jon, what is your maven version ?? and your jdk ?
I'm afraid we have a problem of compatibililty with xml parsers API.
This is a fake NullPointerException due to a bug in ant :
http://issues.apache.org/bugzilla/show_bug.cgi?id=36733

Arnaud.


On 5/8/06, Jon Strayer [EMAIL PROTECTED]  wrote:

 I just installed this plugin an now my builds fail with this exception:

 Any ideas?

 java.lang.NullPointerException
 at

 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput
 (XMLJUnitResultFormatter.java:253)
 at

 
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.setSystemOutput
 (XMLJUnitResultFormatter.java:92)
 at

 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.sendOutAndErr
 (
 JUnitTestRunner.java:435)
 at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run (
 JUnitTestRunner.java:319)
 at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(
 JUnitTask.java:1072)
 at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
 JUnitTask.java:682)
 at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(
 JUnitTask.java:1434)
 at
 org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(
 JUnitTask.java :632)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java
 :195)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)

 at org.apache.commons.jelly.impl.ScriptBlock.run(
 ScriptBlock.java
 :95)
 at org.apache.commons.jelly.TagSupport.invokeBody(
 TagSupport.java
 :186)
 at org.apache.commons.jelly.tags.core.IfTag.doTag (IfTag.java
 :42)
 at org.apache.commons.jelly.impl.TagScript.run(TagScript.java
 :247)
 at org.apache.commons.jelly.impl.ScriptBlock.run(
 ScriptBlock.java
 :95)
 at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag (
 MavenGoalTag.java:78)
 at

 org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
 (MavenGoalTag.java:109)
 at org.apache.maven.werkz.Goal.fire(Goal.java:656)
 at org.apache.maven.werkz.Goal.attain(Goal.java:592)
 at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
 at org.apache.maven.werkz.Goal.attain(Goal.java:590)
 at org.apache.maven.plugin.PluginManager.attainGoals (
 PluginManager.java:693)
 at org.apache.maven.MavenSession.attainGoals(MavenSession.java
 :263)
 at org.apache.maven.cli.App.doMain(App.java:511)
 at org.apache.maven.cli.App.main(App.java:1258)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java :581)


 On 5/8/06, Lukas Theussl [EMAIL PROTECTED] wrote:
 
  We are pleased to announce the Maven Test Plugin 1.8 release!
 
  http://maven.apache.org/maven-1.x/plugins/test/
 
  Run JUnit tests.
 
 
 
 
===
 
  Changes in this version include:
 
 New Features:
 
  o Set junit's showoutput attribute if Maven is executed in debug (-X)
  mode.
 Fixes MPTEST-43.
  o Allow to add additional elements to the test classpath, new property

 maven.test.classpath. Fixes MPTEST-47. Thanks to Henning
  Schmiedehausen.
  o Display a warning if some tests do not pass (and
 maven.test.failure.ignore=true). Fixes MPTEST-36.
  o Add timeouts to the test plugin, new property maven.junit.timeout.
 Fixes
 MPTEST-10.
  o Add ability to fail the build on test errors, new property
 maven.test.error.ignore. Fixes MPTEST-58. Thanks to Mauro Botelho.
  o Add maven.test.excludeXmlApis property to avoid duplicated Xerces.
 Fixes
 MPTEST-55. Thanks to Eric Hartmann.
 
 Fixed bugs:
 
  o test:test should honour the maven.test.compile.src.set variable.
 Fixes
 MPTEST-49.
  o Do not execute test:test-resources and test:compile unless tests
 will
  be run.
 Fixes MPTEST-46.
  o test:single should ignore maven.test.skip=true. Fixes MPTEST-59.
  o Test failure doesn't halt execution of test suite. Fixes MPTEST-39.
 
 Changes:
 
  o Upgrade to Xerces 2.8.0. Replace the deprecated xmlParserAPIs by
  xml-apis
 1.3.03. Add the xml

[m2] bug in release plugin

2006-05-08 Thread Malcolm Wong Ho

Hi,

When I do a release:perform with the command 'mvn --batch-mode --non-recursive 
release:perform' it tries to execute the pom.xml that are defined as modules 
relative to executed pom and not in batch-mode.

Any ideas?

Thank you kindly.

Malcolm Wong Ho


DISCLAIMER:
This message may contain information which is confidential, private or 
privileged in nature. If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or copy this message or file which is 
attached to this message. If you have received this message in error, please 
notify the sender immediately by e-mail, facsimile or telephone and thereafter 
return and/or destroy the original message. 

Any views of this communication are those of the sender except where the sender 
specifically states them to be those of Faritec (Holdings)  Limited (Faritec) 
and/or  any of its subsidiaries including (but not limited to) Faritec 
Enterprise Solutions (Proprietary) Limited, Faritec Strategic IT Services 
(Proprietary) Limited, Faritec Contracting (Proprietary) Limited, Ebis and/or 
any of its subsidiaries.

Please note that the recipient must scan this e-mail and any attached files for 
viruses and the like. While we do everything possible to protect information 
from viruses, Faritec accepts no liability of whatever nature for any loss, 
liability, damage or expense resulting directly or indirectly from the access 
and/or downloading of any files which are attached to this e-mail message.


Assembly - how to

2006-05-08 Thread Pierre Monestie

Hello,
I got 2 problems with the assembly plugin and was wondering if you
guys could help me out:

1st: From an empty directory I try to assemble my application out of
the pom.xml and an application.xml file. I've previously uploaded to
my repository all the artifacts necessary to bundle my application.
The dependants artifacts come nicely in my target/app/ directory
however for my main artifact I get:
[WARNING] JAR will be empty - no content was marked for inclusion!
and that particular jar is empty.
I was under the impression I could assemble an application out of what
is in my local repository/local cache without having to recompile

2st: Assuming 1st is created correclty I would like to have a way to
postprocess my main artifact after assembly, namely I would like to
unjar it because, for my final application, I included in it config
information that need to be edited.
I know I asked this already but I really would want to do this.

I suppose in summary I'm looking for a way to assemble an application
out of artifacts already precompiled and in a somewhat flexible way.
The assembly doesn't seem to 'cut it' for me.

Thanks in advance,
Pierre

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



Re: Assembly - how to

2006-05-08 Thread Edwin Punzalan


Hi. Have you seen this page: 
http://maven.apache.org/guides/mini/guide-assemblies.html


The WARNING you saw maybe due to the assembly not having anything to put 
into the jar.  A correct assembly file would have at lease one 
dependencySet or one fileSet



Pierre Monestie wrote:

Hello,
I got 2 problems with the assembly plugin and was wondering if you
guys could help me out:

1st: From an empty directory I try to assemble my application out of
the pom.xml and an application.xml file. I've previously uploaded to
my repository all the artifacts necessary to bundle my application.
The dependants artifacts come nicely in my target/app/ directory
however for my main artifact I get:
[WARNING] JAR will be empty - no content was marked for inclusion!
and that particular jar is empty.
I was under the impression I could assemble an application out of what
is in my local repository/local cache without having to recompile

2st: Assuming 1st is created correclty I would like to have a way to
postprocess my main artifact after assembly, namely I would like to
unjar it because, for my final application, I included in it config
information that need to be edited.
I know I asked this already but I really would want to do this.

I suppose in summary I'm looking for a way to assemble an application
out of artifacts already precompiled and in a somewhat flexible way.
The assembly doesn't seem to 'cut it' for me.

Thanks in advance,
Pierre

-
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: configuring a list as default value for a plugin parameter

2006-05-08 Thread Edwin Punzalan


I'm not sure about that.

But if I'm authoring it, I'd put it like:

/**
* default values are option1 and option2
*
* @parameter
*/
private String[] options = new String[] { option1, option2 };





Tom Huybrechts wrote:

Hi all,

is it possible to define a default value for a mojo parameter that is
an array or collection ?

e.g.:

/**
* @parameter expression=option1,option2
*/
private String[] options;

Tom

-
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: Assembly - how to

2006-05-08 Thread Pierre Monestie

Hi,
I did know about this mini-guide.
My problem comes from the fact that I want to be able to rebuild an
assembly:directory even if I don't have the source code.

I'm kind of looking for a way to build my application out of a single
pom.xml given that I have uploaded all necessary artifacts to my
repository.

I guess the assembly doesn't do it as it expect compiled classes in
the target directory.

Also I'm looking for a way to unpack my main artifact, which the
assembly plugin doesn't seem to be able to do.

Could an ant task solve my problem? In particular for a pom, extract
the artifact from the repository as well as it's dependencies and
assemble them in a particular directory?

Thanks in advance,
Pierre

On 5/8/06, Edwin Punzalan [EMAIL PROTECTED] wrote:


Hi. Have you seen this page:
http://maven.apache.org/guides/mini/guide-assemblies.html

The WARNING you saw maybe due to the assembly not having anything to put
into the jar.  A correct assembly file would have at lease one
dependencySet or one fileSet


Pierre Monestie wrote:
 Hello,
 I got 2 problems with the assembly plugin and was wondering if you
 guys could help me out:

 1st: From an empty directory I try to assemble my application out of
 the pom.xml and an application.xml file. I've previously uploaded to
 my repository all the artifacts necessary to bundle my application.
 The dependants artifacts come nicely in my target/app/ directory
 however for my main artifact I get:
 [WARNING] JAR will be empty - no content was marked for inclusion!
 and that particular jar is empty.
 I was under the impression I could assemble an application out of what
 is in my local repository/local cache without having to recompile

 2st: Assuming 1st is created correclty I would like to have a way to
 postprocess my main artifact after assembly, namely I would like to
 unjar it because, for my final application, I included in it config
 information that need to be edited.
 I know I asked this already but I really would want to do this.

 I suppose in summary I'm looking for a way to assemble an application
 out of artifacts already precompiled and in a somewhat flexible way.
 The assembly doesn't seem to 'cut it' for me.

 Thanks in advance,
 Pierre

 -
 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: Assembly - how to

2006-05-08 Thread Edwin Punzalan


I think this is possible.  A pom.xml would only have dependencies 
declared and no actual sources.  So running the assembly will give you 
the dependencies.  What version of assembly are you using?



Pierre Monestie wrote:

Hi,
I did know about this mini-guide.
My problem comes from the fact that I want to be able to rebuild an
assembly:directory even if I don't have the source code.

I'm kind of looking for a way to build my application out of a single
pom.xml given that I have uploaded all necessary artifacts to my
repository.

I guess the assembly doesn't do it as it expect compiled classes in
the target directory.

Also I'm looking for a way to unpack my main artifact, which the
assembly plugin doesn't seem to be able to do.

Could an ant task solve my problem? In particular for a pom, extract
the artifact from the repository as well as it's dependencies and
assemble them in a particular directory?

Thanks in advance,
Pierre

On 5/8/06, Edwin Punzalan [EMAIL PROTECTED] wrote:


Hi. Have you seen this page:
http://maven.apache.org/guides/mini/guide-assemblies.html

The WARNING you saw maybe due to the assembly not having anything to put
into the jar.  A correct assembly file would have at lease one
dependencySet or one fileSet


Pierre Monestie wrote:
 Hello,
 I got 2 problems with the assembly plugin and was wondering if you
 guys could help me out:

 1st: From an empty directory I try to assemble my application out of
 the pom.xml and an application.xml file. I've previously uploaded to
 my repository all the artifacts necessary to bundle my application.
 The dependants artifacts come nicely in my target/app/ directory
 however for my main artifact I get:
 [WARNING] JAR will be empty - no content was marked for inclusion!
 and that particular jar is empty.
 I was under the impression I could assemble an application out of what
 is in my local repository/local cache without having to recompile

 2st: Assuming 1st is created correclty I would like to have a way to
 postprocess my main artifact after assembly, namely I would like to
 unjar it because, for my final application, I included in it config
 information that need to be edited.
 I know I asked this already but I really would want to do this.

 I suppose in summary I'm looking for a way to assemble an application
 out of artifacts already precompiled and in a somewhat flexible way.
 The assembly doesn't seem to 'cut it' for me.

 Thanks in advance,
 Pierre

 -
 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: Assembly - how to

2006-05-08 Thread dan tran

On 5/8/06, Pierre Monestie [EMAIL PROTECTED] wrote:


Hi,
I did know about this mini-guide.
My problem comes from the fact that I want to be able to rebuild an
assembly:directory even if I don't have the source code.

I'm kind of looking for a way to build my application out of a single
pom.xml given that I have uploaded all necessary artifacts to my
repository.

I guess the assembly doesn't do it as it expect compiled classes in
the target directory.



set your packaging to pom

Also I'm looking for a way to unpack my main artifact, which the

assembly plugin doesn't seem to be able to do.

Could an ant task solve my problem? In particular for a pom, extract
the artifact from the repository as well as it's dependencies and
assemble them in a particular directory?

Thanks in advance,
Pierre

On 5/8/06, Edwin Punzalan [EMAIL PROTECTED] wrote:

 Hi. Have you seen this page:
 http://maven.apache.org/guides/mini/guide-assemblies.html

 The WARNING you saw maybe due to the assembly not having anything to put
 into the jar.  A correct assembly file would have at lease one
 dependencySet or one fileSet


 Pierre Monestie wrote:
  Hello,
  I got 2 problems with the assembly plugin and was wondering if you
  guys could help me out:
 
  1st: From an empty directory I try to assemble my application out of
  the pom.xml and an application.xml file. I've previously uploaded to
  my repository all the artifacts necessary to bundle my application.
  The dependants artifacts come nicely in my target/app/ directory
  however for my main artifact I get:
  [WARNING] JAR will be empty - no content was marked for inclusion!
  and that particular jar is empty.
  I was under the impression I could assemble an application out of what
  is in my local repository/local cache without having to recompile
 
  2st: Assuming 1st is created correclty I would like to have a way to
  postprocess my main artifact after assembly, namely I would like to
  unjar it because, for my final application, I included in it config
  information that need to be edited.
  I know I asked this already but I really would want to do this.
 
  I suppose in summary I'm looking for a way to assemble an application
  out of artifacts already precompiled and in a somewhat flexible way.
  The assembly doesn't seem to 'cut it' for me.
 
  Thanks in advance,
  Pierre
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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




Re: [m2] Disable generation of xml test reports

2006-05-08 Thread Vinod Panicker

On 5/9/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

I haven't tested it but useFilefalse/useFile should do the trick.
See :
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html


On 5/8/06, Vinod Panicker [EMAIL PROTECTED] wrote:

 Hi,

 Is there a way to disable generation of xml test reports?  I'm running
 a huge number of tests and don't need the xml output.  Just need plain
 text reports.  The xml file generation adds up to a huge amount of
 time.

 Adding reportFormatplain/reportFormat doesn't disable xml generation
 :(


I don't want to completely disable output, just want to disable the
xml output. useFile false will completely disable report generation.

Regards,
Vinod.

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



Re: [m2] Disable generation of xml test reports

2006-05-08 Thread Wayne Fay

This was discussed a few months ago on this list. And at the time, no
one came up with a way to suppress ONLY the xml output.

So my response now will be the same as then: Submit a JIRA enhancement
request so a Maven dev can add this feature, or hack the plugin code
to add such an option and contribute it back.

You can find the thread using this info:
Date: Mar 16, 2006 9:18 AM
Subject: avoid generation of TEST*.xml files

Wayne

On 5/8/06, Vinod Panicker [EMAIL PROTECTED] wrote:

On 5/9/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 I haven't tested it but useFilefalse/useFile should do the trick.
 See :
 http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html


 On 5/8/06, Vinod Panicker [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Is there a way to disable generation of xml test reports?  I'm running
  a huge number of tests and don't need the xml output.  Just need plain
  text reports.  The xml file generation adds up to a huge amount of
  time.
 
  Adding reportFormatplain/reportFormat doesn't disable xml generation
  :(

I don't want to completely disable output, just want to disable the
xml output. useFile false will completely disable report generation.

Regards,
Vinod.

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



Problem with Ajaxanywhere

2006-05-08 Thread Anshuman Srivastava
Hi,
I am using Maven2.0.3.I have a multiple module project and I want ot use
Ajax Anywhere 1.2-RC1.I put the dependecy in my web modue pom.xml file as
below.

   dependency
groupIdorg.ajaxanywhere/groupId
 artifactIdajaxanywhere/artifactId
version1.2-RC1/version
scopesystem/scope

systemPathC:/workspaces/dms/userlibs/ajax/ajaxanywhere-1.2-RC1.jar/system
Path
 /dependency

But it is throwing error.I tried to change the group ids and artifact id but
still error is coming.Please help

Thanks in advance
Anshuman


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



Re: [m2] Disable generation of xml test reports

2006-05-08 Thread Vinod Panicker

On 5/9/06, Wayne Fay [EMAIL PROTECTED] wrote:

This was discussed a few months ago on this list. And at the time, no
one came up with a way to suppress ONLY the xml output.

So my response now will be the same as then: Submit a JIRA enhancement
request so a Maven dev can add this feature, or hack the plugin code
to add such an option and contribute it back.


http://jira.codehaus.org/browse/MSUREFIRE-106
Will try and contribute a fix.  We had done an ugly hack for maven
1.1.  Just checked the plugin code and its now java instead of jelly.

Regards,
Vinod.

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