A question about

2008-01-08 Thread Thomas Chang
Hi all, Formerly I use the maven1 and in the "project.xml" I have the as follow: jsf-facelets jsf-facelets 1.1.12 jar And in the repository the dir-structure looks as follow: /repo /jsf-facelets /jars --jsf-facelets-1.1.12.jar If I hav

RE: A question about

2008-01-08 Thread Thomas Chang
I think maybe you haven't understood what my question means since I haven't cleared my question clearly. :-) Surely I will not put the jar-files in my local repository. But sometimes I have to put the jar-files in the remote repository in the server machine. For example by using spring. Th

Re: A question about

2008-01-08 Thread Jeff MAURY
You should use the deploy plugin to do it: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html Hand based manipulations are forbidden on local and remote repositories Jeff On Jan 8, 2008 10:27 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > I think maybe you haven't und

RE: A question about

2008-01-08 Thread nicklist
There is a nice way to do it. Don't start putting your own files in your local repository. Take a look at mvn install:install-file [1] or mvn deploy:deploy-file [2] if you are working with a team. Hth, Nick Stolwijk [1] http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.htm

RE: Existance of ZIP Archetype? | How to distribute DB code to different mvn modules?

2008-01-08 Thread Boeckli, Dominique
i have a zip-mojo which provides a ZIP-Archetype. It was available once and I downloaded it. If you want i can send it to you. brgds Dominique -Original Message- From: Matthew Tordoff [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 04:49 PM To: Maven Users List Subject: RE:

RE: how to set subversion authentication information into settings.xml (instead of writing it into project pom)

2008-01-08 Thread Boeckli, Dominique
Hi Fred, i definded a profile in my personal settings.xml scmProfile userid password scmProfile And in the Super-POM (e.g. company POM) i defined the scm plugin like this

Downloading artefacts

2008-01-08 Thread Richard Chamberlain
Hi, I'd like to write a script that downloads a number of artefacts stored in a maven repo. The main artefacts are jar files, but I have attached a zip file containing all dependencies, start and stop scripts and configuration files so that i can distribute this to customers. It is the zip

Re: Archiva logging level

2008-01-08 Thread Maria Odea Ching
Hi Bashar, An issue has already been filed for this problem, please see: http://jira.codehaus.org/browse/MRM-633 You can reduce the logging by changing the log level (in log4j.xml) for the repo scanner from 'debug' to 'info' as shown below. The log4j.xml file is found in this directory:

Number of reported tests is incorrect (regression?)

2008-01-08 Thread HHansen
Hi, We've been using TeamCity to build and test a project. The project builds and all tests are run, but TeamCity displays an incorrect number of tests in the output. This is the end of the console output from TeamCity: Failed tests: [12:02:11]: [bt6] [12:02:11]: [bt6] Tests run: 740, Failures

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

2008-01-08 Thread Guillaume Lederrey
Thanks for your answer ! I have read some documentation on using dependency range, but I havent used it in any real world project yet. The documentation I have found sometimes makes me think this is a work still in progress. As you seem to be using it in real world projects, could you please share

How to avoid transitive Dependencies getting packaged

2008-01-08 Thread amit kumar
Hi, I am building a WAR, but I see some jar files in the lib WEB-INF\lib folder in the build which are not mentioned in the pom.xml, and probably are transitive dependencies. How do I make sure the transitive dependencies are not put in the lib folder. I looked on maven-war-plugin FAQs but not any

import file from other modules

2008-01-08 Thread François Xavier Gendrin
Hi, I search into archive but I didn't found. I'm searching a way to include files (shell script, properties files, etc.) from an another module, and I didn't know how to do it. Best regards, -- François Xavier Gendrin IT Engineer [EMAIL PROTECTED] __

Re: plexus components configuration

2008-01-08 Thread Zsolt KOZAK
Hi Olivier, Thanks for the help. ;) I do know that lifecycle.xml is for this problem but I have not found any proper example for components.xml versus lifecycle.xml yet. :( Does anybody have a detailed example lifecycle.xml? cheers, Zsolt On 2008-01-08 01:47, Olivier Dehon wrote: > On Tue, 200

Re: Problem with accounts

2008-01-08 Thread Martin Höller
Hi! On Tuesday 08 January 2008 wrote ivan: > I've installed continuum 1.1 as single application (Debian 4.0). And > under "admin" I can log-in and build projects... Also mails are comming > on e-mail about status of building. Ive added another user. But I can > not log-in. > > Web-page shows follo

RE: Downloading artefacts

2008-01-08 Thread Matthew Tordoff
Instead of using the unpack-dependencies goal, try just using the unpack goal, and specify each individual artifact you require ... (I have attached my execution to the validate phase since I require the files I import and unpack as part of later stages of the build). org.apache.maven.p

RE: import file from other modules

2008-01-08 Thread Matthew Tordoff
Hi Francois, To retrieve any files you first of all need to install them into the Maven repository in some way, and to install them into the Maven repository so they are accessible by other modules which can then retrieve them. The basic steps are: Package/Assemble, Install/Deploy, Retrieve. -

Re: How to avoid transitive Dependencies getting packaged

2008-01-08 Thread Wayne Fay
The way I do this (and there may be another or better way), I add explicitly add the transitive dependencies to my pom, and mark them as scope "provided". Wayne On 1/8/08, amit kumar <[EMAIL PROTECTED]> wrote: > Hi, > I am building a WAR, but I see some jar files in the lib WEB-INF\lib folder > i

Re: how to set subversion authentication information into settings.xml (instead of writing it into project pom)

2008-01-08 Thread Stephen Connolly
Of course when you use release:prepare release:perform it will publish your username and password in the pom.xml that gets tagged On Jan 8, 2008 10:11 AM, Boeckli, Dominique <[EMAIL PROTECTED]> wrote: > Hi Fred, > > i definded a profile in my personal settings.xml > > > >

Re: Problem with accounts

2008-01-08 Thread Jesse McConnell
you can also configure mail via the security.properties file in .m2/ directory email.jndiSessionName=java:comp/env/mail/Session email.smtp.host= email.smtp.port= email.smtp.auth= email.smtp.ssl.enabled= email.smtp.tls.enabled= email.smtp.username= email.smtp.password= cheers! On Jan 8, 2008 9:06

RE: Downloading artefacts

2008-01-08 Thread Brian E. Fox
You can also filter the files being included by unpack-dependencies, you can use scope,transitive,groupId,artifactId,type,classifier etc. You should be able to narrow it down to just the ones you want. Here's the intended distinction between copy/unpack and copy-dependencies/unpack-dependencies: I

Re: Maven Archetype: ParseException

2008-01-08 Thread Stuart McCulloch
On 08/01/2008, Thor <[EMAIL PROTECTED]> wrote: > > Hello everyone. Thanks for reading. > I'm having some issues while executing an Archetype that I've created > (using > the Guide to Creating Archetypes). > This archetype creates a webapp that already has several components: JSPs, > XML files, CSS,

Maven Archetype: ParseException

2008-01-08 Thread Thor
Hello everyone. Thanks for reading. I'm having some issues while executing an Archetype that I've created (using the Guide to Creating Archetypes). This archetype creates a webapp that already has several components: JSPs, XML files, CSS, JS, and so on, that I need as templates for developing web a

Re: Maven Archetype: ParseException

2008-01-08 Thread Thor
Thanks a lot Stuart... I'll try that right away... On Jan 8, 2008 9:44 AM, Stuart McCulloch <[EMAIL PROTECTED]> wrote: > On 08/01/2008, Thor <[EMAIL PROTECTED]> wrote: > > > > Hello everyone. Thanks for reading. > > I'm having some issues while executing an Archetype that I've created > > (using

How works dependencies in the documentation site ?

2008-01-08 Thread stephane pain
Hello, I have generated the documentation's site for my project with maven 2.0.8. My project depends of a project A and a project B. The project B depends of a project A. All these depends are with a scope 'compile'. The dependencies' page of the documentation's site show that : -)

how to use "Find Artifact"

2008-01-08 Thread Zemian Deng
Hi list, I have couple feedback after some usages of the application. The menu item "Find Artifact" seems very confusing. Is it allowing me to upload a artifact into an internal repo? why not label so "upload artifact"? Also, the notes on this form is very confusing too. For example: "The entire

Re: unable to add custom ant tasks to scripts

2008-01-08 Thread Kallin Nagelberg
Anyone? On Jan 5, 2008 6:44 PM, Kallin Nagelberg <[EMAIL PROTECTED]> wrote: > Im trying to use the groovy-maven-plugin to execute some groovy scripts > that make use of the antbuilder. I need to be able to use the > maven-ant-tasks within this script, which I've tried to do as follows: > > def mv

Re: how to use "Find Artifact"

2008-01-08 Thread Wendy Smoak
On Jan 8, 2008 9:45 AM, Zemian Deng <[EMAIL PROTECTED]> wrote: > The menu item "Find Artifact" seems very confusing. Is it allowing me to > upload a artifact into an internal repo? why not label so "upload artifact"? > > Also, the notes on this form is very confusing too. For example: "The entire

any maven support for "macros" ?

2008-01-08 Thread nicolas de loof
Hello, To release my project I need to call a rather complex maven command : "mvn install assembly:attached com.mycompany:myplugin:post-goal" I'd like to provide in my corporate POM some "macro command" to define custom goals / lifecycle phases to run such commands. example : "mvn release" to cr

Re: any maven support for "macros" ?

2008-01-08 Thread Wayne Fay
I've seen other people doing this by creating their own batch/shell scripts in the project directory eg mvn-release.bat and mvn-release.sh. We actually used to do this with Ant since we could never remember the various targets we wanted. Wayne On 1/8/08, nicolas de loof <[EMAIL PROTECTED]> wrote

Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
Hi, I am trying to add more resources to EAR, but unable to do so. Is there any way to add resources to my EAR package? I need to add some xml files to EAR/APP-INF/classes/ Thanks, Raghu

[ANN] Maven PMD Plugin 2.3 Released

2008-01-08 Thread Dennis Lundberg
The Maven team is pleased to announce the release of Maven PMD Plugin, version 2.3. http://maven.apache.org/plugins/maven-pmd-plugin/ You can run 'mvn -up' to get the latest version of the plugin, or specify the version in your project's plugin configuration: org.apache.maven.plugins maven-p

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
Thanks you so much, it worked fine for me :). Appreciate for your help I have one more question, is there any way to customize this path. Can I specify the path? Thanks, Raghu -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:13 PM To: Mav

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
I tried that in both plug-in section and build section. It did not work. Thanks, Raghu -Original Message- From: Ian Springer [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:09 PM To: Maven Users List Subject: Re: Adding resources to EAR Use the standard resources section of

Re: Adding resources to EAR

2008-01-08 Thread Nick Stolwijk
The source of the ear plugin has this part: //** * Single directory for extra files to include in the EAR. * * @parameter expression="${basedir}/src/main/application" * @required *// *private* File earSourceDirectory; I guess it should work by adding your directory

Bad checksums in repo1.maven.org

2008-01-08 Thread John Williams
I've been having some strange issues lately with Maven plugins not downloading correctly from the central repository. In the course of trying to track down the problem, I've discovered there's at least one bad checksum in the central repo. I'm seeing this error: Downloading: http://repo1.maven.

Re: Adding resources to EAR

2008-01-08 Thread Mick Knutson
I know that if you add a /src/main/application DIR, then add files there, they will ge added. So just create /src/main/application/APP-INF/classes/**/**.* should work. On Jan 8, 2008 12:54 PM, Raghu Kasturi <[EMAIL PROTECTED]> wrote: > Hi, > > > > I am trying to add more resources to EAR, but

Re: Adding resources to EAR

2008-01-08 Thread Mick Knutson
I don't see why adding APP-INF directory would not be included. I added META-INF and it worked for me. On Jan 8, 2008 1:20 PM, Raghu Kasturi <[EMAIL PROTECTED]> wrote: > Thanks you so much, it worked fine for me :). Appreciate for your help > > I have one more question, is there any way to custom

Re: Adding resources to EAR

2008-01-08 Thread Ian Springer
Use the standard resources section of the pom, as you would for a jar artifact. Raghu Kasturi wrote: Hi, I am trying to add more resources to EAR, but unable to do so. Is there any way to add resources to my EAR package? I need to add some xml files to EAR/APP-INF/classes/ T

Re: Adding resources to EAR

2008-01-08 Thread Mick Knutson
src/main/resources did not work. I just had this issue last week and solved it with just adding a src/main/application folder then adding my stuff to that. On Jan 8, 2008 1:08 PM, Ian Springer <[EMAIL PROTECTED]> wrote: > Use the standard resources section of the pom, as you would for a jar > ar

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
I created a folder in the project src\main\application\APP-INF\classes\ and placed all my files there. It worked fine for me. I am eager to know whether I can modify the folder. For example ..\someX\someY\APP-INF\classes\ Thanks, Raghu -Original Message- From: Mick Knutson [mailto:[EMAIL

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
I could achieve it by creating a folder under sr/main/application/APP-INF/classes and place by xml files there. But regarding your suggestion: I even tried that but did not work. I want to include some xml files in myear.ear/APP-INF/classes/ Thanks, Raghu -Original Message- From: Nick

Re: Adding resources to EAR

2008-01-08 Thread Mick Knutson
I never tried. I go it to work, and had to move on to other things. Sorry. On Jan 8, 2008 1:33 PM, Raghu Kasturi <[EMAIL PROTECTED]> wrote: > I created a folder in the project src\main\application\APP-INF\classes\ > and placed all my files there. It worked fine for me. > > I am eager to know whe

RE: How to avoid transitive Dependencies getting packaged

2008-01-08 Thread Brewster, Richard
Why do you want to exclude the transitive dependencies? Is it because these provided by your container (JBoss, Tomcat) and you wish to use those provided versions? How do you verify that the container's versions are compatible? Richard Brewster Senior Associate Perrin Quarles Associates [EMAIL P

Re: Bad checksums in repo1.maven.org

2008-01-08 Thread Dennis Lundberg
There is a JIRA project for reporting repository errors: http://jira.codehaus.org/browse/MEV John Williams wrote: I've been having some strange issues lately with Maven plugins not downloading correctly from the central repository. In the course of trying to track down the problem, I've discov

[m2] REPO cleanup help needed...

2008-01-08 Thread Mick Knutson
I have accumulated many REPO entries over the past year and am confused as to which ones are actually valid. Can someone tell me which ones I do not need, and if there are any that might be better: dap.internal DAP Managed Internal Repository htt

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
Hey, It worked and I'll be using this. Appreciate for your help. Thanks, Raghu -Original Message- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:27 PM To: Maven Users List Subject: Re: Adding resources to EAR The source of the ear plugin has this part

RE: Adding resources to EAR

2008-01-08 Thread Raghu Kasturi
Anyways thanks for help. I'll look into this and if I could get some luck. I'll let you know. Thanks, Raghu -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:39 PM To: Maven Users List Subject: Re: Adding resources to EAR I never tried. I

Re: persistence.xml being ignored in test path when in test/resources/META-INF

2008-01-08 Thread Cory Prowse
I have created an issue in JIRA to attempt to resolve this. >From further investigation, it seems that the classpath is different on Windows and MacOSX. However for now I'll keep the issue focussed on the example app, as it may fix other platforms in the process. Issue is here: http://jira.codeh

Re: [ANN] Maven PMD Plugin 2.3 Released

2008-01-08 Thread Dan Tran
Good work Dennis, what is next? javadoc plugin? :-) On Jan 8, 2008 12:55 PM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > The Maven team is pleased to announce the release of Maven PMD > Plugin, version 2.3. > > http://maven.apache.org/plugins/maven-pmd-plugin/ > > You can run 'mvn -up' to get

Re: [ANN] Maven PMD Plugin 2.3 Released

2008-01-08 Thread Vincent Siveton
hehe :) Vincent 2008/1/8, Dan Tran <[EMAIL PROTECTED]>: > Good work Dennis, > > what is next? javadoc plugin? :-) > > > > On Jan 8, 2008 12:55 PM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > > The Maven team is pleased to announce the release of Maven PMD > > Plugin, version 2.3. > > > > http://

Doubt about mail notifier

2008-01-08 Thread Claudio R
Hi, I am using the continuum 1.1 final with M2 project. I receive email only when the state of project changes. Example: build 1: successful build 2: successful build 3: successful I receive only one email (of build 1). In continuum´s log I get: 88928560 [pool-1-thread-1] INFO org.codeh

Re: [ANN] Maven PMD Plugin 2.3 Released

2008-01-08 Thread Dan Tran
Dennis < release manager On Jan 8, 2008 4:37 PM, Vincent Siveton <[EMAIL PROTECTED]> wrote: > hehe :) > > Vincent > > 2008/1/8, Dan Tran <[EMAIL PROTECTED]>: > > > Good work Dennis, > > > > what is next? javadoc plugin? :-) > > > > > > > > On Jan 8, 2008 12:55 PM, Dennis Lundberg <[EMAIL PROTE

Re: any maven support for "macros" ?

2008-01-08 Thread Michael McCallum
> To release my project I need to call a rather complex maven command : > "mvn install assembly:attached com.mycompany:myplugin:post-goal" if you need to just run custom plugin during a release you could bind it to the verify phase and define in a profile activated by the property 'performRelease

Re: any maven support for "macros" ?

2008-01-08 Thread Michael McCallum
why are you trying to 'release' with the install plugin? you should use the release plugin and bind the assembly and custom plugin to a phase of the project lifecycle, its all very well documented all over the place maven-assembly-plugin 2.2-beta-1 package attached

Jar files dependency

2008-01-08 Thread AngeloChen960
Hi, Got two questions: 1) is there a list of dependency available? example, i use JavaMail, and how to specify this in the dependency? 2) I'm trying to convert my project to Maven2, I have some jar files, how to add those jar files as one dependency to the project? Thanks. -- View this message

commons-logging-1.0.4

2008-01-08 Thread amit kumar
Hi, I am building a WAR package, and every time I see commons-logging-1.0.4being put in the WEB-INF\lib folder. Although this is not described in my pom.xml(I have commons-logging-1.1 as my dependency in the pom.xml) Still I am getting it. I tried and used mvn package -X to see to which dependency

Re: commons-logging-1.0.4

2008-01-08 Thread amit kumar
I just tried mvn site. It did not appear in dependency report as well :( On Jan 9, 2008 11:38 AM, Dan Tran <[EMAIL PROTECTED]> wrote: > do > > mvn site > > and trace it thru dependency report > > -D > > On Jan 8, 2008 9:56 PM, amit kumar <[EMAIL PROTECTED]> wrote: > > Hi, > > I am building a WAR

Re: any maven support for "macros" ?

2008-01-08 Thread nicolas de loof
The assembly plugin requires the package goal to be run prior (to get acces to modules). mvn assembly:assembly fails with "xx-ear project has no file" ! -> mvn package assembly:attached (as described in plugin doc) My project has some modules that builds maven plugins, used on other modules, so in

Re: commons-logging-1.0.4

2008-01-08 Thread Dan Tran
do mvn site and trace it thru dependency report -D On Jan 8, 2008 9:56 PM, amit kumar <[EMAIL PROTECTED]> wrote: > Hi, > I am building a WAR package, and every time I see > commons-logging-1.0.4being put in the WEB-INF\lib folder. Although > this is not described in my > pom.xml(I have common

Re: How to avoid transitive Dependencies getting packaged

2008-01-08 Thread amit kumar
The one reason at the moment of not including the transitive dependencies is the redundant jar files in the lib folder of the packaged WAR. For instance in the lib folder of the WAR i can see commons-logging-1.0.4(transitive dependency of something which I am not able to figure out even after using

RE: How to avoid transitive Dependencies getting packaged

2008-01-08 Thread Vishal Pahwa
Hi I have also similar kind of problem and needs an effective solution. Problem: Let's say we have one custom module for creating jar file let's the name of the jar file is A.jar and that module is dependent upon let's say 10 third party jars. Now i have one module for creating war file and i

RE: How to avoid transitive Dependencies getting packaged

2008-01-08 Thread nicklist
Which maven version are you using? There were a few problems like this in 2.0.4 and 2.05 IIRC. Hth, Nick Stolwijk -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Wed 1/9/2008 8:16 AM To: Maven Users List Subject: Re: How to avoid transitive Dependencies getting pack