Problems with Checkstyle, javadocs using Maven 2.0.1 for log4j

2005-12-16 Thread Curt Arnold
I've been playing a bit with Maven 2.0.1 exploring whether it could  
be used to generate the log4j project documentation.  I've run into a  
few newbie issues and would appreciate any guidance.  The current  
state is checked into the log4j trunk (svn co http://svn.apache.org/ 
repos/asf/logging/log4j/trunk) and the generated web site is  
available at http://people.apache.org/~carnold/log4j_mvn/index.html.


In the pom.xml, I attempted to invoke the Checkstyle report using a  
fragment like:


  

  < plugin>
maven-checkstyle-plugin
  

However, when running the site target, I got a stack trace with a  
message "Class org.apache.commons.logging.impl.Jdk14Logger does not  
implement Log".  The same message was mentioned in http://www.mail- 
archive.com/users@maven.apache.org/msg03864.html but in a different  
context.  I'm running JDK 1.4.2_09 on Mac OS/X Tiger and have not  
tried other platforms.  The log4j/trunk/pom.xml has the checkstyle  
lines commented out.  If uncommented, the problem should come back.


The Javadoc report is emtpy (file:///Users/curta/log4j-mvn2/target/ 
site/apidocs/index.html) though the Javadoc generation did complete  
successfully and can be viewed at file:///Users/curta/log4j-mvn2/ 
target/site/apidocs/overview-summary.html.


I attempted to add additional reports, but was unable to find the  
right syntax.  I could find Maven 1.x examples like:


  
maven-jdepend-plugin
maven-checkstyle-plugin
maven-changelog-plugin
maven-file-activity-plugin
maven-developer-activity-plugin
maven-javadoc-plugin
maven-jxr-plugin
maven-junit-report-plugin
maven-tasklist-plugin
maven-jellydoc-plugin
  

but could not find Maven 2.x examples for the equivalent reports.   
Simply using the same plug in name in  tags failed for  
the few I tried.


The generated dependencies list (http://people.apache.org/~carnold/ 
log4j_mvn/dependencies.html) was uneven in the documentation  
provided.  Javamail, JMS and Activation had a long descriptions and a  
links, but junit, com.sun.jmx et al had nothing.


The log4j unit tests have expectations about which directory they are  
run in (they use relative paths for resource files) and it was not  
obvious how to specify the current working directory to be used  
during the tests.


Appreciate any and all help.  Thanks.




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



RE: [m2] maven & svn command

2005-12-16 Thread Brian E. Fox
Currently it requires the svn client to apparently be on the path. There
is a jira for this but I am unable to retreive the number right now.
There are only a couple for the svn provider so it should be easy to
locate. 

-Original Message-
From: Jurgen Lust [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 9:18 AM
To: Maven Users List
Subject: [m2] maven & svn command

Hi,

I'm having trouble getting the maven release plugin to work with
subversion. Apparently the maven SCM subversion provider does not use a
java SVN client, whereas the CVS provider does.
I'm working on a windows platform with tortoiseSVN as my client. When I
start the release:prepare goal, maven complains that it can't find the
command 'svn'. Is there a way to make it use javasvn or something?

Jurgen

--
Among flowers, the cherry blossom.
Among men, me.





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



Re: [m2] Adding surefire-report => Infinite loop

2005-12-16 Thread Allan Ramirez

Hi Sri,

There is no attached file in your mail :)

-allan

Sri Sankaran wrote:


Attached is the output of a run with the -X option.  Other than seeing the same 
steps repeating, I don't see the *cause* of the problem.

Sri


 


-Original Message-
From: Allan Ramirez [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 3:53 AM

To: Maven Users List
Subject: Re: [m2] Adding surefire-report => Infinite loop

I cant replicate this issue. It is working in my copy. Can 
you paste the log with -X arguement?


-allan

Sri Sankaran wrote:

   

I wanted to run the surefire-report:report goal as part of the test 
phase.  So, I add the following to my pom



  
  org.codehaus.mojo
  surefire-report-maven-plugin
  2.0-beta-1
  
  
  test
  report
  
  
  


This results in an infinite loop of the test:test goal.

What am I doing wrong?

Sri

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



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005

 



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

Re: [m2] clean plugin needs dependant plugins?

2005-12-16 Thread Chad Brandon

Thanks Edwin,

Yeah it appears that any plugins that are in my pom.xml need to be 
downloaded before clean can work, otherwise it fails with unsatisfied 
dependencies (for example, I can't clean our distribution until the rest 
of the plugins of our build are installed).  I'll reopen the issue.


Chad

Edwin Punzalan wrote:



According to jira, this has been fixed in 2.0-alpha-3, if you're sure 
that its not working again, you can reopen 
http://jira.codehaus.org/browse/MNG-489



Chad Brandon wrote:


Hi,

Is there any reason why the clean plugin needs to have dependent 
plugins downloaded before it can do its thing?  It would be nice if 
it ignored all dependencies (including plugins).


Thanks,

Chad

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



Plugins, news RSS feeds

2005-12-16 Thread Srepfler Srgjan
I've noticed that the changes plugin should allow the generation of RSS 
feeds, are there any feeds already set-up on mojo and apache-maven? I 
see no RSS feed icon on firefox?
I propose it should be mandatory for all mojo and official plugins and 
then have two aggregated feeds (if not one that could additionally 
include even external feeds).


Cheers

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



Re: Fwd: Does project a include project b in the classpath if they are both part of a multi

2005-12-16 Thread Allan Ramirez

Hi Rolf,

Have you specified the M2_REPO classpath variable in eclipse? as stated 
in http://maven.apache.org/guides/mini/guide-ide-eclipse.html


regards,
-allan

Rolf Strijdhorst wrote:


Hi I'm working with maven2 and using eclipse I have a war project and a jar
project.
when i am using the maven-eclipse plugin and have stated that my war project
has a dependency on my jar project. I do not see the jar in my list of
project dependencies. in the ide.
This seems to cause a problem with my integration of the jetty plugin as
well because it cannot find any of my classes in the jar project when i'm
running jetty6.

The packaged war however works as expected. does anyone have a clue how to
fix it or have a work around for it?

thanx Rolf

 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005

 



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

Re: Dependency in Maven2

2005-12-16 Thread Allan Ramirez

Hi there,

You can use the install-file goal to install your jar in the local repo 
with m2 format of dependencies.
Please refer to this page 
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafileinmylocalrepositoryalongwithagenericPOM


-allan

Muri Josef (KCDA 12) wrote:


Hi all,

Is there any mechanism in m2 so I can reference dependencies that do not
match the pattern -.jar
I have quite a few jars that follow the conventions
_.jar.

Within Maven 1 I could define it in the  tag. I could not do so in
Maven2.

   
 mygroup
 Update_1_classes
 Update_1_classes.jar
 jar
   


thanx
josef




 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005

 



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

Re: Is it possible to make pom.xml simpler?

2005-12-16 Thread Srepfler Srgjan



If your sole concern is the number of lines one must type, it is
certainly an option to have meta-pom.xml be in the format you find most
comfortable, then xslt it into the "more verbose" m2 pom.xml.

This argument of attributes versus elements has existed since the dawn
of [xml] time. I am not trying to argue one way or the other, but since
m1 pom used the "more verbose" syntax, it eases the transition.

 My USD$0.02,
 -- /v\atthew

-
 

In fact people should develop a plugin that maps the simplified and 
verbose schemas on the fly :)
The advantage of using namespaces is that you can create a your tag and 
map it to the verbose tag from the official pom.
That's the way I've seen the spring guys use it for now but the 
advantage that I see is that in could be much easier to extend the pom 
and it would be more "type safe"


My 0.02MKD

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



Re: propoer Jelly doc + samples

2005-12-16 Thread Henry Isidro

Michael Niemaz wrote:


Hi all,
  I'm looking for pointers to jelly documentation and samples, a part 
from the tab libraries documentation on maven.
I'm kinda struggling to write scripts so I thought there would a place 
somewhere that would help me.


thanx,

--mike

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



Hi Mike,

Check these sites out:

http://maven.apache.org/maven-1.x/reference/scripting.html
http://maven.apache.org/maven-1.x/using/developing-plugins.html

HTH,

Henry


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



Re: [m2] maven-ear-plugin: why is the includeInApplicationXml set to false by default ?

2005-12-16 Thread Srepfler Srgjan

Stephane Nicoll wrote:


Yes, or the spec for J2EE 1.3. You should refer java application client
module only in this section. This should not be used for libraries.


The java element specifies the URI of a java application client
module, relative to the top level of the application package.


See also section 8.2 of the same document, page 133. It explains how to
refer to a library using the Class-Path entry of a manifest file.

Hope it helps,
Stéphane

   


Thanks,
I've been living a lye!
Why God! Why! birthday>


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



[m2] Struts Ti and evangelism

2005-12-16 Thread Srepfler Srgjan

Hi,
Having decided that Struts and WebWork are moving together and forming a 
new project Struts Ti is there a chance that they might adopt m2 or 
would that seriously jeopardize the future of the project? :)
The various news flying around... Struts integrates Beehive, WebWork. 
WebWork integrates RIFE and Spring. Spring integrates SpringMVC, 
WebWork, WebFlow, Hibernate... well, everything...

This makes me hear in the background:

One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.

...I was referring to maven2
PS. OT: In which architectural layer would SiteMash be? Could it 
integrate as well?


Srgjan

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



Fwd: Does project a include project b in the classpath if they are both part of a multi

2005-12-16 Thread Rolf Strijdhorst
Hi I'm working with maven2 and using eclipse I have a war project and a jar
project.
when i am using the maven-eclipse plugin and have stated that my war project
has a dependency on my jar project. I do not see the jar in my list of
project dependencies. in the ide.
This seems to cause a problem with my integration of the jetty plugin as
well because it cannot find any of my classes in the jar project when i'm
running jetty6.

The packaged war however works as expected. does anyone have a clue how to
fix it or have a work around for it?

thanx Rolf


Re: [M2.0.1] Ant tasks can't parse pom.xml

2005-12-16 Thread Matt Raible
On 12/16/05, John Casey <[EMAIL PROTECTED]> wrote:
> This issue is being tracked as MNG-1851
> (http://jira.codehaus.org/browse/MNG-1851), and I think I've got it fixed.
>
> I've deployed a snapshot of the ant tasks with dependencies, here:
>
> http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/maven-artifact-ant/2.0.2-SNAPSHOT/
>
> Would you mind taking it for a spin, to see if it works? If so, it will
> be part of an emergency release early next week.

Yes, this works.  Thanks John.

Matt

>
> Thanks,
>
> John
>
> Matt Raible wrote:
> > I tried upgrading my Maven 2 Ant Tasks' JAR tonight, and after doing
> > so, I'm getting the following error:
> >
> > foxxy:~/dev/equinox mraible$ ant war
> > Buildfile: build.xml
> >
> > init:
> > [artifact:dependencies] An error has occurred while processing the
> > Maven artifact tasks.
> > [artifact:dependencies]  Diagnosis:
> > [artifact:dependencies]
> > [artifact:dependencies] Unable to build project:
> > /Users/mraible/Work/equinox/pom.xml
> > [artifact:dependencies] Duplicate project ID found in
> > /Users/mraible/Work/equinox/pom.xml
> >
> > BUILD FAILED
> > /Users/mraible/Work/equinox/build.xml:27: Unable to build project:
> > /Users/mraible/Work/equinox/pom.xml
> >
> > Total time: 2 seconds
> > foxxy:~/dev/equinox mraible$
> >
> > I haven't been able to find the "duplicate project id" the error is
> > referring to.  The strange thing is if I run "mvn package" on my
> > project, everything works fine with Maven 2.0.1.  If I revert my
> > maven-artifact-ant-2.0.1-dep.jar to maven-artifact-ant-2.0-dep.jar,
> > everything works as expected.
> >
> > Here's how I declare the Maven Ant tasks in my build.xml:
> >
> > 
> >  > uri="urn:maven-artifact-ant">
> > 
> >  > location="${basedir}/lib/maven-artifact-ant-2.0-dep.jar" />
> > 
> > 
> >
> > 
> >
> > Here's line 27 of build.xml:
> >
> >  > filesetId="compile.fileset" useScope="compile">
> > 
> > 
> >
> > Thanks,
> >
> > Matt
> >
> > -
> > 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: 2.0.1 Issues - STATUS

2005-12-16 Thread John Casey
I've addressed Issue #3 below, and have uploaded a snapshot of the ant 
tasks with dependencies bundle here:


http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/maven-artifact-ant/2.0.2-SNAPSHOT/

for testing.

Also, I've uploaded a snapshot of the new reporting-impl jar here:

http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/reporting/maven-reporting-impl/2.0.2-SNAPSHOT/

If all goes well with testing these and nothing else comes up, we'll 
probably release 2.0.2 early next week.


Thanks,

John

John Casey wrote:

Hi everyone,

I wanted to take a second and let you know what we're working on to 
address the major issues introduced by the 2.0.1 release. First, we're 
planning an emergency 2.0.2 release to resolve the three or four 
critical bugs that have surfaced. This release should be ready to go by 
Monday at the latest, but we're going to take a little more time and 
test it as thoroughly as we can before letting it go, particularly in 
light of the last release. :-\


Ok, on to the specific issues:

1. Error parsing environment variables (Maven fails shortly after 
starting execution) [MNG-1819]


  This was an issue with newlines in the values of some environment 
variables. Essentially, the parser we had assumed that each new line in 
the buffer would represent a separate environment variable with 
'key=value' syntax. Obviously, this was a terrible assumption to make.


  We have corrected this in SVN (the project is plexus-utils, version is 
1.0.6-SNAPSHOT), and will release it with 2.0.2 of Maven.


2. Some reports fail to run because they cannot lookup a component 
called 'org.codehaus.doxia.site.renderer.SiteRenderer' [MNG-1834]


  This was a result of changing the home of Doxia from codehaus to 
maven/ASF. During this move, we changed the groupId (fine), and the 
package names (not-so-fine). The change in package naming caused the 
break in compatibility, and also the changed component name. This meant 
that reports requesting that the SiteRenderer component to be injected 
failed. Even if the component definition were there, the API differences 
would have caused failure of these reports.


  We have addressed this issue by implementing a very thin compatibility 
layer between maven-reporting and the new doxia classes. This will allow 
us to deprecate the old package names and eventually remove them. This 
will also be released with 2.0.2.


3. "Duplicate project ID found" message when running the Maven Ant tasks 
[MNG-1850/MNG-1851]


  I'm not currently sure what the cause of this issue is. It's the next 
one on the list, and the fix will be released with 2.0.2.


Sorry for the inconvenience,

John Casey

-
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.0.1] Ant tasks can't parse pom.xml

2005-12-16 Thread John Casey
This issue is being tracked as MNG-1851 
(http://jira.codehaus.org/browse/MNG-1851), and I think I've got it fixed.


I've deployed a snapshot of the ant tasks with dependencies, here:

http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/maven-artifact-ant/2.0.2-SNAPSHOT/

Would you mind taking it for a spin, to see if it works? If so, it will 
be part of an emergency release early next week.


Thanks,

John

Matt Raible wrote:

I tried upgrading my Maven 2 Ant Tasks' JAR tonight, and after doing
so, I'm getting the following error:

foxxy:~/dev/equinox mraible$ ant war
Buildfile: build.xml

init:
[artifact:dependencies] An error has occurred while processing the
Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to build project:
/Users/mraible/Work/equinox/pom.xml
[artifact:dependencies] Duplicate project ID found in
/Users/mraible/Work/equinox/pom.xml

BUILD FAILED
/Users/mraible/Work/equinox/build.xml:27: Unable to build project:
/Users/mraible/Work/equinox/pom.xml

Total time: 2 seconds
foxxy:~/dev/equinox mraible$

I haven't been able to find the "duplicate project id" the error is
referring to.  The strange thing is if I run "mvn package" on my
project, everything works fine with Maven 2.0.1.  If I revert my
maven-artifact-ant-2.0.1-dep.jar to maven-artifact-ant-2.0-dep.jar,
everything works as expected.

Here's how I declare the Maven Ant tasks in my build.xml:










Here's line 27 of build.xml:





Thanks,

Matt

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

2005-12-16 Thread Vincent Massol
Hi Samuel,

> -Original Message-
> From: Samuel Le Berrigaud [mailto:[EMAIL PROTECTED]
> Sent: jeudi 15 décembre 2005 18:06
> To: Maven Users
> Subject: [m2] Cargo
> 
> I am using the maven 2 Cargo plugin. It's just great to deploy to my
> tomcat5x. However today I had some problem running cargo on a new
> machine. Maven cannot find the cargo plugin.
> 
> It seems that the cargo snapshot repository is empty (or almost).
> 
> Does someone knows what is going on ?

I offer you my apologies. Here's the story:

* There's a bug with the deploy plugin (probably with wagon actually) where
the deploy partly fails when using the scpexe protocol with non-default
scp/ssh executables. This means that I cannot deploy twice the same
artifacts. I need to remove the previous ones before deploying new versions.

* I was at Javapolis 2005 for the past 3 days

* Just 5 minutes before taking the train I have fixed an issue with the
cargo m2 plugin and I did not have the time to redeploy (which BTW takes 1
hour 30 minutes on my machine, dunno why, maybe because of the bug mentioned
above).

* Thus I tried to redeploy while at Javapolis. As usual, I started by
deleting the previous artifacts on the repo (Note to self: Don't do that
again, move them to some place instead of rm-ing them). But then I could not
redeploy the new ones (I kept getting "connection reset by peer errors" even
though the internet connection was working fine there). I've tried several
times and did not succeed. 

* I've redeployed them a few hours ago so everything should be working now.

Thank and apologies again
-Vincent


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



RE: maven2 plugin suggestions

2005-12-16 Thread Frank Russo
Upon further reading the docs for the plugin, I guess this is not the
correct plugin for wars. Is that correct? 

I looked at the war plugin, but it doesn't appear to be able to be
configured the same. Is there anyway that I can accomplish the goal
defined below. For the bin/*.sh files, I could just start them off in
the web-inf folder structure, and let the war plugin package them. The
empty bigbrother folder is a different story. The war plugin won't build
an empty folder into a war file, and it needs to be done. It was easy in
ant. Is there anything similar in maven?

Any help is much appreciated. Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC

> -Original Message-
> From: Frank Russo 
> Sent: Friday, December 16, 2005 2:35 PM
> To: Maven Users List
> Subject: Re: maven2 plugin suggestions
> 
> 
> Sorry, wrong subject on the prior...
> > -Original Message-
> > From: Frank Russo
> > Sent: Friday, December 16, 2005 2:32 PM
> > To: Maven Users List
> > Subject: RE: [m2] Disabling tests in a profile
> > 
> > 
> > I have a question about this. I tried what you have done with
> > the assembly plugin for my set up. I have a webapp. In the 
> > webapp's web-inf folder, I need the following:
> > 
> > web-inf/bin/*.sh
> > web-inf/bigbrother  // this is just an empty folder.
> > one of the .sh files uses it. 
> > 
> > I created the following package structure:
> > 
> > src/main/scripts/bin  // with all the .sh files
> > src/main/scripts/bigbrother
> > 
> > I added your assembly plugin to my pom. I created the
> > following bin.xml file in the assembly folder:
> > 
> > 
> > war
> > 
> > war
> > 
> > 
> > 
> > src/main/scripts
> > /WEB-INF/bin 
> > 
> > **/*.sh
> > **/**
> > 
> > 
> > 
> > 
> > 
> > I tried a couple of different things for the second include,
> > not of which work. 
> >  
> > Can anyone help on this?
> >  
> > Thanks...
> > Frank Russo
> > Senior Developer
> > FX Alliance, LLC
> > 
> > > -Original Message-
> > Thanks for all the replies.
> > I actually got most of what I wanted from the jar and
> > assembly plugin.
> > 
> > I configured the following in my pom.xml:
> > 
> > ...
> > 
> > ...
> > 
> >  
> >   maven-assembly-plugin
> >
> > src/main/assembly/bin.xml
> >
> >  
> >  
> >   org.apache.maven.plugins
> >maven-jar-plugin
> >
> > 
> >  
> >  
> > net.sf.toolinstaller.ui.cli.Main
> >   net.sf.toolinstaller
> >   true
> >  
> > 
> >
> >   
> > ...
> > 
> > ...
> > 
> > The jar plugin generates the manifest so that the
> > classpath is generated and the mainclass is specified.
> > 
> > This means that my run script merely contains:
> > 
> > java.exe -jar ../lib/toolinstaller-0.2-SNAPSHOT.jar %*
> > 
> > The only thing missing here is automatic substitution
> > of the version in the jar filename - but I can handle
> > doing that manually for now.
> > 
> > Then, I've configured the assembly plugin with
> > src/main/assembly/bin.xml which copies the required artifacts 
> > into the assembled artifact for distribution.
> > 
> > Awesome - great work from the maven developers.
> > 
> > If you want to look at the full pom.xml and
> > src/main/assembly/bin.xml files have a look at my files in 
> > the CVS repository: 
> > 
> > http://cvs.sourceforge.net/viewcvs.py/toolinstaller/toolinstaller/
> > 
> > 
> > I wonder if it would be a good idea to enable
> > substitutions when the assembly plugin copies
> > resources.
> > 
> > Thanks again,
> > Paul.
> >  
> > 
> > --- Paul Rule <[EMAIL PROTECTED]> wrote:
> > 
> > > I often write stand alone apps, and I've often
> > > thought
> > > it would be good to have a plugin to bundle up a
> > > build
> > > complete with all the dependent jars, scripts,
> > > config
> > > files etc - and to even generate the run.bat &
> > > run.sh
> > > scripts.
> > > 
> > > Is there anything like this currently (I talking
> > > maven2) - if I wrote it would anyone else find it
> > > useful?
> > > 
> > > Also, would anyone find a plugin that generated the
> > > java service wrapper configuration useful?
> > > 
> > > 
> > >   
> > > 
> > > 
> > > Do you Yahoo!?
> > > The New Yahoo! Movies: Check out the Latest
> > > Trailers, Premiere Photos and full Actor Database.
> > > http://au.movies.yahoo.com  
> > > 
> > 
> > 
> > Send instant messages to your online friends 
> > http://au.messenger.yahoo.com 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -

RE: [m2] Adding surefire-report => Infinite loop

2005-12-16 Thread Sri Sankaran
Attached is the output of a run with the -X option.  Other than seeing the same 
steps repeating, I don't see the *cause* of the problem.

Sri
 

> -Original Message-
> From: Allan Ramirez [mailto:[EMAIL PROTECTED] 
> Sent: Friday, December 16, 2005 3:53 AM
> To: Maven Users List
> Subject: Re: [m2] Adding surefire-report => Infinite loop
> 
> I cant replicate this issue. It is working in my copy. Can 
> you paste the log with -X arguement?
> 
> -allan
> 
> Sri Sankaran wrote:
> 
> >I wanted to run the surefire-report:report goal as part of the test 
> >phase.  So, I add the following to my pom
> >
> >
> >
> >org.codehaus.mojo
> >surefire-report-maven-plugin
> >2.0-beta-1
> >
> >
> >test
> >report
> >
> >
> >
> >
> >
> >This results in an infinite loop of the test:test goal.
> >
> >What am I doing wrong?
> >
> >Sri
> >
> >-
> >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: maven2 plugin suggestions

2005-12-16 Thread Frank Russo
Sorry, wrong subject on the prior...
> -Original Message-
> From: Frank Russo 
> Sent: Friday, December 16, 2005 2:32 PM
> To: Maven Users List
> Subject: RE: [m2] Disabling tests in a profile
> 
> 
> I have a question about this. I tried what you have done with 
> the assembly plugin for my set up. I have a webapp. In the 
> webapp's web-inf folder, I need the following:
> 
>   web-inf/bin/*.sh
>   web-inf/bigbrother  // this is just an empty folder. 
> one of the .sh files uses it. 
> 
> I created the following package structure:
> 
>   src/main/scripts/bin  // with all the .sh files
>   src/main/scripts/bigbrother
> 
> I added your assembly plugin to my pom. I created the 
> following bin.xml file in the assembly folder:
> 
>   
>   war
>   
>   war
>   
>   
>   
>   src/main/scripts
>   /WEB-INF/bin 
>   
>   **/*.sh
>   **/**
>   
>   
>   
>   
> 
> I tried a couple of different things for the second include, 
> not of which work. 
>  
> Can anyone help on this? 
>  
> Thanks...
> Frank Russo
> Senior Developer
> FX Alliance, LLC
> 
> > -Original Message-
> Thanks for all the replies. 
> I actually got most of what I wanted from the jar and
> assembly plugin.
> 
> I configured the following in my pom.xml:
> 
> ...
> 
> ...
> 
>  
>   maven-assembly-plugin
>
> src/main/assembly/bin.xml
>
>  
>  
>   org.apache.maven.plugins
>maven-jar-plugin
>
> 
>  
>  
> net.sf.toolinstaller.ui.cli.Main
>   net.sf.toolinstaller
>   true
>  
> 
>
>   
> ...
> 
> ...
> 
> The jar plugin generates the manifest so that the
> classpath is generated and the mainclass is specified.
> 
> This means that my run script merely contains:
> 
> java.exe -jar ../lib/toolinstaller-0.2-SNAPSHOT.jar %*
> 
> The only thing missing here is automatic substitution
> of the version in the jar filename - but I can handle
> doing that manually for now. 
> 
> Then, I've configured the assembly plugin with 
> src/main/assembly/bin.xml which copies the required artifacts 
> into the assembled artifact for distribution.
> 
> Awesome - great work from the maven developers.
> 
> If you want to look at the full pom.xml and 
> src/main/assembly/bin.xml files have a look at my files in 
> the CVS repository: 
> 
> http://cvs.sourceforge.net/viewcvs.py/toolinstaller/toolinstaller/
>  
> 
> I wonder if it would be a good idea to enable
> substitutions when the assembly plugin copies
> resources.
> 
> Thanks again,
> Paul.
>  
> 
> --- Paul Rule <[EMAIL PROTECTED]> wrote:
> 
> > I often write stand alone apps, and I've often
> > thought
> > it would be good to have a plugin to bundle up a
> > build
> > complete with all the dependent jars, scripts,
> > config
> > files etc - and to even generate the run.bat &
> > run.sh
> > scripts.
> > 
> > Is there anything like this currently (I talking
> > maven2) - if I wrote it would anyone else find it
> > useful?
> > 
> > Also, would anyone find a plugin that generated the
> > java service wrapper configuration useful?
> > 
> > 
> >   
> > 
> > 
> > Do you Yahoo!?
> > The New Yahoo! Movies: Check out the Latest
> > Trailers, Premiere Photos and full Actor Database. 
> > http://au.movies.yahoo.com  
> > 
> 
> 
> Send instant messages to your online friends
> http://au.messenger.yahoo.com   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: [m2] Disabling tests in a profile

2005-12-16 Thread Frank Russo
I have a question about this. I tried what you have done with the
assembly plugin for my set up. I have a webapp. In the webapp's web-inf
folder, I need the following:

web-inf/bin/*.sh
web-inf/bigbrother  // this is just an empty folder. one of the
.sh files uses it. 

I created the following package structure:

src/main/scripts/bin  // with all the .sh files
src/main/scripts/bigbrother

I added your assembly plugin to my pom. I created the following bin.xml
file in the assembly folder:


war

war



src/main/scripts
/WEB-INF/bin 

**/*.sh
**/**





I tried a couple of different things for the second include, not of
which work. 
 
Can anyone help on this? 
 
Thanks...
Frank Russo
Senior Developer
FX Alliance, LLC

> -Original Message-
Thanks for all the replies. 
I actually got most of what I wanted from the jar and
assembly plugin.

I configured the following in my pom.xml:

...

...

 
  maven-assembly-plugin
   
src/main/assembly/bin.xml
   
 
 
  org.apache.maven.plugins
   maven-jar-plugin
   

 
 
net.sf.toolinstaller.ui.cli.Main
  net.sf.toolinstaller
  true
 

   
  
...

...

The jar plugin generates the manifest so that the
classpath is generated and the mainclass is specified.

This means that my run script merely contains:

java.exe -jar ../lib/toolinstaller-0.2-SNAPSHOT.jar %*

The only thing missing here is automatic substitution
of the version in the jar filename - but I can handle
doing that manually for now. 

Then, I've configured the assembly plugin with
src/main/assembly/bin.xml which copies the required
artifacts into the assembled artifact for
distribution.

Awesome - great work from the maven developers.

If you want to look at the full pom.xml and
src/main/assembly/bin.xml files have a look at my
files in the CVS repository: 

http://cvs.sourceforge.net/viewcvs.py/toolinstaller/toolinstaller/
 

I wonder if it would be a good idea to enable
substitutions when the assembly plugin copies
resources.

Thanks again,
Paul.
 

--- Paul Rule <[EMAIL PROTECTED]> wrote:

> I often write stand alone apps, and I've often
> thought
> it would be good to have a plugin to bundle up a
> build
> complete with all the dependent jars, scripts,
> config
> files etc - and to even generate the run.bat &
> run.sh
> scripts. 
> 
> Is there anything like this currently (I talking
> maven2) - if I wrote it would anyone else find it
> useful?
> 
> Also, would anyone find a plugin that generated the
> java service wrapper configuration useful?
> 
> 
>   
> 
> 
> Do you Yahoo!? 
> The New Yahoo! Movies: Check out the Latest
> Trailers, Premiere Photos and full Actor Database. 
> http://au.movies.yahoo.com  
> 


Send instant messages to your online friends
http://au.messenger.yahoo.com   

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


Re: M2 - Build Versioning

2005-12-16 Thread puschteblume
I don't know exactly what you mean, with build number. I am using 
something like the attached mojo.


This creates a build number in a file and increments it for every build 
you started.


Heiko

dan tran wrote:


not that i know of, you may want write your own plugin to do that.

What SCM are you using?

-Dan



On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
 


Thanks. Is there a way to increment build version numbers without the
involvement of SCM (SCM is involved in release plugin)?

regards,
Karthik.


On 12/16/05, dan tran <[EMAIL PROTECTED]> wrote:
   


maven-release-plugin is the one but it increaments all modules.
-D


On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
 


Hi,

With every build I do for my J2EE project, I want the version of all
modules
to be automatically incremented. What is the best way of accomplishing
this?
Also is there a way to increment the version numbers only for modules
which
have had changes?

Thanks and regards,
Karthik.


   

 

   



 



/*
 * Main.java
 *
 * Created on 13. November 2005, 17:02
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.form105.maven.plugin;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 *
 * @goal create
 * @phase compile
 * @description a sample maven plugin
 */
public class CreateNumberMojo extends AbstractMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
FileInputStream fileInStream = null;
FileOutputStream fileOutStream = null;
File file = new File(getFileName());
getLog().info("Properties file to load: "+file);
try {
fileInStream = new FileInputStream(getFileName());
} catch (FileNotFoundException ex) {
try {
file.createNewFile();
} catch (IOException ioe) {
getLog().error("Can't create file: " + file);
ex.printStackTrace();
}
}
Properties properties = new Properties();
try {
properties.load(fileInStream);
fileInStream.close();
} catch (IOException ex) {
getLog().error(ex.getCause());
ex.printStackTrace();
}
getLog().info("buildnumber: "+properties.getProperty(keyName));
getLog().debug("Keyname: "+keyName);
if (properties.getProperty(keyName) == null) {
properties.setProperty(keyName,startNumber);
getLog().info("Started a new BuildNumber from "+startNumber);
} else {
int i = Integer.parseInt(properties.getProperty(keyName));
i++;
properties.setProperty(keyName, new Integer(i).toString());
getLog().info("Set BuildNumber to: "+i);
}
try {
fileOutStream = new FileOutputStream(file);
properties.store(fileOutStream, "Do not edit by hand. This counts 
build numbers");
fileOutStream.close();
} catch (IOException ex) {
getLog().error(ex.getCause());
getLog().error(ex.fillInStackTrace().toString());
}
}

/**
 * Holds value of property version.
 * @parameter expression="${settings.localRepository}"
 */
private String version;

/**
 * Getter for property version.
 * @return Value of property version.
 */
public String getVersion() {
return this.version;
}

/**
 * Setter for property version.
 * @param version New value of property version.
 */
public void setVersion(String version) {
this.version = version;
}

/**
 * Holds value of property file.
 * 
 * @parameter expression="buildnumber.properties"
 */
private String fileName;

/**
 * Getter for property file.
 * @return Value of property file.
 */
public String getFileName() {
return this.fileName;
}

/**
 * Setter for property file.
 * @param file New value of property file.
 */
public void setFileName(String fileName) {
this.fileName = fileName;
}

/**
 * Holds value of property startNumber.
 * @parameter expression="1"
 */
private String startNumber;

/**
 * Getter for property startNumber.
 * @return Value of property startNumber.
 */
public String getStartNumber() {
return this.startNumber;
}

/**
 * Setter for property startNumber.
 * @param startNumber New value of property startNumber.
 */
public void setStartNumber(String startNumber) {
this.startNumber = startNumber;
}


[m2] Disabling tests in a profile

2005-12-16 Thread Wendy Smoak
What's the easiest/best way to ensure that when a certain profile is
enabled, the tests are *not* run?

(I have tests that are fine to run against the development and test
instances of the database, but which shouldn't be run when the
"db-live" profile is active.)

-Dmaven.test.skip=true works, but I'm likely to forget.  Right now I'm
configuring the Surefire plugin to exclude all of the tests.  Is there
a way to convince Surefire not to run at all for a particular profile?

Thanks,
Wendy

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



Re: [m2] problem with new packaging

2005-12-16 Thread Chris Berry
Thanks Dan !!  That did the trick.

I'm confused though. The writeup on the m2 site (
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html)
appears to indicate that this XML element is required??  Of course, teh
whole components.xml and packaging stuff is a bit like black magic to me ;-)
I'm unclear how it all really holds together...

Thanks again,
-- Chris

On 12/16/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> perhaps you should remove packaging in ArtifactHandler
>
>
>  org.apache.maven.artifact.handler.ArtifactHandler
>  car
>  
> org.apache.maven.artifact.handler.DefaultArtifactHandler
>  
>car
>jar
>false
>false
>  
>
>
>
>
> On 12/16/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> >
> > Greetings,
> > I am trying to create my own packaging type (named "car" -- a
> > "configuration
> > archive"). I need to do this so that I can find all dependencies of type
> > "car" in a project and process them specially. A car is really just a
> jar
> > that requires special processing. So I created a special Car Plugin that
> > contains the components.xml shown below.
> >
> > Then I created another project named et-utils-conf that is of this
> > packaging
> > type. I.e. car and, of course, depends on my new
> > Car
> > Plugin.
> >
> > But for some unknown reason my "car" packaging is making a ".car" file
> > instead of a ".jar" file. BTW, note that I use the jar plugin directly.
> >
> > What I want is a jar file (so that I can use the maven UnArchiver code)
> --
> > but I want the type as "car" so that I can locate all CAR files in a
> > project's dependencies (using artifact.getType().equals( "car" ))
> >
> > The following appears in the output when I run "mvn install" on
> > et-utils-conf, which seems pertinent...
> >
> > [INFO] [install:install]
> > [INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> > utils-conf-1.0-SNAPSHOT.jar to
> > C:\cberry\.m2\repository\et\et-utils-conf\1.0-SNAPSHOT\et-
> > utils-conf-1.0-SNAPSHOT.car
> >
> > Do I have to setup the install somehow?? Seems that the CAR packaging
> > should
> > do it??
> >
> > Anyone see what I'm doing wrong??
> > Thanks,
> > -- Chris
> >
> > 
> > 
> >
> >  org.apache.maven.lifecycle.mapping.LifecycleMapping
> >  car
> >  
> > org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
> > 
> >  
> >
> >  
> > org.apache.maven.plugins:maven-resources-plugin:resources
> > 
> >  org.apache.maven.plugins:maven-jar-plugin:jar
> 
> >  org.apache.maven.plugins:maven-install-plugin:install
> > 
> >  org.apache.maven.plugins:maven-deploy-plugin:deploy
> > 
> >
> >  
> >
> >
> >
> >  org.apache.maven.artifact.handler.ArtifactHandler
> >  car
> >  
> > org.apache.maven.artifact.handler.DefaultArtifactHandler
> 
> >  
> >car
> >jar
> >jar
> >false
> >false
> >  
> >
> >
> > 
> > 
> >
> >
> > The full output::
> >
> > [60] ~/work/etm2/jws/et-utils-conf$ mvn install
> > [INFO] Scanning for projects...
> > [INFO]
> >
> >
> 
> > [INFO] Building ET Utils CAR
> > [INFO]task-segment: [install]
> > [INFO]
> >
> >
> 
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [jar:jar]
> > [INFO] Building jar: c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> > utils-conf-1.0-SNAPSHOT.jar
> > [INFO] [install:install]
> > [INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> > utils-conf-1.0-SNAPSHOT.jar to C:\cberry\.m2\repository\et\et-utils-co
> > nf\1.0-SNAPSHOT\et-utils-conf-1.0-SNAPSHOT.car
> > [INFO]
> >
> >
> 
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> >
> >
> 
> > [INFO] Total time: 2 seconds
> > [INFO] Finished at: Thu Dec 15 16:50:29 CST 2005
> > [INFO] Final Memory: 2M/5M
> > [INFO]
> >
> >
> 
> > [61] ~/work/etm2/jws/et-utils-conf$
> >
> >
>
>


Re: M2 - Build Versioning

2005-12-16 Thread dan tran
not that i know of, you may want write your own plugin to do that.

What SCM are you using?

-Dan



On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
>
> Thanks. Is there a way to increment build version numbers without the
> involvement of SCM (SCM is involved in release plugin)?
>
> regards,
> Karthik.
>
>
> On 12/16/05, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > maven-release-plugin is the one but it increaments all modules.
> > -D
> >
> >
> > On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > With every build I do for my J2EE project, I want the version of all
> > > modules
> > > to be automatically incremented. What is the best way of accomplishing
> > > this?
> > > Also is there a way to increment the version numbers only for modules
> > > which
> > > have had changes?
> > >
> > > Thanks and regards,
> > > Karthik.
> > >
> > >
> >
> >
>
>


RE: Surefires test order

2005-12-16 Thread David Jackman
Actually, JUnit tests do run in a simple and predictable order
(especially when a test class provides its own suite).  I agree that
it's a bad idea to write tests that depend on their ordering, but it
should not be the build system that enforces this (especially when the
XML report is the only way to determine what order surefire used) unless
it's through a property that explicitly tells it to do so.
 
..David..



From: David Sag [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 7:32 AM
To: Maven Users List
Subject: Re: Surefires test order



JUnit tests never run in a specific order and you are stongly advised
never to depend upon their execution order. 

if it worked for you at all that is just a lucky fluke

Kind regards,
Dave Sag 




  

Jochen Wiedmann <[EMAIL PROTECTED]> wrote on 13-12-2005
16:21:44:

> Hi,
> 
> I have a test suite that depends on a certain order of tests. More
> precisely, a unit test, which looks like
> 
> public class MyTest extends TestCase {
> public void testFoo(){ ... }
> public void testBar(){ ... }
> }
> 
> assumes, that testFoo() is invoked before testBar(). This works fine,
> when running the tests from within Ant, or Eclipse.
> 
> My impression is, that Surefire doesn't keep this order. Can anyone
> confirm this? I assume, that reordering the methods is intentional?
> However, if so, two questions arise to me:
> 
> - A reordering occurs, both for test classes (which are typically
executed in
>   alphabetical orders by other frameworks), and methods. However, the
reorder
>   doesn't look choosen randomly: It is reproducable.
> 
>   But if the desired effect is to stop the user from assuming a
> certain order, why
>   isn't it random?
> 
> - Would it be possibly to accept a patch, which restores the typical
> order on the users
>   behalf (for example, by setting a property "canonicalOrder")? The
> test suite isn't
>   written by me, and I am almost unable to change it.
> 
> 
> Thanks,
> 
> Jochen
> 
> 
> --
> Often it does seem a pity that Noah and his party did not miss the
> boat. (Mark Twain)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



Re: M2 - Build Versioning

2005-12-16 Thread Karthik Manimaran
Thanks. Is there a way to increment build version numbers without the
involvement of SCM (SCM is involved in release plugin)?

regards,
Karthik.


On 12/16/05, dan tran <[EMAIL PROTECTED]> wrote:
>
> maven-release-plugin is the one but it increaments all modules.
> -D
>
>
> On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > With every build I do for my J2EE project, I want the version of all
> > modules
> > to be automatically incremented. What is the best way of accomplishing
> > this?
> > Also is there a way to increment the version numbers only for modules
> > which
> > have had changes?
> >
> > Thanks and regards,
> > Karthik.
> >
> >
>
>


something like forking a parallel lifecycle

2005-12-16 Thread Christopher Cobb
I am writing a plugin. This plugin will be executed in the context of
project1.  When project1 configures the plugin, it will make mention of
project2.

 

During the execution of the plugin in the context of project1, I would like
to be able to execute a particular phase of project2 (after making a small
modification to it).  

 

How can I instantiate project2, and having modified it a little, execute a
phase in it?

 

 




-
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


Re: Adding CVS branched project to 1.0.2

2005-12-16 Thread Emmanuel Venisse

You can't define it in url, but you can in  in your pom or in continuum 
project view

Emmanuel

Eric Pugh a écrit :

Hi all,

Enjoying using 1.0.2.  I'm ready to add a branched project to  
Continuum, as well as the CVS HEAD version.  I am having difficulty  
figuring out where to specify the branch?  It seems like the branch  
should go on the end of the SCM url, however http://maven.apache.org/ 
scm/cvs.html didn't seem to have a good example.


It also looks like I could upload a version of my app, and then edit  
its configuration and supply a branch in the Scm Branch/Tag field?


Eric

---
Eric Pugh
Principal
OpenSource Connections

If you wish to contact me directly, please remove the -lists from my  
email address.











Re: New SAR Plugin

2005-12-16 Thread Emmanuel Venisse

:-)

Stephane Nicoll a écrit :

I know :)

Read Jonh's mail, he's talking about a patch for the ear plugin. I am just
saying it's done.

Stéphane

On 12/16/05, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:


This patch doesn't create a sar file, it only add it in ear.

Emmanuel

Stephane Nicoll a écrit :


John,

Someone already did that, see MNG-1852. I just fixed it and this will be
available in the next maven ear plugin release (2.1)

Thanks,
Stéphane

On 12/16/05, John Casey <[EMAIL PROTECTED]> wrote:



First of all, thanks for the contribution!

Please file a JIRA issue against the ear plugin if you have not already
done so, and attach that patch. As for the SAR plugin, you should email
the [EMAIL PROTECTED] mailing list to see what kind of interest you
can drum up there. Our first preference would be to have jboss
themselves host (and maintain) the plugin, but if that's not feasible
and there is enough interest from the mojo project, we can set you up
there to become the maintainer for this plugin.

At any rate, start by mailing [EMAIL PROTECTED]

Thanks,

John

Frank Mena wrote:



I have written a sar plugin that builds a JBoss service sar.  It


handles


the



.sar extension automatically because I have given it an artifactId of
maven-sar-plugin.  I would like to contribute it for inclusion into the
mavens plugin directory, if possible.  It has the Apache license and a
site.  How should I go about submitting it?

I have also modifed the ear plugin so it will also handle a


sarModule.  I



have the source of the sarModule and a patch file that has the changes


to



the  ear source to include the sar module.  Also , I noticed that 2 of


the



source files do not have the proper Apache license header, so I fixed


them.



Frank Mena



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






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




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






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




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



Re: Subversion configuration

2005-12-16 Thread Emmanuel Venisse

You can't without modify maven-scm provider for svn.

What do you need?

Emmanuel

David Saff a écrit :

All,

Is there an easy way to specify flags that should be passed to the svn 
command when updating my project?  Thanks,


   David Saff







Re: Subversion configuration

2005-12-16 Thread dan tran
interesting, another starteam user asks for this feature.  Currently, this
feature is not
available. You can file a JIRA for it


On 12/16/05, David Saff <[EMAIL PROTECTED]> wrote:
>
> All,
>
> Is there an easy way to specify flags that should be passed to the svn
> command when updating my project?  Thanks,
>
>David Saff
>


Adding CVS branched project to 1.0.2

2005-12-16 Thread Eric Pugh

Hi all,

Enjoying using 1.0.2.  I'm ready to add a branched project to  
Continuum, as well as the CVS HEAD version.  I am having difficulty  
figuring out where to specify the branch?  It seems like the branch  
should go on the end of the SCM url, however http://maven.apache.org/ 
scm/cvs.html didn't seem to have a good example.


It also looks like I could upload a version of my app, and then edit  
its configuration and supply a branch in the Scm Branch/Tag field?


Eric

---
Eric Pugh
Principal
OpenSource Connections

If you wish to contact me directly, please remove the -lists from my  
email address.






Re: M2 - Build Versioning

2005-12-16 Thread dan tran
maven-release-plugin is the one but it increaments all modules.
-D


On 12/16/05, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> With every build I do for my J2EE project, I want the version of all
> modules
> to be automatically incremented. What is the best way of accomplishing
> this?
> Also is there a way to increment the version numbers only for modules
> which
> have had changes?
>
> Thanks and regards,
> Karthik.
>
>


Subversion configuration

2005-12-16 Thread David Saff

All,

Is there an easy way to specify flags that should be passed to the svn 
command when updating my project?  Thanks,


   David Saff


Re: [m2] problem with new packaging

2005-12-16 Thread dan tran
perhaps you should remove packaging in ArtifactHandler

   
 org.apache.maven.artifact.handler.ArtifactHandler
 car
 
org.apache.maven.artifact.handler.DefaultArtifactHandler
 
   car
   jar
   false
   false
 
   



On 12/16/05, Chris Berry <[EMAIL PROTECTED]> wrote:
>
> Greetings,
> I am trying to create my own packaging type (named "car" -- a
> "configuration
> archive"). I need to do this so that I can find all dependencies of type
> "car" in a project and process them specially. A car is really just a jar
> that requires special processing. So I created a special Car Plugin that
> contains the components.xml shown below.
>
> Then I created another project named et-utils-conf that is of this
> packaging
> type. I.e. car and, of course, depends on my new
> Car
> Plugin.
>
> But for some unknown reason my "car" packaging is making a ".car" file
> instead of a ".jar" file. BTW, note that I use the jar plugin directly.
>
> What I want is a jar file (so that I can use the maven UnArchiver code) --
> but I want the type as "car" so that I can locate all CAR files in a
> project's dependencies (using artifact.getType().equals( "car" ))
>
> The following appears in the output when I run "mvn install" on
> et-utils-conf, which seems pertinent...
>
> [INFO] [install:install]
> [INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> utils-conf-1.0-SNAPSHOT.jar to
> C:\cberry\.m2\repository\et\et-utils-conf\1.0-SNAPSHOT\et-
> utils-conf-1.0-SNAPSHOT.car
>
> Do I have to setup the install somehow?? Seems that the CAR packaging
> should
> do it??
>
> Anyone see what I'm doing wrong??
> Thanks,
> -- Chris
>
> 
> 
>
>  org.apache.maven.lifecycle.mapping.LifecycleMapping
>  car
>  
> org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
> 
>  
>
>  
> org.apache.maven.plugins:maven-resources-plugin:resources
> 
>  org.apache.maven.plugins:maven-jar-plugin:jar
>  org.apache.maven.plugins:maven-install-plugin:install
> 
>  org.apache.maven.plugins:maven-deploy-plugin:deploy
> 
>
>  
>
>
>
>  org.apache.maven.artifact.handler.ArtifactHandler
>  car
>  
> org.apache.maven.artifact.handler.DefaultArtifactHandler
>  
>car
>jar
>jar
>false
>false
>  
>
>
> 
> 
>
>
> The full output::
>
> [60] ~/work/etm2/jws/et-utils-conf$ mvn install
> [INFO] Scanning for projects...
> [INFO]
>
> 
> [INFO] Building ET Utils CAR
> [INFO]task-segment: [install]
> [INFO]
>
> 
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [jar:jar]
> [INFO] Building jar: c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> utils-conf-1.0-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
> utils-conf-1.0-SNAPSHOT.jar to C:\cberry\.m2\repository\et\et-utils-co
> nf\1.0-SNAPSHOT\et-utils-conf-1.0-SNAPSHOT.car
> [INFO]
>
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
>
> 
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Thu Dec 15 16:50:29 CST 2005
> [INFO] Final Memory: 2M/5M
> [INFO]
>
> 
> [61] ~/work/etm2/jws/et-utils-conf$
>
>


Re: Is it possible to make pom.xml simpler?

2005-12-16 Thread Incze Lajos
On Thu, Dec 15, 2005 at 10:15:02PM +0100, ir. ing. Jan Dockx wrote:
> here, here 
> 
> Directory "pom", next to pom.xml, src and target; all xml files there 
> are merged together; or something; reminds me of our faces-config.xml 
> setup. 

As a matter of fact, current xerces supports the XInclude,
so, as I see, partitioning POM is not a problem, just the
distribution mechanism, has to be xinclude aware.

http://www.w3.org/TR/xinclude/
http://xerces.apache.org/xerces2-j/faq-xinclude.html

incze

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



Re: New SAR Plugin

2005-12-16 Thread Stephane Nicoll
I know :)

Read Jonh's mail, he's talking about a patch for the ear plugin. I am just
saying it's done.

Stéphane

On 12/16/05, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
>
> This patch doesn't create a sar file, it only add it in ear.
>
> Emmanuel
>
> Stephane Nicoll a écrit :
> > John,
> >
> > Someone already did that, see MNG-1852. I just fixed it and this will be
> > available in the next maven ear plugin release (2.1)
> >
> > Thanks,
> > Stéphane
> >
> > On 12/16/05, John Casey <[EMAIL PROTECTED]> wrote:
> >
> >>First of all, thanks for the contribution!
> >>
> >>Please file a JIRA issue against the ear plugin if you have not already
> >>done so, and attach that patch. As for the SAR plugin, you should email
> >>the [EMAIL PROTECTED] mailing list to see what kind of interest you
> >>can drum up there. Our first preference would be to have jboss
> >>themselves host (and maintain) the plugin, but if that's not feasible
> >>and there is enough interest from the mojo project, we can set you up
> >>there to become the maintainer for this plugin.
> >>
> >>At any rate, start by mailing [EMAIL PROTECTED]
> >>
> >>Thanks,
> >>
> >>John
> >>
> >>Frank Mena wrote:
> >>
> >>>I have written a sar plugin that builds a JBoss service sar.  It
> handles
> >>
> >>the
> >>
> >>>.sar extension automatically because I have given it an artifactId of
> >>>maven-sar-plugin.  I would like to contribute it for inclusion into the
> >>>mavens plugin directory, if possible.  It has the Apache license and a
> >>>site.  How should I go about submitting it?
> >>>
> >>>I have also modifed the ear plugin so it will also handle a
> >>
> >>sarModule.  I
> >>
> >>>have the source of the sarModule and a patch file that has the changes
> >>
> >>to
> >>
> >>>the  ear source to include the sar module.  Also , I noticed that 2 of
> >>
> >>the
> >>
> >>>source files do not have the proper Apache license header, so I fixed
> >>
> >>them.
> >>
> >>>Frank Mena
> >>>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > --
> > .::You're welcome ::.
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


M2 - Build Versioning

2005-12-16 Thread Karthik Manimaran
Hi,

With every build I do for my J2EE project, I want the version of all modules
to be automatically incremented. What is the best way of accomplishing this?
Also is there a way to increment the version numbers only for modules which
have had changes?

Thanks and regards,
Karthik.


Re: SureFire pertest setting not working correctly?

2005-12-16 Thread Matt Brozowski


On Dec 16, 2005, at 6:48 AM, Jason van Zyl wrote:


Hi,
I'm trying to use the surefire plugin version 2.1.1.  When I set  
forkMode to pertest, all of my test fail.  It looks like the setUp  
method in my JUnit test is not being called before the method is  
executed.  Am I doing something wrong?


I'll take a look but  a test zip would be helpful as I didn't have  
many testbeds for the pertest setup.




I have made a very simple test for this scenario and wrote a jira up  
for it.  Here is the link:


http://jira.codehaus.org/browse/MNG-1858

Matt

 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



Re: New SAR Plugin

2005-12-16 Thread Emmanuel Venisse

This patch doesn't create a sar file, it only add it in ear.

Emmanuel

Stephane Nicoll a écrit :

John,

Someone already did that, see MNG-1852. I just fixed it and this will be
available in the next maven ear plugin release (2.1)

Thanks,
Stéphane

On 12/16/05, John Casey <[EMAIL PROTECTED]> wrote:


First of all, thanks for the contribution!

Please file a JIRA issue against the ear plugin if you have not already
done so, and attach that patch. As for the SAR plugin, you should email
the [EMAIL PROTECTED] mailing list to see what kind of interest you
can drum up there. Our first preference would be to have jboss
themselves host (and maintain) the plugin, but if that's not feasible
and there is enough interest from the mojo project, we can set you up
there to become the maintainer for this plugin.

At any rate, start by mailing [EMAIL PROTECTED]

Thanks,

John

Frank Mena wrote:


I have written a sar plugin that builds a JBoss service sar.  It handles


the


.sar extension automatically because I have given it an artifactId of
maven-sar-plugin.  I would like to contribute it for inclusion into the
mavens plugin directory, if possible.  It has the Apache license and a
site.  How should I go about submitting it?

I have also modifed the ear plugin so it will also handle a


sarModule.  I


have the source of the sarModule and a patch file that has the changes


to


the  ear source to include the sar module.  Also , I noticed that 2 of


the


source files do not have the proper Apache license header, so I fixed


them.


Frank Mena



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






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




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



RE: [m2] javadoc report plugin not working with site goal

2005-12-16 Thread Mordo, Aviran (EXP N-NANNATEK)
Thank you 

-Original Message-
From: Yann Le Du [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 10:36 PM
To: Maven Users List
Subject: Re: [m2] javadoc report plugin not working with site goal

It does indeed exist and is corrected :
http://jira.codehaus.org/browse/MNG-1249

Correction will be available in maven-javadoc-plugin 2.0-beta-3 in a few
days.

2005/12/16, Allan Ramirez <[EMAIL PROTECTED]>:
>
> Please file a jira issue (unless already exists) 
> http://jira.codehaus.org/browse/MNG
>
> -allan
>
> Mordo, Aviran (EXP N-NANNATEK) wrote:
>
> >I have the maven-javadoc-plugin on my reports section. The problem is

> >when I run the site:site goal the index.html only contains the site's

> >menu and not the javadoc content. The rest of the files generated are

> >fine, but navigating from the project's site you can not see the 
> >javadocs, unless you edit the url to pint to index-all.html and not 
> >index.html.
> >
> >Any ideas?
> >
> >Below the generated index.html from the site goal
> >
> >
> >
> >
> > >"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >
> >  
> >
> >
> >  @import url("../css/maven-base.css");
> >  @import url("../css/maven-theme.css");
> >  @import url("../css/site.css");
> >
> > >media="print" />
> >
> >  
> >  
> >
> >  
> >
> >ERA core components
> >
> >
> >
> >
> >  
> >
> >
> >  Last Published: Wed Dec 14 16:17:20 EST 
> >2005
> >http://archives.gov";>ERA
core
> >components
> >  
> >  
> >
> >  
> >
> >  Project
> >Documentation
> >
> >
> >
> >  About ERA core components
> >
> >
> >
> >  Project Info
> >
> >
> >
> >
> >  Project Reports
> >  
> >
> >
> >  JavaDocs
> >
> >
> >
> >  Maven Surefire Report
> >
> >  
> >
> >  
> >  http://maven.apache.org/"; title="Built by Maven"
> >id="poweredBy">
> >   >src="../images/logos/maven-feather.png">
> >
> >
> >
> >  
> >
> >  
> >
> >
> >  
> >
> >
> >  ©
> >  2005
> >
> >  
> >  
> >
> >  
> >
> >  
> >
> >
> >
> >
> >-
> >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]
>
>


--
Yann

Veuillez noter ma nouvelle adresse / Please note my new address


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



Re: New SAR Plugin

2005-12-16 Thread Stephane Nicoll
John,

Someone already did that, see MNG-1852. I just fixed it and this will be
available in the next maven ear plugin release (2.1)

Thanks,
Stéphane

On 12/16/05, John Casey <[EMAIL PROTECTED]> wrote:
>
> First of all, thanks for the contribution!
>
> Please file a JIRA issue against the ear plugin if you have not already
> done so, and attach that patch. As for the SAR plugin, you should email
> the [EMAIL PROTECTED] mailing list to see what kind of interest you
> can drum up there. Our first preference would be to have jboss
> themselves host (and maintain) the plugin, but if that's not feasible
> and there is enough interest from the mojo project, we can set you up
> there to become the maintainer for this plugin.
>
> At any rate, start by mailing [EMAIL PROTECTED]
>
> Thanks,
>
> John
>
> Frank Mena wrote:
> > I have written a sar plugin that builds a JBoss service sar.  It handles
> the
> > .sar extension automatically because I have given it an artifactId of
> > maven-sar-plugin.  I would like to contribute it for inclusion into the
> > mavens plugin directory, if possible.  It has the Apache license and a
> > site.  How should I go about submitting it?
> >
> > I have also modifed the ear plugin so it will also handle a
> sarModule.  I
> > have the source of the sarModule and a patch file that has the changes
> to
> > the  ear source to include the sar module.  Also , I noticed that 2 of
> the
> > source files do not have the proper Apache license header, so I fixed
> them.
> >
> > Frank Mena
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


[m2] problem with new packaging

2005-12-16 Thread Chris Berry
Greetings,
I am trying to create my own packaging type (named "car" -- a "configuration
archive"). I need to do this so that I can find all dependencies of type
"car" in a project and process them specially. A car is really just a jar
that requires special processing. So I created a special Car Plugin that
contains the components.xml shown below.

Then I created another project named et-utils-conf that is of this packaging
type. I.e. car and, of course, depends on my new Car
Plugin.

But for some unknown reason my "car" packaging is making a ".car" file
instead of a ".jar" file. BTW, note that I use the jar plugin directly.

What I want is a jar file (so that I can use the maven UnArchiver code) --
but I want the type as "car" so that I can locate all CAR files in a
project's dependencies (using artifact.getType().equals( "car" ))

The following appears in the output when I run "mvn install" on
et-utils-conf, which seems pertinent...

[INFO] [install:install]
[INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
utils-conf-1.0-SNAPSHOT.jar to
C:\cberry\.m2\repository\et\et-utils-conf\1.0-SNAPSHOT\et-
utils-conf-1.0-SNAPSHOT.car

Do I have to setup the install somehow?? Seems that the CAR packaging should
do it??

Anyone see what I'm doing wrong??
Thanks,
-- Chris




  org.apache.maven.lifecycle.mapping.LifecycleMapping
  car
  
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
  

  
org.apache.maven.plugins:maven-resources-plugin:resources

  org.apache.maven.plugins:maven-jar-plugin:jar
  org.apache.maven.plugins:maven-install-plugin:install

  org.apache.maven.plugins:maven-deploy-plugin:deploy


  



  org.apache.maven.artifact.handler.ArtifactHandler
  car
  
org.apache.maven.artifact.handler.DefaultArtifactHandler
  
car
jar
jar
false
false
  


  



The full output::

[60] ~/work/etm2/jws/et-utils-conf$ mvn install
[INFO] Scanning for projects...
[INFO]

[INFO] Building ET Utils CAR
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [jar:jar]
[INFO] Building jar: c:\cberry\work\etm2\jws\et-utils-conf\target\et-
utils-conf-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing c:\cberry\work\etm2\jws\et-utils-conf\target\et-
utils-conf-1.0-SNAPSHOT.jar to C:\cberry\.m2\repository\et\et-utils-co
nf\1.0-SNAPSHOT\et-utils-conf-1.0-SNAPSHOT.car
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Dec 15 16:50:29 CST 2005
[INFO] Final Memory: 2M/5M
[INFO]

[61] ~/work/etm2/jws/et-utils-conf$


Re: How do I correct problems in repo1.maven.org?

2005-12-16 Thread Matt Brozowski
Details can be found here:  
http://maven.apache.org/guides/mini/guide-maven-evangelism.html


Matt
On Dec 16, 2005, at 9:58 AM, Justin Johnson wrote:

I'm guessing this is documented somewhere but I can't seem to find it.  
 I
noticed the following problems with packages on repo1.maven.org and  
would
like to have them corrected.  What is the procedure for doing so?   
Should I

submit an issue at http://jira.codehaus.org?

   1. At http://www.ibiblio.org/maven2/javax/sql/jdbc-stdext/2.0/
   jdbc-stdext-2.0-sources.jar[.md5|.sha1] should be renamed to
   jdbc-stdext-2.0.jar[.md5|.sha1].
   2. At http://www.ibiblio.org/maven2/mm-mysql/mm-mysql/2.0.13/
   mm-mysql-2.0.13-bin.jar[.md5|.sha1] should be renamed to
   mm-mysql-2.0.13.jar[.md5|.sha1].
   3. Jfreechart seems to be dependent on
   http://repo1.maven.org/maven2/gnujaxp/gnujaxp/1.0.0 which doesn't
   exist.

Thanks,
Justin

 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



Re: Exercise integration test

2005-12-16 Thread Massimo Lusetti
On 12/16/05, Massimo Lusetti <[EMAIL PROTECTED]> wrote:

> I something about class loading paths?

Written too ealry, sorry for the noise

--
Massimo
http://meridio.blogspot.com

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



How do I correct problems in repo1.maven.org?

2005-12-16 Thread Justin Johnson
I'm guessing this is documented somewhere but I can't seem to find it.  I
noticed the following problems with packages on repo1.maven.org and would
like to have them corrected.  What is the procedure for doing so?  Should I
submit an issue at http://jira.codehaus.org?

   1. At http://www.ibiblio.org/maven2/javax/sql/jdbc-stdext/2.0/
   jdbc-stdext-2.0-sources.jar[.md5|.sha1] should be renamed to
   jdbc-stdext-2.0.jar[.md5|.sha1].
   2. At http://www.ibiblio.org/maven2/mm-mysql/mm-mysql/2.0.13/
   mm-mysql-2.0.13-bin.jar[.md5|.sha1] should be renamed to
   mm-mysql-2.0.13.jar[.md5|.sha1].
   3. Jfreechart seems to be dependent on
   http://repo1.maven.org/maven2/gnujaxp/gnujaxp/1.0.0 which doesn't
   exist.

Thanks,
Justin


Re: Is it possible to make pom.xml simpler?

2005-12-16 Thread Matt Brozowski
+1 on this from me.  I have a very large project with a large number of  
dependencies and just the size of the file makes things more  
complicated than it could be.


Is seems to be that expressing having fewer characters that same  
exactly the same thing would make large files much simpler.


Matt
On Dec 14, 2005, at 8:06 PM, Matt Raible wrote:


After seeing what the Spring Developers have done to simplify Spring
context files, I can't help but think the same thing is possible for
Maven 2's pom.xml.  Is it possible to add namespaces and make
something like the following possible?

Before:


  springframework
  spring
  1.2.6


After:



Or just allow attributes to make things a bit cleaner?

version="1.2.6"/>


Allowing 1 line instead of 5-6 lines per dependency would allow me to
cut my dependencies listing from 140 lines of XML to 37 lines.  When
the Spring guys allows a couple of elements as attributes ( and
) - it made writing Spring context files *much* easier.

Here's an example of my simplified version:

  
scope="test"/>
version="2.0"/>



  

  


version="3.0.5">

  

  






  

  








version="1.2.6"/>


  


  

  

Of course, Ivy's syntax is even simpler, so maybe that'll provide some
motivation. ;-)






Matt

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

 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



RE: Assembly plugin triggers execution of all previous phases

2005-12-16 Thread John Allen
http://maven.apache.org/source-repository.html

-Original Message-
From: Nitko2 [mailto:[EMAIL PROTECTED] 
Sent: 16 December 2005 07:55
To: Maven Users List
Subject: Re: Assembly plugin triggers execution of all previous phases

Ok, is there a way to turn it off. If not, can you point me to the code
where I can turn it off. 
Then I'll copy it, name it decoupled-assembly and use it. This way I can use
assembly only in one 
phase which is executed after package. And I need to use it in two phases.


Thanks, Filip.





John Allen wrote:
> As I stated before it is different because the developers believe assembly
> is not something that should be performed as part of a normal build
> lifecycle. The argument regarding what defines the scope of a lifecycle is
> moot. 
> 
> Re assembly being part of package phase:
> 
>
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
> ml
> 
> 
> ps. I had the same observations (and criticisms) when first encountering
> this behaviour.
> 
> -Original Message-
> From: Nitko2 [mailto:[EMAIL PROTECTED] 
> Sent: 15 December 2005 08:06
> To: Maven Users List
> Subject: Re: Assembly plugin triggers execution of all previous phases
> 
> This doesn't make sense. If I remember correctly, assembly is a part od
> package phase in default 
> lifecycle. And why is assembly plugin behaviour different from all other
> plugins(coupled with 
> lifecycle phase)? In my opinion this breaks lifecycle main purpose.
> 
> 
> 
> 
> John Allen wrote:
> 
>>assembly plugin is differenct to other lifecycle cooperating plugins in 
>>as much as it invokes the package lifecyle before running. if you have 
>>configured assembly to be part of package phase itself you will loop 
>>forever.
>>
>>the idea is mvn assembly:assembly will do all the work of building an 
>>assembly, including the dependent package build.
>>package = gets you jars et al. frequent
>>assembly = gets you null soft installers, zips and tgzs. infrequent.
>>
>>- Original Message - From: "Nitko2" <[EMAIL PROTECTED]>
>>To: "Maven Users List" 
>>Sent: Wednesday, December 14, 2005 3:45 PM
>>Subject: Assembly plugin triggers execution of all previous phases
>>
>>
>>
>>>Hi!
>>>
>>>I created my components.xml with assembly plugin associated with 
>>>integration-test phase. I did so because association with package 
>>>phase caused infinite loop.
>>>
>>> 
>>>
> 
>
org.apache.maven.plugins:maven-assembly-plugin:2.0:assembl
> y 
> 
>>>
>>>
>>>This is pom.xml excerpt:
>>>
>>>
>>>maven-assembly-plugin
>>>
>>>   assembly/descriptor.xml
>>>   target/work/output
>>>   target/work
>>>
>>>
>>>
>>>
>>>When I start maven, integration-test phase causes all previous phases 
>>>to run again.
>>>
>>>Is this a bug? I suppose it is related to 
>>>http://jira.codehaus.org/browse/MNG-1831
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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


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



Re: XDoclet-Problem: This artifact has been relocated to javax.servlet:servlet-api:2.3

2005-12-16 Thread Matt Brozowski


On Dec 16, 2005, at 4:48 AM, Stefan Rademacher wrote:


Hello,

I am trying to get the xdoclet-maven-plugin 1.0-alpha-1 working. But a
"mvn package" ends up with the following error messages:



The alpha-1 version doesn't seem to work very will with maven 2.0 and  
later.  Try using alpha-2


Matt

 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



Re: Is it possible to make pom.xml simpler?

2005-12-16 Thread David Sag

+1 to that.

Kind regards,
Dave Sag 




  

Matt Raible <[EMAIL PROTECTED]> wrote on 15-12-2005
02:06:04:

> After seeing what the Spring Developers have done to simplify Spring
> context files, I can't help but think the same thing is possible for
> Maven 2's pom.xml.  Is it possible to add namespaces and make
> something like the following possible?
> 
> Before:
> 
>     
>       springframework
>       spring
>       1.2.6
>     
> 
> After:
> 
> 
> 
> Or just allow attributes to make things a bit cleaner?
> 
> 
> version="1.2.6"/>
> 
> Allowing 1 line instead of 5-6 lines per dependency would allow me
to
> cut my dependencies listing from 140 lines of XML to 37 lines.  When
> the Spring guys allows a couple of elements as attributes (
and
> ) - it made writing Spring context files *much* easier.
> 
> Here's an example of my simplified version:
> 
>   
>     
> scope="test"/>
>     
> version="2.0"/>
>     
> version="1.0.4"/>
>     
> version="1.0" scope="runtime">
>       
>         
>       
>     
>     
> version="1.0" scope="runtime"/>
>     
> version="3.0.5">
>       
>         
>       
>     
>     
> version="1.0.1B-rc4"/>
>     
> scope="test"/>
>     
> scope="test"/>
>     
> scope="test"/>
>     
> scope="test">
>       
>         
>       
>     
>     
>     
> version="8.1-404.jdbc3"/>
>     
> version="2.4" scope="provided"/>
>     
> version="1.1.2" scope="runtime"/>
>     
> version="1.1.2" scope="runtime"/>
>     
> version="2.2.1" scope="runtime"/>
>     
> artifactId="springmodules-validator" version="0.1"
scope="runtime"/>
>     
> version="1.2.6"/>
>     
> version="1.2.6" scope="test">
>       
>         
>         
>       
>     
>   
> 
> Of course, Ivy's syntax is even simpler, so maybe that'll provide
some
> motivation. ;-)
> 
>     
>         
>         
>     
> 
> Matt
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: SureFire pertest setting not working correctly?

2005-12-16 Thread Matt Brozowski


On Dec 16, 2005, at 6:48 AM, Jason van Zyl wrote:


John O. Hampton, Jr. wrote:

Hi,
I'm trying to use the surefire plugin version 2.1.1.  When I set  
forkMode to pertest, all of my test fail.  It looks like the setUp  
method in my JUnit test is not being called before the method is  
executed.  Am I doing something wrong?


I'll take a look but  a test zip would be helpful as I didn't have  
many testbeds for the pertest setup.


It appears to me that I am seeing the same thing I'll also work on  
creating a test zip.


Matt
 
___

Matt Brozowski, OpenNMS Maintainer  Main:   +1 919 812 4984
The OpenNMS Group, Inc. Fax:+1 503 
961 7746
Email: [EMAIL PROTECTED]URL:
http://www.opennms.com


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



Re: Surefires test order

2005-12-16 Thread David Sag

JUnit tests never run in a specific
order and you are stongly advised never to depend upon their execution
order.

if it worked for you at all that is
just a lucky fluke

Kind regards,
Dave Sag 




  

Jochen Wiedmann <[EMAIL PROTECTED]>
wrote on 13-12-2005 16:21:44:

> Hi,
> 
> I have a test suite that depends on a certain order of tests. More
> precisely, a unit test, which looks like
> 
>     public class MyTest extends TestCase {
>         public void testFoo(){ ... }
>         public void testBar(){ ... }
>     }
> 
> assumes, that testFoo() is invoked before testBar(). This works fine,
> when running the tests from within Ant, or Eclipse.
> 
> My impression is, that Surefire doesn't keep this order. Can anyone
> confirm this? I assume, that reordering the methods is intentional?
> However, if so, two questions arise to me:
> 
> - A reordering occurs, both for test classes (which are typically
executed in
>   alphabetical orders by other frameworks), and methods. However,
the reorder
>   doesn't look choosen randomly: It is reproducable.
> 
>   But if the desired effect is to stop the user from assuming
a
> certain order, why
>   isn't it random?
> 
> - Would it be possibly to accept a patch, which restores the typical
> order on the users
>   behalf (for example, by setting a property "canonicalOrder")?
The
> test suite isn't
>   written by me, and I am almost unable to change it.
> 
> 
> Thanks,
> 
> Jochen
> 
> 
> --
> Often it does seem a pity that Noah and his party did not miss the
> boat. (Mark Twain)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


antrun plugin in both parent and child run tasks twice

2005-12-16 Thread Martin van der Plas

Hi,

When I have a parent and child pom, and both have an antrun plugin 
entry, I notice that activated anttask run twice.

See attached poms and the output below.

My directory structure:
parent/
/pom.xml
/child
---/pom.xml



Is this behaviour intended? How should I change my poms?

Thanks

Martin


mvn test
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building child
[INFO]task-segment: [test]
[INFO] -
---
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] -
---
[INFO] BUILD SUCCESSFUL
[INFO] -
---


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";>
  4.0.0
  test
  parent
  parent
  pom
  1.0-SNAPSHOT

  
compile

  
org.apache.maven.plugins
maven-antrun-plugin


  
test1
generate-sources

  run


  

  

  

  
test2
clean

  run


  

  

  

  
test3
test-compile

  run


  

  

  


  


  


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";>
  4.0.0
  
  test
  parent
  1.0-SNAPSHOT
  ..
  

  test
  child
  child
  pom
  1.0-SNAPSHOT

  
compile

  
org.apache.maven.plugins
maven-antrun-plugin


  
childTest1
generate-sources

  run


  

  

  

  
childTest2
clean

  run


  

  

  

  
childTest3
test-compile

  run


  

  

  


  


  



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

Exercise integration test

2005-12-16 Thread Massimo Lusetti
Well i'm trying to exercise integration tests with maven2 and i'm not
able to load resources from property files.

I put my resources within src/test/resources and the end up in
target/test-classes correctly, for instance i got
src/test/resources/log4j.xml which goes into
target/test-classes/log4j.xml then i configure my logger as usual with
DOMConfigurator.configure(ClassLoader.getSystemResource("log4j.xml"));
but i got a NPE

I something about class loading paths?

Thanks
--
Massimo
http://meridio.blogspot.com

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



Re: Is it possible to make pom.xml simpler?

2005-12-16 Thread Matthew L Daniel
> Is it possible to add namespaces and make something like the following
> possible?

If I'm not mistaken, m2's pom does have namespaces. The root element is
in the 'http://maven.apache.org/POM/4.0.0' namespace. I'm not certain
how that impacts your real question, however.

> Allowing 1 line instead of 5-6 lines per dependency would allow me to
> cut my dependencies listing from 140 lines of XML to 37 lines.

If your sole concern is the number of lines one must type, it is
certainly an option to have meta-pom.xml be in the format you find most
comfortable, then xslt it into the "more verbose" m2 pom.xml.

This argument of attributes versus elements has existed since the dawn
of [xml] time. I am not trying to argue one way or the other, but since
m1 pom used the "more verbose" syntax, it eases the transition.

  My USD$0.02,
  -- /v\atthew

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



[m2] maven & svn command

2005-12-16 Thread Jurgen Lust

Hi,

I'm having trouble getting the maven release plugin to work with 
subversion. Apparently the maven SCM subversion provider does not use a 
java SVN client, whereas the CVS provider does.
I'm working on a windows platform with tortoiseSVN as my client. When I 
start the release:prepare goal, maven complains that it can't find the 
command 'svn'. Is there a way to make it use javasvn or something?


Jurgen

--
Among flowers, the cherry blossom.
Among men, me.


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

RE: RE : Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Cabasson Denis
This is known problem, issue have been adressed in JIRA:
http://jira.codehaus.org/browse/SUREFIRE-9

surefire has been fixed, not to take into account the locale (and thus no
special chars in the generated XML files).

guess we have to wait for a new build of the surefire plugin.

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 16 décembre 2005 09:38
À : 'Maven Users List'
Objet : RE : Problems with special characters in APT format (latin-1 and
copyright symbol)


But not for surefire report when log contains special characters.
I look at
http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
/java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
markup

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



RE: Problems with special characters in APT format (latin-1 and c opyright symbol)

2005-12-16 Thread Cabasson Denis
I have solved much of my encoding problems with:

  
org.apache.maven.plugins
maven-site-plugin

  UTF-8

  

in the build/plugins section of your POM. This way, the site is created
using UTF charset

Hope it helps.


Denis CABASSON


-Message d'origine-
De : Bruno Aranda [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 16 décembre 2005 09:25
À : Maven Users List
Objet : Re: Problems with special characters in APT format (latin-1 and
copyright symbol)


Nobody knows this? Has someone used accents in the apt format? Should
I try an alternative approach? thanks!

Bruno

2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi there,
>
> I am trying to just the APT format but I cannot output some special
> symbols using unicode, such as the copyritght and latin-1 special
> characters (accents). I am following the APT guide [1], but when using
> the copyright symbol I get this in the screen:
>
> Â(c)
>
> There is a strange character before the copyright. I've tried \251,
> \xA9, \u00a9 ... I have similar results for other unicode characters.
> Do I have to change the encoding somewhere? I am running a linux box.
>
> Regards,
>
> Bruno
>
> [1] http://maven.apache.org/guides/mini/guide-apt-format.html
>

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



Re: [m2] maven-ear-plugin: why is the includeInApplicationXml set to false by default ?

2005-12-16 Thread Stephane Nicoll
Yes, or the spec for J2EE 1.3. You should refer java application client
module only in this section. This should not be used for libraries.


The java element specifies the URI of a java application client
module, relative to the top level of the application package.


See also section 8.2 of the same document, page 133. It explains how to
refer to a library using the Class-Path entry of a manifest file.

Hope it helps,
Stéphane

On 12/16/05, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> Is this the spec you are reffering to?
> http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf
> What do you mean java modules should not be set in the application.xml
> isnt' this a valid module
> lib/antlr.jar
> ?
>
> Thanks,
> Srgjan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: [m2] axistools:wsdl2java

2005-12-16 Thread Nathan Sowatskey

Aha!

~/java nsowatsk$ svn checkout svn://svn.codehaus.org/mojo/scm/trunk/ 
mojo/mojo-sandbox/axistools-maven-plugin axistools-maven-plugin

Aaxistools-maven-plugin/src
...

Thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -  
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco - [EMAIL PROTECTED]


On 16 Dec 2005, at 14:48, Jesse McConnell wrote:

http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/axistools- 
maven-plugin


sorry, been out of touch for a few days getting over a bug.  I'll be
catching up on emails and bugfixes/releases over the course of the  
next day

or so work providing.

jesse

On 12/16/05, Nathan Sowatskey <[EMAIL PROTECTED]> wrote:


Hi

It must be me me, but I can't get at the svn repository for this:

svn checkout svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven-
plugin axistools-maven-plugin
svn: URL 'svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven-
plugin' doesn't exist

Nor does this plugin seem to be at:

http://www.ibiblio.org/maven2/org/codehaus/mojo/

Has anyone been able to use this one?

Many thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco -  
[EMAIL PROTECTED]


On 15 Dec 2005, at 06:55, Edwin Punzalan wrote:


This is what the axistools plugin author left as an example in svn:


  ...
 

   
  org.codehaus.mojo
  axistools-maven-plugin
  
 
 http://host/server/sample.wsdl
 http://host/server/sample2.wsdl
 
 com.company.wsdl
 true
 true
 true
  
  


  
wsdl2java
  

  
   

...
 
  ...


I got that info by checking out the source and looking into src/
site/apt/howto.apt.

Thanks, Jesse! ^_^



Nathan Sowatskey wrote:


http://mojo.codehaus.org/axistools-maven-plugin/index.html

Has anyone figured out how to use this plugin please?

I'd start with knowing what the group and artifact ID are if
anyone  knows.

Many thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco -
[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]





--
jesse mcconnell


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



Antw: Re: XDoclet-Problem: This artifact has been relocated to javax.servlet:servlet-api:2.3

2005-12-16 Thread Stefan Rademacher
Hello,

I found a workaround for the AbstractMethodError on
http://www.nabble.com/xdoclet-maven-plugin-%3E-maven2-t432992.html#a1186055
If anyone knows, if this is a better way to get the plugin to work, pls
let me know.

Regards,
Stefan

>>> [EMAIL PROTECTED] 16.12.2005 11:14 >>>
On 12/16/05, Stefan Rademacher <[EMAIL PROTECTED]> wrote:

>   This artifact has been relocated to javax.servlet:servlet-api:2.3.

That's not an error message. That's simply a warning. Most probably
you are still using the group ID servletapi, or something like that.
Change groupId, artifactId, and version as given in the warning and it
will immediately vanish.


> java.lang.AbstractMethodError

That's a completely different beast. Try using the "-X" flag, if you
can find any additional informations. It might be a bug in some
plugin.


Jochen


--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

-
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] axistools:wsdl2java

2005-12-16 Thread Jesse McConnell
http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/axistools-maven-plugin

sorry, been out of touch for a few days getting over a bug.  I'll be
catching up on emails and bugfixes/releases over the course of the next day
or so work providing.

jesse

On 12/16/05, Nathan Sowatskey <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> It must be me me, but I can't get at the svn repository for this:
>
> svn checkout svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven-
> plugin axistools-maven-plugin
> svn: URL 'svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven-
> plugin' doesn't exist
>
> Nor does this plugin seem to be at:
>
> http://www.ibiblio.org/maven2/org/codehaus/mojo/
>
> Has anyone been able to use this one?
>
> Many thanks
>
> Nathan
>
> Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
> +34-638-083-675, +34-91-201-2139 - AIM NathanCisco - [EMAIL PROTECTED]
>
> On 15 Dec 2005, at 06:55, Edwin Punzalan wrote:
>
> > This is what the axistools plugin author left as an example in svn:
> >
> > 
> >   ...
> >  
> > 
> >
> >   org.codehaus.mojo
> >   axistools-maven-plugin
> >   
> >  
> >  http://host/server/sample.wsdl
> >  http://host/server/sample2.wsdl
> >  
> >  com.company.wsdl
> >  true
> >  true
> >  true
> >   
> >   
> > 
> >
> >   
> > wsdl2java
> >   
> > 
> >   
> >
> > 
> > ...
> >  
> >   ...
> > 
> >
> > I got that info by checking out the source and looking into src/
> > site/apt/howto.apt.
> >
> > Thanks, Jesse! ^_^
> >
> >
> >
> > Nathan Sowatskey wrote:
> >
> >> http://mojo.codehaus.org/axistools-maven-plugin/index.html
> >>
> >> Has anyone figured out how to use this plugin please?
> >>
> >> I'd start with knowing what the group and artifact ID are if
> >> anyone  knows.
> >>
> >> Many thanks
> >>
> >> Nathan
> >>
> >> Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -
> >> +34-638-083-675, +34-91-201-2139 - AIM NathanCisco -
> >> [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]
>
>


--
jesse mcconnell


Re: [m2] axistools:wsdl2java

2005-12-16 Thread Nathan Sowatskey

Hi

It must be me me, but I can't get at the svn repository for this:

svn checkout svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven- 
plugin axistools-maven-plugin
svn: URL 'svn://svn.codehaus.org/mojo/scm/trunk/axistools-maven- 
plugin' doesn't exist


Nor does this plugin seem to be at:

http://www.ibiblio.org/maven2/org/codehaus/mojo/

Has anyone been able to use this one?

Many thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -  
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco - [EMAIL PROTECTED]


On 15 Dec 2005, at 06:55, Edwin Punzalan wrote:


This is what the axistools plugin author left as an example in svn:


  ...
 

   
  org.codehaus.mojo
  axistools-maven-plugin
  
 
 http://host/server/sample.wsdl
 http://host/server/sample2.wsdl
 
 com.company.wsdl
 true
 true
 true
  
  


  
wsdl2java
  

  
   

...
 
  ...


I got that info by checking out the source and looking into src/ 
site/apt/howto.apt.


Thanks, Jesse! ^_^



Nathan Sowatskey wrote:


http://mojo.codehaus.org/axistools-maven-plugin/index.html

Has anyone figured out how to use this plugin please?

I'd start with knowing what the group and artifact ID are if  
anyone  knows.


Many thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -   
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco -  
[EMAIL PROTECTED]


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



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


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



Re: [m2] maven-ear-plugin: why is the includeInApplicationXml set to false by default ?

2005-12-16 Thread Srepfler Srgjan

Stephane Nicoll wrote:


Hello,

This is the expected behavior. Java modules should not be set in the
application.xml (see the spec). Instead you should refer them in the
Class-Path entry of the manifest file. However, if you want to include it in
the application.xml anyway, you can set this property to true.

Hope it helps,
Stéphane

 


Hi,
Is this the spec you are reffering to? 
http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf

What do you mean java modules should not be set in the application.xml
isnt' this a valid module
lib/antlr.jar
?

Thanks,
Srgjan

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



RE: [m2] WebApp Directory Layout

2005-12-16 Thread Frank Russo
I have a webapp myself, but did it differently. 
 
I followed the web app mini guide link provided in other responses to this 
thread. Here is my structure:

src\main\webapp   contains some public html files.
src\main\webapp\css   
src\main\webapp\images
src\main\webapp\js
src\main\webapp\META-INF  
src\main\webapp\WEB-INF   

Properties files I have in src\resources. The package command puts them 
automatically into WEB-INF\classes in the final war file.
 
Hope this helps...
Frank Russo
Senior Developer
FX Alliance, LLC


> -Original Message-
> From: Keisuke Matsubara [mailto:[EMAIL PROTECTED]  ]
> Sent: Friday, December 16, 2005 2:45 AM
> To: Maven Users List
> Subject: Re: [m2] WebApp Directory Layout
>
>
> Hi, Green
>
> No,
> WEB-INF/classes is used mainly for .class files.
> Properties files can be included too , if you want.
>
> When your directory are following, you will find both class
> files and properties files in WEB-INF/classes .
>
>  src/main/java/**/*.java
>  src/main/resources/**/*.properties
>
> Thanks,
> Keisuke
>
> Law Green-A20134 wrote:
> > Thank you, Keisuke
> >
> > In your solution, I suppose WEB-INF/classes is used for
> > properties files instead of .class files, right?
> >
> > Regards,
> > Green
> >
> > -Original Message-
> > From: Keisuke Matsubara [mailto:[EMAIL PROTECTED]  > PROTECTED]> ]
> > Sent: 2005年12月16日 12:32
> > To: Maven Users List
> > Subject: Re: [m2] WebApp Directory Layout
> >
> > Hi, Green
> >
> > I fond following rules.
> >
> > src/main/resources
> >   -->WEB-INF/classes in war file
> >
> > src/main/webapp/
> >   --> in war file
> >
> > Thanks,
> > Keisuke
> >
> > Law Green-A20134 wrote:
> >
> >>Hi,
> >>
> >>I am trying to use M2 for webapp (plain Servlet+velocity
> application)
> >>development. Is there any suggestion for the directory layout?
> >>
> >>Also I found the recommended directory layout page on the
> maven site:
> >> 
> >>src/main/javaApplication/Library sources   
> >>src/main/resources   Application/Library resources 
> >>src/main/filters Resource filter files 
> >>src/main/assemblyAssembly descriptors  
> >>src/main/config  Configuration files   
> >>src/test/javaTest sources  
> >>src/test/resources   Test resources
> >>src/test/filters Test resource filter files
> >>src/site Site  
> >>LICENSE.txt  Project's license 
> >>README.txt   Project's readme  
> >>
> >>Does the "src/site" designed for webapp site or for the site of the
> >>project itself?
> >>
> >>Another question is where to put script files and other
> exec files in
> >>the recommended directory layout? Should I put em inside
> >>src/main/resources?
> >>
> >>Thanks in advance,
> >>Green
> >>
> >>
> >
> >
> >
> -
> > 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]
>
> 



Dependency in Maven2

2005-12-16 Thread Muri Josef \(KCDA 12\)
Hi all,

Is there any mechanism in m2 so I can reference dependencies that do not
match the pattern -.jar
I have quite a few jars that follow the conventions
_.jar.

Within Maven 1 I could define it in the  tag. I could not do so in
Maven2.


  mygroup
  Update_1_classes
  Update_1_classes.jar
  jar



thanx
josef





Why no assembly in the lifecycle

2005-12-16 Thread Scokart Gilles
I have tried to use the assembly plugin in order to build a distributable
file.  I had some difficulties to use it, and I wonder if it's not because
this plug-in is rather different than the other one.

 

I wonder if it would not be simpler to have this plugin part of the
lifecycle?  I would expect that to be after install, maybe after or before
deploy (or as an alternative to deploy).

 

I think the realisation of a distributable package is a rather recurrent
problem, and having it into the lifecycle would be normal.  Moreover, I
guess that a lot of different plugging could be bound to such a phase (ex:
plugins building an rpm, an MSI, a debian package, ...)

 

Has this idea already been investigated?  I guess yes.  But what was the
conclusion.

 

Thanks,

 

SCOKART Gilles

 

 



Re: [m2] ear plugin: jar does not get added to application xml (as java module)

2005-12-16 Thread Stephane Nicoll
Hello,

I've answered you in the separate threads you have created.

Hope it helps,
Stephane

On 12/15/05, Dário Luís Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
>
> Hi Edwin,
>
> I´ve read this guide before, however it focus on customization only.
> According to the ear plugin, the descriptor deployment (application.xml)
> is generated automatically and by doing so the plugin should add into it all
> the dependencies as java, ejb and/or web modules. That´s not happening for
> jar artifacts though. Besides it´s not viable to manually add all jars
> (transitive dependencies) in the customization section as java modules.
>
> Regards,
> Dário
>
> -Original Message-
> From: Edwin Punzalan [mailto:[EMAIL PROTECTED]
> Sent: quinta-feira, 15 de dezembro de 2005 01:14
> To: Maven Users List
> Subject: Re: [m2] ear plugin: jar does not get added to application xml
> (as java module)
>
>
>
> The ejb plugin has configuration elements for the application.xml.
> Please see: http://maven.apache.org/plugins/maven-ear-plugin/howto.html
>
>
> Dário Luís Coneglian Oliveros wrote:
>
> >Hi,
> >
> >I´ve been trying to create an EAR that contains a JAR, an EJB JAR
> (depends on JAR) and a WAR, however only EJB JAR and WAR gets added to the
> application.xml as ejb and web modules respectively. The JAR is not added
> at all. This used to work in Maven 1. How can I have an entry of JAR in the
> application.xml as a java module ? Do I need to add it manually ?
> >I´ve noticed that all dependency jars are added to the EAR (depending on
> the scope), but they are not present in the application.xml as java
> modules. Should I report a bug or this is an expected behaviour ?
> >
> >Please find below my POM:
> >
> >
> >   4.0.0
> >   com.mycompany.sample
> >   sample-ear
> >   ear
> >   1.0-SNAPSHOT
> >   
> >  
> > com.mycompany.sample
> > sample-java
> > 1.0-SNAPSHOT
> >  
> > 
> >   com.mycompany.sample
> >   sample-ejb
> >   1.0-SNAPSHOT
> >   ejb
> > 
> > 
> >   com.mycompany.sample
> >   sample-web
> >   1.0-SNAPSHOT
> >   war
> > 
> >  
> >   
> >  
> > 
> >   org.apache.maven.plugins
> >   maven-ear-plugin
> > 
> >  
> >   
> >
> >
> >application.xml
> >--
> >
> >  sample-ear
> >  
> >sample-ejb-1.0-SNAPSHOT.jar
> >  
> >  
> >
> >  sample-web-1.0-SNAPSHOT.war
> >  /sample-web
> >
> >  
> >
> >
> >Any clues ? I am not sure if that´s the right way to create an EAR.
> >I would appreciate any help.
> >
> >Thanks in advance,
> >Dário
> >
> >
> >
> >
> >
> >
> >
> >-
> >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]
>
>


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


Re: [m2] maven-ear-plugin: why is the includeInApplicationXml set to false by default ?

2005-12-16 Thread Stephane Nicoll
Hello,

This is the expected behavior. Java modules should not be set in the
application.xml (see the spec). Instead you should refer them in the
Class-Path entry of the manifest file. However, if you want to include it in
the application.xml anyway, you can set this property to true.

Hope it helps,
Stéphane

On 12/15/05, Dário Luís Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> I´ve been looking at the maven-ear-plugin and noticed the
> 'includeInApplicationXml' instance variable of JavaModule class is set to
> false by default. However, when using this plugin the jar artifacts are
> never placed as entries in the application.xml unless you specify them in
> the configuration section as java modules, which could be hard to do because
> of the transitive dependencies (please refer to thread '[m2] ear plugin: jar
> does not get added to application xml ...')
> Is this a bug or an expected behaviour ?
>
> Thanks in advance,
> Dário
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Antw: Re: XDoclet-Problem: This artifact has been relocated to javax.servlet:servlet-api:2.3

2005-12-16 Thread Stefan Rademacher
Hello,

thank you, Jochen. I solved the first issue. After changing the depency
of the xdoclet-maven-plugin to the servlet-api in its pom-file, the
warning disappeared.

Best regards,
Stefan


>>> [EMAIL PROTECTED] 16.12.2005 11:14 >>>
On 12/16/05, Stefan Rademacher <[EMAIL PROTECTED]> wrote:

>   This artifact has been relocated to javax.servlet:servlet-api:2.3.

That's not an error message. That's simply a warning. Most probably
you are still using the group ID servletapi, or something like that.
Change groupId, artifactId, and version as given in the warning and it
will immediately vanish.


> java.lang.AbstractMethodError

That's a completely different beast. Try using the "-X" flag, if you
can find any additional informations. It might be a bug in some
plugin.


Jochen


--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

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


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



How to write ant mojo with maven 2.0.1

2005-12-16 Thread Scokart Gilles
I have read on the announcement that should be available on the new version
(but I don't see it in the release note).

 

How can we do that?

 

 

SCOKART Gilles, 

 



Re: RE : RE : Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Bruno Aranda
I can confirm that it works on Linux (FC3) and without having to set
the LANG environment variable (which currently is 'es_ES.UTF-8').

Thanks,

Bruno

2005/12/16, Olivier Lamy <[EMAIL PROTECTED]>:
> I have added this workaround in :
> http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-Handlespecialcharac
> tersinsite
>
> It could be adding in
> http://maven.apache.org/guides/mini/guide-site.html (to help
> french/others guys how use specials characters). (let me know if you
> want a patch on it ?)
>
> I have tested this solution on a solaris machine and on a windows/cygwin
> and it's ok.
> Probably It works too for others *n*x systems.
>
> - Olivier
>
> -Message d'origine-
> De : Olivier Lamy [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 16 décembre 2005 09:38
> À : 'Maven Users List'
> Objet : RE : Problems with special characters in APT format (latin-1 and
> copyright symbol)
>
>
> Hi,
> I have try some workarounds and I have fine one to correctly display
> specials characters (french accents).
>
> In my eclipse.ini :
> Adding -Dfile.encoding=ISO-8859-1
>
> If using xmlbuddy with eclipse to edit xdoc files set the encoding
> Honor encoding
> Default to ISO-8859-1
>
> Configuration in pom
>   
> org.apache.maven.plugins
> maven-site-plugin
> 
>   UTF-8
> 
>   
>
> On the solaris machine
> In $HOME/.profile
> MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not
> mandatory for m2 but for m1). LANG=en_US.ISO8859-15
>
> And surprise it's fine ;-))
>
> But not for surefire report when log contains special characters. I look
> at
> http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
> /java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
> markup
>
> And I see (I'm not really sure if this is using) : writer.write(" version=\"1.0\" encoding=\"UTF-8\" ?>\n");
>
> Could it be in the configuration or using something like
> http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/Strin
> gEscapeUtils.html#escapeXml(java.lang.String)
>
> Because as I see, the following is not probably not enough : message =
> StringUtils.replace( report.getThrowable().getMessage(), "<", "<" );
> message = StringUtils.replace( message, ">", ">" ); message =
> StringUtils.replace( message, "\"", """ );
>
>
> - Olivier
>
> -Message d'origine-
> De : Bruno Aranda [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 16 décembre 2005 09:25
> À : Maven Users List
> Objet : Re: Problems with special characters in APT format (latin-1 and
> copyright symbol)
>
>
> Nobody knows this? Has someone used accents in the apt format? Should I
> try an alternative approach? thanks!
>
> Bruno
>
> 2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> > Hi there,
> >
> > I am trying to just the APT format but I cannot output some special
> > symbols using unicode, such as the copyritght and latin-1 special
> > characters (accents). I am following the APT guide [1], but when using
>
> > the copyright symbol I get this in the screen:
> >
> > Â(c)
> >
> > There is a strange character before the copyright. I've tried \251,
> > \xA9, \u00a9 ... I have similar results for other unicode characters.
> > Do I have to change the encoding somewhere? I am running a linux box.
> >
> > Regards,
> >
> > Bruno
> >
> > [1] http://maven.apache.org/guides/mini/guide-apt-format.html
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> This e-mail, any attachments and the information contained therein
> ("this message") are confidential and intended solely for the use of the
> addressee(s). If you have received this message in error please send it
> back to the sender and delete it. Unauthorized publication, use,
> dissemination or disclosure of this message, either in whole or in part
> is strictly prohibited.
> **
> Ce message électronique et tous les fichiers joints ainsi que  les
> informations contenues dans ce message ( ci après "le message" ), sont
> confidentiels et destinés exclusivement à l'usage de la  personne à
> laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
> merci  de le renvoyer à son émetteur et de le détruire. Toutes
> diffusion, publication, totale ou partielle ou divulgation sous quelque
> forme que se soit non expressément autorisées de ce message, sont
> interdites.
> **
>
>
> -
> 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 : Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Olivier Lamy
I have added this workaround in :
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-Handlespecialcharac
tersinsite

It could be adding in
http://maven.apache.org/guides/mini/guide-site.html (to help
french/others guys how use specials characters). (let me know if you
want a patch on it ?)

I have tested this solution on a solaris machine and on a windows/cygwin
and it's ok.
Probably It works too for others *n*x systems.

- Olivier

-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 16 décembre 2005 09:38
À : 'Maven Users List'
Objet : RE : Problems with special characters in APT format (latin-1 and
copyright symbol)


Hi,
I have try some workarounds and I have fine one to correctly display
specials characters (french accents).

In my eclipse.ini :
Adding -Dfile.encoding=ISO-8859-1

If using xmlbuddy with eclipse to edit xdoc files set the encoding 
Honor encoding
Default to ISO-8859-1

Configuration in pom
  
org.apache.maven.plugins
maven-site-plugin

  UTF-8



On the solaris machine
In $HOME/.profile
MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not
mandatory for m2 but for m1). LANG=en_US.ISO8859-15

And surprise it's fine ;-))

But not for surefire report when log contains special characters. I look
at
http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
/java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
markup

And I see (I'm not really sure if this is using) : writer.write("\n");

Could it be in the configuration or using something like 
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/Strin
gEscapeUtils.html#escapeXml(java.lang.String)

Because as I see, the following is not probably not enough : message =
StringUtils.replace( report.getThrowable().getMessage(), "<", "<" );
message = StringUtils.replace( message, ">", ">" ); message =
StringUtils.replace( message, "\"", """ );


- Olivier

-Message d'origine-
De : Bruno Aranda [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 16 décembre 2005 09:25
À : Maven Users List
Objet : Re: Problems with special characters in APT format (latin-1 and
copyright symbol)


Nobody knows this? Has someone used accents in the apt format? Should I
try an alternative approach? thanks!

Bruno

2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi there,
>
> I am trying to just the APT format but I cannot output some special 
> symbols using unicode, such as the copyritght and latin-1 special 
> characters (accents). I am following the APT guide [1], but when using

> the copyright symbol I get this in the screen:
>
> Â(c)
>
> There is a strange character before the copyright. I've tried \251, 
> \xA9, \u00a9 ... I have similar results for other unicode characters. 
> Do I have to change the encoding somewhere? I am running a linux box.
>
> Regards,
>
> Bruno
>
> [1] http://maven.apache.org/guides/mini/guide-apt-format.html
>

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



This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après "le message" ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à
laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci  de le renvoyer à son émetteur et de le détruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressément autorisées de ce message, sont
interdites.
** 


-
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] Automatic links to source xref

2005-12-16 Thread Giles, Nick
In Maven 1 several plugins used to automatically link to the generated
source pages, plugins like PMD or Checkstyle, possibly even the unit
test plugin, I'm a little hazy. So far, I can't find a way of enabling
this for any of those three plugins. Does anyone know if this is
currently possible, a planned feature, or a rejected feature? I'll go
post an issue to JIRA if no-one knows.

Cheers,

Nick
 
 
   This message may contain privileged and/or confidential information. If 
you have received this e-mail in error or are not the intended recipient, you 
may not use, copy, disseminate or distribute it; do not open any attachments, 
delete it immediately from your system and notify the sender promptly by e-mail 
that you have done so. Thank You.

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



RE: New SAR Plugin

2005-12-16 Thread Peschier J. (Jeroen)

Many thanks for implementing this! I look forward to using it. Do you
have a public repo I can download your plugin from? Maybe I'm just
impatient... :)
Keep up the good work!


-Oorspronkelijk bericht-
Van: Frank Mena [mailto:[EMAIL PROTECTED] 
Verzonden: vrijdag 16 december 2005 1:57
Aan: Maven Users List
Onderwerp: New SAR Plugin

I have written a sar plugin that builds a JBoss service sar.  It handles
the
.sar extension automatically because I have given it an artifactId of
maven-sar-plugin.  I would like to contribute it for inclusion into the
mavens plugin directory, if possible.  It has the Apache license and a
site.  How should I go about submitting it?

I have also modifed the ear plugin so it will also handle a sarModule.
I
have the source of the sarModule and a patch file that has the changes
to
the  ear source to include the sar module.  Also , I noticed that 2 of
the
source files do not have the proper Apache license header, so I fixed
them.

Frank Mena


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



Re: XDoclet-Problem: This artifact has been relocated to javax.servlet:servlet-api:2.3

2005-12-16 Thread Jochen Wiedmann
On 12/16/05, Stefan Rademacher <[EMAIL PROTECTED]> wrote:

>   This artifact has been relocated to javax.servlet:servlet-api:2.3.

That's not an error message. That's simply a warning. Most probably
you are still using the group ID servletapi, or something like that.
Change groupId, artifactId, and version as given in the warning and it
will immediately vanish.


> java.lang.AbstractMethodError

That's a completely different beast. Try using the "-X" flag, if you
can find any additional informations. It might be a bug in some
plugin.


Jochen


--
Often it does seem a pity that Noah and his party did not miss the
boat. (Mark Twain)

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



XDoclet-Problem: This artifact has been relocated to javax.servlet:servlet-api:2.3

2005-12-16 Thread Stefan Rademacher
Hello,

I am trying to get the xdoclet-maven-plugin 1.0-alpha-1 working. But a
"mvn package" ends up with the following error messages:

-
...
[INFO] Building hhla.smd.bl
[INFO]task-segment: [package]
[INFO]

[INFO] snapshot de.hhla.smd:hhla.smd.provider:1.0-beta-1-SNAPSHOT:
checking for updates from mavenrepo
[WARNING]
  This artifact has been relocated to javax.servlet:servlet-api:2.3.


[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.AbstractMethodError
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWi
thFieldsConverter.java:137)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.jav
a:56)
at
org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1038)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:563)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:377)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 17 seconds
[INFO] Finished at: Fri Dec 16 09:42:25 CET 2005
[INFO] Final Memory: 5M/10M
[INFO]


---


I already resolved one error, that came up because of a wrong
dependency to the commons-logging.
I don't understand the message "This artifact has been relocated to
javax.servlet:servlet-api:2.3.". Where is the origin of this error? Here
is the xml of the xdoclet plugin in my pom:

---

generate-sources

xdoclet


















  

propoer Jelly doc + samples

2005-12-16 Thread Michael Niemaz

Hi all,
  I'm looking for pointers to jelly documentation and samples, a part 
from the tab libraries documentation on maven.
I'm kinda struggling to write scripts so I thought there would a place 
somewhere that would help me.


thanx,

--mike

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



[m2] NTLM proxy setting

2005-12-16 Thread Law Green-A20134
Hi,
 
I am behind NTLM proxy. Although I managed to make it possible to access
central repository with the special version of maven-proxy provided by
Daniel Beland [EMAIL PROTECTED], I am blocked by "[INFO] Can't read
the url [http://www.apache.org/licenses/LICENSE-2.0.txt] :
www.apache.org  " error when I invoke site:site
task against m2 project.
 
I found one clue from
http://maven.apache.org/guides/mini/guide-proxies.html
 : " Please note
that urrently NTLM proxies are not supported as they have not been
tested. You may be able to use the relevant system properties on JDK
1.4+ to make this work.". Can anyone tell me how to use "relevant system
properties on JDK 1.4+ to make It work"?
 
Thanks,
Green


Re: RE : Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Bruno Aranda
Thanks Olivier, that worked!

Bruno

2005/12/16, Olivier Lamy <[EMAIL PROTECTED]>:
> Hi,
> I have try some workarounds and I have fine one to correctly display
> specials characters (french accents).
>
> In my eclipse.ini :
> Adding -Dfile.encoding=ISO-8859-1
>
> If using xmlbuddy with eclipse to edit xdoc files set the encoding
> Honor encoding
> Default to ISO-8859-1
>
> Configuration in pom
>   
> org.apache.maven.plugins
> maven-site-plugin
> 
>   UTF-8
> 
>   
>
> On the solaris machine
> In $HOME/.profile
> MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not
> mandatory for m2 but for m1).
> LANG=en_US.ISO8859-15
>
> And surprise it's fine ;-))
>
> But not for surefire report when log contains special characters.
> I look at
> http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
> /java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
> markup
>
> And I see (I'm not really sure if this is using) :
> writer.write("\n");
>
> Could it be in the configuration or using something like
> http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/Strin
> gEscapeUtils.html#escapeXml(java.lang.String)
>
> Because as I see, the following is not probably not enough :
> message = StringUtils.replace( report.getThrowable().getMessage(), "<",
> "<" );
> message = StringUtils.replace( message, ">", ">" );
> message = StringUtils.replace( message, "\"", """ );
>
>
> - Olivier
>
> -Message d'origine-
> De : Bruno Aranda [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 16 décembre 2005 09:25
> À : Maven Users List
> Objet : Re: Problems with special characters in APT format (latin-1 and
> copyright symbol)
>
>
> Nobody knows this? Has someone used accents in the apt format? Should I
> try an alternative approach? thanks!
>
> Bruno
>
> 2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> > Hi there,
> >
> > I am trying to just the APT format but I cannot output some special
> > symbols using unicode, such as the copyritght and latin-1 special
> > characters (accents). I am following the APT guide [1], but when using
>
> > the copyright symbol I get this in the screen:
> >
> > Â(c)
> >
> > There is a strange character before the copyright. I've tried \251,
> > \xA9, \u00a9 ... I have similar results for other unicode characters.
> > Do I have to change the encoding somewhere? I am running a linux box.
> >
> > Regards,
> >
> > Bruno
> >
> > [1] http://maven.apache.org/guides/mini/guide-apt-format.html
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> This e-mail, any attachments and the information contained therein ("this 
> message") are confidential and intended solely for the use of the 
> addressee(s). If you have received this message in error please send it back 
> to the sender and delete it. Unauthorized publication, use, dissemination or 
> disclosure of this message, either in whole or in part is strictly prohibited.
> **
> Ce message électronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci après "le message" ), sont 
> confidentiels et destinés exclusivement à l'usage de la  personne à laquelle 
> ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le 
> renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, 
> totale ou partielle ou divulgation sous quelque forme que se soit non 
> expressément autorisées de ce message, sont interdites.
> **
>
>
> -
> 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: Is it possible to make pom.xml simpler?

2005-12-16 Thread Jörg Schaible
Hi Carlos,

Carlos Sanchez wrote on Thursday, December 15, 2005 10:35 PM:

> If you have such a big pom, think that you're doing something wrong.
> You have extension and transitive dependencies, if you use them in the
> right way your pom won't grow without control

We use one master POM for dependency consistency with a already quite large 
depednencyManagement section. And I converted just about 10% of our Maven 1 
builds. If I add all those exclusions, that I have sometimes to make for a 
single dependency, this is really more than verbose. Alone for xfire-core I 
have 38 lines!

- Jörg

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



Re: [m2] Adding surefire-report => Infinite loop

2005-12-16 Thread Allan Ramirez
I cant replicate this issue. It is working in my copy. Can you paste the 
log with -X arguement?


-allan

Sri Sankaran wrote:


I wanted to run the surefire-report:report goal as part of the test phase.  So, 
I add the following to my pom


   
   org.codehaus.mojo
   surefire-report-maven-plugin
   2.0-beta-1
   
   
   test
   report
   
   
   


This results in an infinite loop of the test:test goal.

What am I doing wrong?

Sri

-
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: Maven Plug-in for Eclipse

2005-12-16 Thread Miks Rozenbergs

Patrick Kimber wrote:

I have subscribed within the last hour using the address:
[EMAIL PROTECTED]


I'm still getting an error. Below is a failure message received from 
[EMAIL PROTECTED] Note that this failure message tells that 
mailbox [EMAIL PROTECTED] doesn't exist, even though my 
subscription e-mail was addressed to [EMAIL PROTECTED]


Regards,
Miks
===
Hi. This is the qmail-send program at codehaus.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 26976 invoked from network); 16 Dec 2005 08:44:33 -
Received: from pnew.exigengroup.lv (80.233.156.204)
  by codehaus.org with SMTP; 16 Dec 2005 08:44:33 -
Received: from lnrixm01.exigengroup.lv (lnrixm01.exigengroup.lv 
[192.168.0.115])

 by pnew.exigengroup.lv (X.VV.Z/X.VV.Z) with ESMTP id 
jBG8gxOA000683
		 for <[EMAIL PROTECTED]>; Fri, 16 Dec 2005 
10:42:59 +0200

Received: from [192.168.2.126] ([192.168.2.126])
  by lnrixm01.exigengroup.lv (Lotus Domino Release 6.5.4)
  with ESMTP id 2005121610425661-83779 ;
  Fri, 16 Dec 2005 10:42:56 +0200
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 16 Dec 2005 10:42:57 +0200
From: Miks Rozenbergs <[EMAIL PROTECTED]>
User-Agent: Thunderbird 1.5 (Windows/20051025)
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: (no subject)
X-MIMETrack: Itemize by SMTP Server on LNRIXM01/Eur/Srv/Exigen(Release 
6.5.4|March 27, 2005) at

 12/16/2005 10:42:56 AM,
		 Serialize by Router on LNRIXM01/Eur/Srv/Exigen(Release 6.5.4|March 
27, 2005) at

 12/16/2005 10:42:58 AM,
 Serialize complete at 12/16/2005 10:42:58 AM
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


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



RE : Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Olivier Lamy
Hi,
I have try some workarounds and I have fine one to correctly display
specials characters (french accents).

In my eclipse.ini :
Adding -Dfile.encoding=ISO-8859-1

If using xmlbuddy with eclipse to edit xdoc files set the encoding 
Honor encoding
Default to ISO-8859-1

Configuration in pom
  
org.apache.maven.plugins
maven-site-plugin

  UTF-8



On the solaris machine
In $HOME/.profile
MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not
mandatory for m2 but for m1).
LANG=en_US.ISO8859-15

And surprise it's fine ;-))

But not for surefire report when log contains special characters.
I look at
http://svn.apache.org/viewcvs.cgi/maven/surefire/trunk/surefire/src/main
/java/org/apache/maven/surefire/report/XMLReporter.java?rev=353853&view=
markup

And I see (I'm not really sure if this is using) :
writer.write("\n");

Could it be in the configuration or using something like 
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/Strin
gEscapeUtils.html#escapeXml(java.lang.String)

Because as I see, the following is not probably not enough :
message = StringUtils.replace( report.getThrowable().getMessage(), "<",
"<" );
message = StringUtils.replace( message, ">", ">" );
message = StringUtils.replace( message, "\"", """ );


- Olivier

-Message d'origine-
De : Bruno Aranda [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 16 décembre 2005 09:25
À : Maven Users List
Objet : Re: Problems with special characters in APT format (latin-1 and
copyright symbol)


Nobody knows this? Has someone used accents in the apt format? Should I
try an alternative approach? thanks!

Bruno

2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi there,
>
> I am trying to just the APT format but I cannot output some special
> symbols using unicode, such as the copyritght and latin-1 special 
> characters (accents). I am following the APT guide [1], but when using

> the copyright symbol I get this in the screen:
>
> Â(c)
>
> There is a strange character before the copyright. I've tried \251,
> \xA9, \u00a9 ... I have similar results for other unicode characters. 
> Do I have to change the encoding somewhere? I am running a linux box.
>
> Regards,
>
> Bruno
>
> [1] http://maven.apache.org/guides/mini/guide-apt-format.html
>

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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



Re: How is the build declared as a sucess?

2005-12-16 Thread dan tran
http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build

On 12/16/05, Zabil <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>I am using continuum with perforce (thanks to the new jar). I was
> what the mechasim is for the build to be labelled a success.
>Earlier I was using Cruise Control. Here when the ant file returns
> the status as "BUILD FAILED" the build is marked as failed in the
>web interface.
>I am attaching a screenshot along with this mail which has the
> output as build failed but then has the state marked as sucess.
>Is there something special that I need to do?
>
> Thanks,
> Zabil
>
> <>
>
>
>


How is the build declared as a sucess?

2005-12-16 Thread Zabil
Hello All,
I am using continuum with perforce (thanks to the new jar). I was
what the mechasim is for the build to be labelled a success. 
Earlier I was using Cruise Control. Here when the ant file returns
the status as "BUILD FAILED" the build is marked as failed in the
web interface.
I am attaching a screenshot along with this mail which has the
output as build failed but then has the state marked as sucess. 
Is there something special that I need to do?

Thanks,
Zabil

 <>  



Re: Posts in thread: Pb while installing maven-andromda plug-in

2005-12-16 Thread Srepfler Srgjan

Somasundaram P wrote:


Hi all,
 Thk u for the reply, but still it is not working.
  
 I have installed Maven2.0.1 v 
  
   & the command :
   mvn -v  
 
  
   as per:
  
   http://www.andromda.org/starting.html
  
 I tried replacing maven(1.0v) keyword by mvn(2.0.1v) in the above cmd. It is not working still.
  
 Pls. help me with this.I wish Maven with Andromda up & running.
  
 Thank You!
  

 

I think andromda is still maven 1 only, but it'll be great to hear from 
andromda developers/users if that is true?

As for the first issue it's strange that the archetype doesn't work.
Srgjan

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



[m2] JXR report not including CSS correctly

2005-12-16 Thread Cabasson Denis
I have a worry with the jxr plugin which isn't generating correct links to
the CSS, and thus is rendered without style on some pages.

The package-summary.html pages have a link to the CSS:


which of course isn't working.

Some other links are also messed up on the same page:
Overview

Things are working fine on the other pages.

I have tried to have a look at JIRA issues on the jxr plugin, and haven't
find any issues related. Is someone experimenting the same problem?

Cheers!

Denis CABASSON

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



Re: Problems with special characters in APT format (latin-1 and copyright symbol)

2005-12-16 Thread Bruno Aranda
Nobody knows this? Has someone used accents in the apt format? Should
I try an alternative approach? thanks!

Bruno

2005/12/12, Bruno Aranda <[EMAIL PROTECTED]>:
> Hi there,
>
> I am trying to just the APT format but I cannot output some special
> symbols using unicode, such as the copyritght and latin-1 special
> characters (accents). I am following the APT guide [1], but when using
> the copyright symbol I get this in the screen:
>
> Â(c)
>
> There is a strange character before the copyright. I've tried \251,
> \xA9, \u00a9 ... I have similar results for other unicode characters.
> Do I have to change the encoding somewhere? I am running a linux box.
>
> Regards,
>
> Bruno
>
> [1] http://maven.apache.org/guides/mini/guide-apt-format.html
>

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



Re: MavenProject

2005-12-16 Thread Srepfler Srgjan

Christopher Cobb wrote:


I see several plugin examples on the Maven site that use MavenProject.  When
I try to use it, however, I get the error:



package org.apache.maven.project does not exist



How do I give my plugin access to MavenProject??


 


What does this plugin do and where can it be found?
Srgjan

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