Maven plugin testing

2008-01-07 Thread Serge Huber
Hi all, I am developing a plugin that copies some dependencies to a directory. I'm doing this because I need to setup a server by copying some JARs to a deployment directory. I am having lots of problems understanding the different plugin testing methods described on the page : http://maven.apach

Re: maven-sar-plugin?

2008-01-07 Thread amit kumar
Thanks lan, the copying is working now. :-) On Jan 7, 2008 9:15 PM, Ian Springer <[EMAIL PROTECTED]> wrote: > Hi, > > Use the dependency plugin's copy goal: > http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html > > Ian > > amit kumar wrote: > > Hi, > > I am using maven-sar-plug

Re: plexus components configuration

2008-01-07 Thread Olivier Dehon
On Tue, 2008-01-08 at 00:46 +0100, Zsolt KOZAK wrote: > So I have the following snipplet from a components.xml and I'd like to > pass some config parameters to the maven-war-plugin for the package > phase. Is it possible in a plexus components.xml? > > I have never done that myself so take it f

Re: plexus components configuration

2008-01-07 Thread Zsolt KOZAK
Hi Olivier, On 2008-01-08 00:36, Olivier Dehon wrote: > On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote: > >> Hi, >> >> I have the following problem. >> >> We use a custom packaging called "warstub". We uses modules and if a >> module depends on other modules, its war will contain ALL the

Re: plexus components configuration

2008-01-07 Thread Olivier Dehon
On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote: > Hi, > > I have the following problem. > > We use a custom packaging called "warstub". We uses modules and if a > module depends on other modules, its war will contain ALL the > dependecies (jars, html, images, etc). A warstub would contain o

Re: archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
Mick, My exact error are gone now after I restart Tomcat again. It's weird. But anyways, to your replied, I think the following works actually: 1.) default mysql jdbc url is to 3306. The exception did not complain connection problem, but an SQLException when creating table. 2.) the two databases

Re: archiva failed with mysql setup

2008-01-07 Thread Mick Knutson
You did not specify the port :3306 in your jdbc URL And you need 2 DB's. 1 for archiva, and 1 for users. On Jan 7, 2008 11:34 AM, Zemian Deng <[EMAIL PROTECTED]> wrote: > @Mick > I am using Mysql version 4.1.21-standard > > Here are archiva.xml > docBase="${catalina.base}/wars/apache-a

Re: Dashboard summary missing PMD and Cobertura sections

2008-01-07 Thread dvicente
Hi Lee, For Cobertura, your plugin configuration is commented, why ? So far, only Cobertura 2.0 version is supported , so I advise you to configure Cobertura as : ... org.codehaus.mojo cobertura-maven-plugin

Re: archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
@Mick I am using Mysql version 4.1.21-standard Here are archiva.xml @Wayne Thanks! I will post there from now on after this question :) -Zemian On Jan 7, 2008 2:05 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > As Wendy says... ;-) > > Archiva has separate mailing lists...

Archiva logging level

2008-01-07 Thread Bashar Jawad
When we deployed archiva on our CI server we noticed that archiva was generating tons of logging statements in the log file. The average size of a log file each day was 50+ MB! This of course is not acceptable, is there a way to reduce the logging level in archiva? I looked at archiva.xml and c

Re: archiva failed with mysql setup

2008-01-07 Thread Wayne Fay
As Wendy says... ;-) Archiva has separate mailing lists... please come join us there if you have questions: http://maven.apache.org/archiva/mail-lists.html Wayne On 1/7/08, Mick Knutson <[EMAIL PROTECTED]> wrote: > What MySql Version? > > Can you post your archiva.xml? > > > On Jan 7, 2008 10:5

Re: archiva failed with mysql setup

2008-01-07 Thread Mick Knutson
What MySql Version? Can you post your archiva.xml? On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]> wrote: > Hi list, > I didn't see a separated list for archiva, so I post question here. > > I am installing archiva with default derby worked fine. Now I am trying to > configure to use M

archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
Hi list, I didn't see a separated list for archiva, so I post question here. I am installing archiva with default derby worked fine. Now I am trying to configure to use Mysql. When I run my Tomcat server, I get the following error: 2008-01-07 13:18:12,481 [main] INFO org.apache.catalina.core.Cont

Re: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Damien Lecan
> 2) use version ranges in the parent pom. This way, the new version of > the library is used by all projects as soon as it is available in our > central repository. Much easier to manage, but it sound a bit scary to > have it that much automated ... Other problem, we will loose build > reproducibi

Re: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Guillaume Lederrey
I'm afraid that solution #1 will be hard to scale ... We have releases almost every day. Updating every other project every day doesnt seems to be such a good idea either ... But thanks for your feedback ! On 07/01/2008, Barrett Nuzum <[EMAIL PROTECTED]> wrote: > Guillaume: > > At one of our clie

maven-release-manager and maven-release-plugin releases

2008-01-07 Thread brewk9
Does anyone know when there will be production(non-beta, non-alpha) releases of maven-release-manager and maven-release-plugin? Thanks, -Ken -- View this message in context: http://www.nabble.com/maven-release-manager-and-maven-release-plugin-releases-tp14670740s177p14670740.html Sent from the

Re: Add source folder

2008-01-07 Thread Dan Tran
if your added source folder is not under project basedir, eclipse will not see it. even thou buildhelper does add the source folder. -D On Jan 7, 2008 8:55 AM, Jan Torben Heuer <[EMAIL PROTECTED]> wrote: > Tom Huybrechts wrote: > > >> I would say, theoretically, it should. However, to accomplish

Use a custom reporter with testng and surefire?

2008-01-07 Thread Andrew Robinson
I have the following in my pom: maven-surefire-plugin 2.4-SNAPSHOT once false true ${project.build.directory} **/*Test.java listener testing

mvn tomcat:deploy OutOfMemoryError

2008-01-07 Thread VanIngen, Erik (ESTG)
Hi While performing mvn tomcat:deploy, I receive this error: OutOfMemoryError. These are my settings: set MAVEN_OPTS=-Xmx2024m -Xms2024m -XX:MaxPermSize=1024m Any idea? Kind Regards, Erik van Ingen [INFO] Deploying war to http://ldvapp07.fao.org:8030/fenix-birt-0.0.1 [INFO]

RE: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Barrett Nuzum
Guillaume: At one of our clients, we had a very similar situation. We opted to go with option #1, below. It *is* a bit of a maintenance burden, but it's far more reliable and explicit than any alternatives. Barrett :: Barrett Nuzum Sr. Consultant Direct: 918.640.4414 Fax: 972.789.1340

Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Tom Huybrechts wrote: >> I would say, theoretically, it should. However, to accomplish it >> properly, it would have to execute the given pom and analyze the results >> to see what source folders are being looked at... Afer all, any plugin >> could be jumping in and adding source folders, even wit

Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Guillaume Lederrey
Hello ! I have to investigate the migration to Maven in our organisation. We have a pretty large software base : about 100 projects each generating 3 to 6 artifacts. A part of these modules are a framework used by most other projects. For the moment, we are managing versioning with ant, and a scr

Re: Add source folder

2008-01-07 Thread Tom Huybrechts
On Jan 7, 2008 5:19 PM, Kallin Nagelberg <[EMAIL PROTECTED]> wrote: > I would say, theoretically, it should. However, to accomplish it properly, > it would have to execute the given pom and analyze the results to see what > source folders are being looked at... Afer all, any plugin could be jumping

Re: Add source folder

2008-01-07 Thread Kallin Nagelberg
I would say, theoretically, it should. However, to accomplish it properly, it would have to execute the given pom and analyze the results to see what source folders are being looked at... Afer all, any plugin could be jumping in and adding source folders, even without having them declared anywhere

Re: maven-sar-plugin?

2008-01-07 Thread Ian Springer
Hi, Use the dependency plugin's copy goal: http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html Ian amit kumar wrote: Hi, I am using maven-sar-plugin and after the build its creating a lib folder. I want to put all the dependencies that I mentioned in the pom.xml to this fo

Re: Shared dependencies deployment to Tomcat 5.5 or 6.0 + other servers

2008-01-07 Thread Serge Huber
Hi Adam, Sorry I missed your reply, only saw it now. Basically my requirements is that I'm am developing APIs that will be shared across different WARs, along with an integration with Pluto & J2 that needs it's JARs deployed to the shared classloader. I want to avoid manual copy as I want to aut

plexus components configuration

2008-01-07 Thread Zsolt KOZAK
Hi, I have the following problem. We use a custom packaging called "warstub". We uses modules and if a module depends on other modules, its war will contain ALL the dependecies (jars, html, images, etc). A warstub would contain only the current module web-stuff (jar, html, etc.), so it's a kind o

Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Thanks! > Hi all, > > Formerly I used maven1 and I can use the in the project.xml as follow: > ... > > commons-logging > commons-logging > 1.0.4 > jar > > true > > > ... > > Now I use maven2. And I try to do the same in the POM.xml. B

Re: A question about setting in the POM.xml

2008-01-07 Thread Jeff MAURY
Simply remove it. Jeff On Jan 7, 2008 3:45 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > What should I do now? Is there any replacement for ? > > > > > properties aren't allowed in the section: > > http://maven.apache.org/pom.html > > http://maven.apache.org/

Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
What should I do now? Is there any replacement for ? properties aren't allowed in the section: http://maven.apache.org/pom.html http://maven.apache.org/maven-v4_0_0.xsd (schema) HTH > Hi all, > > Formerly I used maven1 and I can use the

Re: A question about setting in the POM.xml

2008-01-07 Thread Tomasz Pik
On Jan 7, 2008 3:23 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi all, > > Formerly I used maven1 and I can use the in the project.xml > as follow: > ... > > commons-logging > commons-logging > 1.0.4 > jar > > true > > > ... > > Now I use maven2. And I try to do t

Re: A question about setting in the POM.xml

2008-01-07 Thread Stuart McCulloch
On 07/01/2008, Thomas Chang <[EMAIL PROTECTED]> wrote: > > Hi all, > > Formerly I used maven1 and I can use the in the > project.xml as follow: > ... > > commons-logging > commons-logging > 1.0.4 > jar > > true > > > ... properties aren't allowed in the section:

A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Hi all, Formerly I used maven1 and I can use the in the project.xml as follow: ... commons-logging commons-logging 1.0.4 jar true ... Now I use maven2. And I try to do the same in the POM.xml. But as I run mvn-command I get error as follow. If I take out the

Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Kallin Nagelberg wrote: > I was using this plugin for a bit to add an additional source directory, > but intellij IDEA does not recognize the additional source. I ended up > having to create a new artifact for the second set of sources. eclipse (or the maven-eclipse-plugin) does not add the sourc

Re: reactor build order and mojos

2008-01-07 Thread Francois Fernandes
this seems to be a bug to me. The reactor build order should not only respect inter-module dependencies, but also dependencies to plugins. What about raising an issue? http://jira.codehaus.org/browse/MNG Francois > I've found a workaround : declare the plugins modules FIRST in the parent > POM

Re: Add source folder

2008-01-07 Thread Kallin Nagelberg
I was using this plugin for a bit to add an additional source directory, but intellij IDEA does not recognize the additional source. I ended up having to create a new artifact for the second set of sources. On Jan 7, 2008 7:50 AM, Tom Huybrechts <[EMAIL PROTECTED]> wrote: > http://mojo.codehaus.o

Re: Add source folder

2008-01-07 Thread Tom Huybrechts
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html On Jan 7, 2008 1:48 PM, Jan Torben Heuer <[EMAIL PROTECTED]> wrote: > How can I add another sourcefolder? (/src/extended/java/) > > The setting should be recognized by maven-eclipse-plugin and the built > process. > > Jan > > > --

Add source folder

2008-01-07 Thread Jan Torben Heuer
How can I add another sourcefolder? (/src/extended/java/) The setting should be recognized by maven-eclipse-plugin and the built process. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
Thanks a ton stuart. Its working now. On Jan 7, 2008 5:20 PM, Stuart McCulloch <[EMAIL PROTECTED]> wrote: > On 07/01/2008, amit kumar <[EMAIL PROTECTED]> wrote: > > > > I had resolved this problem, by putting the snapshots repository into > > pluginRepository tag rather than normal repository tag

RE: Retrieving and unpacking assemblies

2008-01-07 Thread Matthew Tordoff
Hi all, I found the answer to this here... http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#classifie r You can refer to the assembly using the id of the assembly as the dependency classifier. Matt -Original Message- From: Matthew Tordoff [mailto:[EMAIL PROTECTED] Sent:

Re: Packaging SAR with in an EAR

2008-01-07 Thread Stuart McCulloch
On 07/01/2008, amit kumar <[EMAIL PROTECTED]> wrote: > > I had resolved this problem, by putting the snapshots repository into > pluginRepository tag rather than normal repository tag. Though can not > explain why it worked but it just did. plugins are only downloaded from plugin repositories lis

Re: Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
I had resolved this problem, by putting the snapshots repository into pluginRepository tag rather than normal repository tag. Though can not explain why it worked but it just did. Regards, Amit Kumar On Jan 7, 2008 3:29 PM, amit kumar <[EMAIL PROTECTED]> wrote: > Hi, > I want to package a myproj

maven-sar-plugin?

2008-01-07 Thread amit kumar
Hi, I am using maven-sar-plugin and after the build its creating a lib folder. I want to put all the dependencies that I mentioned in the pom.xml to this folder. How do I do it? Regards, Hemant malik

Retrieving and unpacking assemblies

2008-01-07 Thread Matthew Tordoff
Hi all, I recently created a POM module which as part of it contains a ZIP file created via the assembly plugin (since the current released version of Maven does not allow packaging of type ZIP). I have another project which needs to make use of this ZIP file, so I need that module to import the o

答复: how to use maven project properties in other configuration files?

2008-01-07 Thread Fred Zhang
Kalle, Thanks a lot! -邮件原件- 发件人: Kalle Korhonen [mailto:[EMAIL PROTECTED] 发送时间: 2008年1月7日 11:47 收件人: Maven Users List 主题: Re: how to use maven project properties in other configuration files? On 1/6/08, Fred Zhang <[EMAIL PROTECTED]> wrote: > > My project is a multi-module project which

Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
Hi, I want to package a myproj.sar within a myproj.ear. The structure I want is MyProject.ear - MyProject.sar -lib -jars.. I am trying to use jboss-packaging-maven-plugin

Central Repository used in Maven Ant Task

2008-01-07 Thread Thomas Tardy
Hello, I'm trying to write an ant script which copies some libraries into a specific location. The libraries are being resolved by loading a maven pom file. This task is working well if all the dependency jar

Re: reactor build order and mojos

2008-01-07 Thread nicolas de loof
I've found a workaround : declare the plugins modules FIRST in the parent POM . Nico. 2008/1/7, nicolas de loof <[EMAIL PROTECTED]>: > > Hello, > > My project is splitted into modules and one of them is a Mojo (for a code > generator) > > When I build my project, the reactor build order places th

reactor build order and mojos

2008-01-07 Thread nicolas de loof
Hello, My project is splitted into modules and one of them is a Mojo (for a code generator) When I build my project, the reactor build order places the plugin as LAST, but it is used from other modules. : [INFO] Reactor build order: [INFO] gcaf :: parent POM [INFO] gcaf :: DAOs sql2java <-