new to maven

2007-10-24 Thread Ian Godman
Hi I am new to Maven 2. I have been converting an application consisting of 4 eclipse projects, 3 producing library jars the the final one running the application. I have got to the stage where every thing now compiles and the 3 jar files are deployed in my repository (I am using artifactory).

Common configuration for a set of projects / inheritance from super-pom

2007-10-24 Thread Martin Testrot
Hello, I would like to separate the reporting section for all of our projects in a common configuration file or pom to keep the projects pom as simple as possible. I already created a hierarchy of poms (java-pom, maven-plugin-pom and so on) for the different project types to externalize common s

Re: Problems using a customized javadoc plugin from custom repository

2007-10-24 Thread Dirk Olmes
Vincent Siveton wrote: > Hi, > > Try to remove your repo, specially: > ${user.home}/.m2/repository/org/apache/maven/plugins/maven-javadoc-plugin Vincent, I already did that, and even tried compiling with an empty local repo: still the same error. -dirk > 2007/10/24, Dirk Olmes <[EMAIL PROTECTED

Re: Is there a way to redirect the output of maven-exec plugin to a file?

2007-10-24 Thread Wayne Fay
If its not obvious in the docs, it probably does not exist. Feel free to add the functionality you need and contribute it back. Wayne On 10/24/07, Yan Huang <[EMAIL PROTECTED]> wrote: > Hello, > > Quick question: is there a way to direct the execution log of maven-exec > plugin (on the fly) to a

Is there a way to redirect the output of maven-exec plugin to a file?

2007-10-24 Thread Yan Huang
Hello, Quick question: is there a way to direct the execution log of maven-exec plugin (on the fly) to a file rather than the console? I think all Mojo is using log4j property for the logging. However, if I want it to dump the log of whatever it invokes, how can i do it? It seems to me that the ex

Re: jgoodies

2007-10-24 Thread Nick Stolwijk
If you do a search on jgoodies on mvnrepository.com, you see that the latest version of com.jgoodies.forms is 1.0.7 and com.jgoodies.looks is on 2.1.4. If you want the newest version of them uploaded to the central repository, show the page on maven.apache.org to the jgoodies developers[1]. Ht

jgoodies

2007-10-24 Thread Brandon Enochs
Does anybody know if the latest version of forms (1.1.0) and looks (2.1.4) are part of the maven repository? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: unpackOptions tag has no effect

2007-10-24 Thread Wayne Fay
I'm not using excludes in unpackOptions myself, but make sure: 1. This functionality is available in a public release, and not just a snapshot 2. You've specified the a release version that has this functionality in your pom declaration Many times I've seen people add a pom snippet from the maili

unpackOptions tag has no effect

2007-10-24 Thread Arik Kfir
Hi, I have a multi-module project, where one of the modules is a WAR, with several dependencies packaged in its WEB-INF/lib directory. The top-level project builds an assembly, which needs to contain the WAR in an unpacked form. I used the true and tags to make sure the WAR is unpacked AND to ex

Re: release:prepare failure during scm-tag : Server certificate verification failed: issuer is not trusted

2007-10-24 Thread Jason Mihalick
Anyone have any ideas on why this would happen? Any help is appreciated. Thanks. -- Jason Jason Mihalick wrote: > > I've been searching the groups, the web, and the doc and I've not been > able to find a solution to this. Any help you can offer is much > appreciated. > > I have successfull

Re: Newbie question on deployment strategy

2007-10-24 Thread Wayne Fay
Generally yes this means a complete undeploy plus deploy of the new war, unless you've got some special J2EE server that does it another way. Schedule downtime or find a low-usage time to push your WARs, just like everybody else. Ideally you're not pushing updates out to Prod on a daily basis but

Re: Newbie question on deployment strategy

2007-10-24 Thread Ross Mcdonald
Hi, thanks for that, I am trying to get my head into this method of working.. I am just a little worried about having to reload a war each time, doesn't that require complete reloading of the war in the web server, which is perhaps too much of an interruption to a production application in so

Re: Release and Changes plugin

2007-10-24 Thread Jon Strayer
Did anyone ever answer this? On 5/10/07, Chris Helck <[EMAIL PROTECTED]> wrote: > > Hi, > > I've started using the changes plugin. Does it integrate with the > release plugin? What I mean is if changes.xml contains a line like: > > > > When I run release:prepare, release:peform I'd like the l

Re: Trying to setup a Maven Shared Repository

2007-10-24 Thread Marco Mistroni
Hello, well yes. you'd need to change your settings.xml in your .m2 directory to point to your machine i m sure in artifactory website there's an example, .. i'll send you an example tomorrow from work of a settings.xml and an artifactory config file.. regards marco On 10/24/07, charliec <

Re: Problems using a customized javadoc plugin from custom repository

2007-10-24 Thread Vincent Siveton
Hi, Try to remove your repo, specially: ${user.home}/.m2/repository/org/apache/maven/plugins/maven-javadoc-plugin Cheers, Vincent 2007/10/24, Dirk Olmes <[EMAIL PROTECTED]>: > Hi, > > I'm trying to work around http://jira.codehaus.org/browse/MJAVADOC-157 > so I have checked out the maven-javado

Re: Newbie question on deployment strategy

2007-10-24 Thread Nick Stolwijk
Normally, even with a few updated files, you would release your project again. Then it will create a new version number, a tag and the final artifacts, like jars and wars. This has nothing to do with how you deploy it to production. The deployment Maven talks about is deploying the artifacts to

Regarding ${reactorProjects}

2007-10-24 Thread Yan Huang
Hello, I'm wondering if there is any example of pom.xml that is using the reference variable ${reactorProjects} to navigate the project instances which are processed as part of current build? or any technical reference doc for that variable? Thanks Yan

Re: Changing the default local repository

2007-10-24 Thread Nick Stolwijk
If you look at the Settings Object Model[1], you'll see the following tag: /settings/localRepository. That's the one you're looking for. Hth, Nick Stolwijk [1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html [EMAIL PROTECTED] wrote: I 've looked thru the FAQ of POM as well as

Re: Maven Create Path

2007-10-24 Thread Wayne Fay
I hope this thread demonstrates the utility of telling the list what you're really trying to do, rather than simply asking how to do a particular thing you can't figure out. ;-) Wayne On 10/24/07, Roshan A. Punnoose <[EMAIL PROTECTED]> wrote: > Thanks! > > -Original Message- > From: [EMAI

Changing the default local repository

2007-10-24 Thread uma_rk
I 've looked thru the FAQ of POM as well as settings and was unable to find an answer. How do I change the default local repository from ${user.home}/.m2 to something else? Regards, /U - To unsubscribe, e-mail: [EMAIL PROTECTE

Newbie question on deployment strategy

2007-10-24 Thread Ross Mcdonald
Hi all, I am a newbie to this, carefully considering bringing Maven in house to our small company to improve a number of different systems. I have downloaded a couple of ebooks which are great, and I see many ways in which Maven will make life easier, I am however finding it difficult to tra

RE: Maven Create Path

2007-10-24 Thread Roshan A. Punnoose
Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stuart McCulloch Sent: Wednesday, October 24, 2007 1:21 PM To: Maven Users List Subject: Re: Maven Create Path On 24/10/2007, Damien Lecan <[EMAIL PROTECTED]> wrote: > > Don't loose time doing that b

Re: Maven Create Path

2007-10-24 Thread Stuart McCulloch
On 24/10/2007, Damien Lecan <[EMAIL PROTECTED]> wrote: > > Don't loose time doing that by hand > > Use this Apache Felix plugin : > http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html FYI, this is the latest, up-to-date page: http://felix.apache.org/site/maven-bundle-plugin-bnd.htm

Re: Gentoo Linux init.d script?

2007-10-24 Thread Vanja Petreski
Definitely not Gentoo init script... V On 10/24/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > > Oops... > > I just realised I have changed the OS on my Maven/Continuum/Archiva > box ... it's no longer Gentoo but CentOS (the company uses RedHat by > default). So the init script I sent is for Cen

release plugin and antrun task

2007-10-24 Thread mljv
hi, i want to use the release plugin like this: org.apache.maven.plugins maven-release-plugin antrun:run maven-antrun-plugin run hallo of course the ant task is something different in reality. It runs like this and doesn't execute the task: [...] [INFO] Executing: mvn antrun:run

Re: [maven-idea-plugin] incorrect jar created after downloading test sources

2007-10-24 Thread Wayne Fay
Seems like you've found a few bugs. Check JIRA and if they are not already posted, please do so. (The tests vs test one I've heard of so it may already be posted.) Thanks for your contributions. Wayne On 10/24/07, GONNOT boris <[EMAIL PROTECTED]> wrote: > Hi guys, > > We have found two issues re

Re: Gentoo Linux init.d script?

2007-10-24 Thread Hilco Wijbenga
Oops... I just realised I have changed the OS on my Maven/Continuum/Archiva box ... it's no longer Gentoo but CentOS (the company uses RedHat by default). So the init script I sent is for CentOS, not Gentoo. My apologies, I'll try to create an init script for Gentoo. Cheers, Hilco

[maven-idea-plugin] incorrect jar created after downloading test sources

2007-10-24 Thread GONNOT boris
Hi guys, We have found two issues regarding the download of test sources from the remote repository. 1. "test vs tests" artifact source classifier for test This first issue actually involves several maven plugins whilst deploying an artifact. First of all, the maven-jar-plugin generates into t

Maven profile properties

2007-10-24 Thread Roshan A. Punnoose
I am trying to get my profiles to use the properties specified by the POM. Is this possible? I have a POM that looks like: 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.

RE: @requiresDependencyResolution, multi-project and reactor dependencies - a bug?

2007-10-24 Thread Brian E. Fox
http://jira.codehaus.org/browse/MNG-2277 i unfortunately know it well. -Original Message- From: Alfie Kirkpatrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 10:23 AM To: users@maven.apache.org Subject: @requiresDependencyResolution, multi-project and reactor dependencies

Re: Can't create global eclipse files with eclipse plugin for project with modules

2007-10-24 Thread David
Dear Jim, Probably didn't explain my problem correctly. In order to get an eclipse project as you say for the modules, you only need to invoke on command line: mvn eclipse:eclipse on the root project. My question is concerning to generate the eclipse configuration files for my root project that

Re: Maven Create Path

2007-10-24 Thread Wayne Fay
There are osgi plugins for Maven that you should probably look at before attempting to implement everything yourself manually. Google for "maven felix" and "maven osgi" to find them. Wayne On 10/24/07, Roshan A. Punnoose <[EMAIL PROTECTED]> wrote: > Well I am trying to bundle an osgi bundle. And

Re: Maven Create Path

2007-10-24 Thread Damien Lecan
Don't loose time doing that by hand Use this Apache Felix plugin : http://cwiki.apache.org/FELIX/bundle-plugin-for-maven-bnd.html Good luck Damien 2007/10/24, Roshan A. Punnoose <[EMAIL PROTECTED]>: > Well I am trying to bundle an osgi bundle. And it needs a > Bundle-Classpath entry in the Mani

@requiresDependencyResolution, multi-project and reactor dependencies - a bug?

2007-10-24 Thread Alfie Kirkpatrick
Hi, we're using Maven 2.0.7 (same problem also seems to exist on 2.0.4). This seems like something so basic I'm hoping there is a simple explanation/workaround. What we're seeing is that some multi-project configurations succeed on 'mvn package' but fail on 'mvn generate-sources'. They are fail

RE: Maven Create Path

2007-10-24 Thread Roshan A. Punnoose
Well I am trying to bundle an osgi bundle. And it needs a Bundle-Classpath entry in the Manifest. This entry has to be a comma-separated list of all the jars needed by the osgi bundle. I have these jars downloaded using the maven-dependency-plugin:copy-dependencies, but I cannot seem to figure out

mvn dependency:unpack ignoring outputdirectory

2007-10-24 Thread Libby, Cynthia
I'm having trouble getting "mvn dependency:unpack" to use the outputDirectory I specify. The zip file is being unpacked but in a dependency subdirectory. I can get the outputdirectory to work fine for regular files with mvn dependency:copy. Is this something that just doesn't work or am I doing i

Re: Need to remove $USER_HOME\.m2 in order to work

2007-10-24 Thread Wayne Fay
Next time you get that error message, instead of deleting your .m2 directory, try adding -U to your mvn call eg mvn -U package. Wayne On 10/24/07, Java World <[EMAIL PROTECTED]> wrote: > Hi, > > Most of the time when i working wit maven2 it says it cand find plug-ins > (like org.apache.maven.pl

Re: Maven Create Path

2007-10-24 Thread Wayne Fay
What are you trying to do that Maven isn't doing/can't do for you? There may be a better way to approach this from a Maven perspective. Wayne On 10/24/07, Roshan A. Punnoose <[EMAIL PROTECTED]> wrote: > Hi, > > In Ant, I was able to take a directory and create a full path defining > all the entri

RE: RE: Protection of Already Deploy Artifacts

2007-10-24 Thread Leder, Leslie (NSN - DE/Greifswald)
This is at least a prospect. I thought somebody else should also have this problem. Thank you, Leslie -Original Message- From: ext Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 2:27 PM To: Maven Users List Subject: RE: Protection of Already Deploy Artifacts The

Maven Create Path

2007-10-24 Thread Roshan A. Punnoose
Hi, In Ant, I was able to take a directory and create a full path defining all the entries in that directory. For example, in directory lib, I have jars: -test1.jar -test2.jar -test3.jar. I want to be able to create a path and set it as a property like: lib/test1.jar, lib/test2.jar, lib/test3.jar.

RE: RE: Protection of Already Deploy Artifacts

2007-10-24 Thread Leder, Leslie (NSN - DE/Greifswald)
I know this one. But for that I would need to change a lot in the SVN structure which is currently standard conform. Probably this is a fault. But at the end it is somehow like saying: Don't deal with the fault but uses this tool that prevents you from making this fault. There is always somebody i

Re: Re: Protection of Already Deploy Artifacts

2007-10-24 Thread Leder, Leslie (NSN - DE/Greifswald)
I thought about this also. But this is where story becomes more complicated. Actualy the module is part of a multi-module project. As long as the code does not change the result hopefully will also not change. Repeated build and deployment in the context of an multi-module project is fine so far

Re: Can't create global eclipse files with eclipse plugin for project with modules

2007-10-24 Thread Jim Sellers
I don't think that you can create a "global eclipse project". For each of your modules you can make it look like a "project" in eclipse by going 1) right click 2) import 3) General / Existing Projects into Workspace 4) browse to your module 5) ** THIS IS THE IMPORTANT STEP** Make sure the "Copy pr

RE: Protection of Already Deploy Artifacts

2007-10-24 Thread Brian E. Fox
There is work occurring on the deploy plugin to not overwrite existing release artifacts by default. -Original Message- From: Nicole Lacoste [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 8:21 AM To: Maven Users List Subject: Re: Protection of Already Deploy Artifacts You m

Need to remove $USER_HOME\.m2 in order to work

2007-10-24 Thread Java World
Hi, Most of the time when i working wit maven2 it says it cand find plug-ins (like org.apache.maven.plugins:maven-compiler-plugin' does not exist or no valid version could be found. etc ) No firewall. But when i remove $USER_HOME\.m2 it works fine by downloding plug-ins. Can anyone tell me

Re: Protection of Already Deploy Artifacts

2007-10-24 Thread Nicole Lacoste
You might want to look into cutting a real release. You only have your artifacts in snapshot versions (1.0-SNAPSHOT) and use the maven release plugin to cut release in non snapshot version (1.0). The release prepare goal creates the 1.0 version and tags the source code in your scm. You then crea

Re: XML-RPC 1.1: getProjects/getAllProjectGroupsWithProjects vs getProject

2007-10-24 Thread Emmanuel Venisse
Banck, Arent-Jan a écrit : Hi, Trying out the XML-RPC client from the trunk. When using XML-RPC API getAllProjectGroupsWithProjects and getProjects, the projects returned do not have al fields set. Parent, dependencies, developers, notifiers are null. the projects list returned by getAllProje

Re: Protection of Already Deploy Artifacts

2007-10-24 Thread Olivier Dehon
You can set the files to read-only in the file system. -Olivier Leder, Leslie (NSN - DE/Greifswald) wrote: Hello, assume there is a module A already deployed in version 1.0. Now somebody changed the code of module A but forgot to increment the version so it still is 1.0. So the second version

Re: adding a maven 2.0 project to continuum

2007-10-24 Thread Emmanuel Venisse
Ionut S a écrit : Then maybe I'm doing something wrong, cause I just downloaded a clean 1.0.3 version and, after I added the pom.xml file continuum created me all the subprojects in it.. As I explained in my previous mail, it's in 1.1, not 1.0.3, that you can add only the parent project.

Re: Gentoo Linux init.d script?

2007-10-24 Thread Emmanuel Venisse
http://people.apache.org/~evenisse/continuum_1.1_site/documentation/1_1/installation/standalone.html#In_a_Gentoo_system I think we need more informations like the chkconfig command or something else. Can you provide the text or create a patch? The source of this page is there: http://svn.apache

Re: Trying to setup a Maven Shared Repository

2007-10-24 Thread charliec
I downloaded 1.2.2-rc0 and I can browse http://:8081/artifactory. But I still receive the same error through Maven. Is there any other configuration that needs to be done through the tool or Maven besides modifying the mirror settings in Maven's settings.xml. Yoav Landman wrote: > > The URL

Re: Protection of Already Deploy Artifacts

2007-10-24 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I don't think this is currently possible; I would investigate using the release plugin though, as this ensures that versions are always incremented. Cheers, Johan Leder, Leslie (NSN - DE/Greifswald) wrote: > Hello, > assume there is a module

Re: adding a maven 2.0 project to continuum

2007-10-24 Thread Ionut S
Then maybe I'm doing something wrong, cause I just downloaded a clean 1.0.3 version and, after I added the pom.xml file continuum created me all the subprojects in it.. Anyway.. is there a place where I can see a usual procedure for branching a project ? I googled for a while, but couldn't fin

Protection of Already Deploy Artifacts

2007-10-24 Thread Leder, Leslie (NSN - DE/Greifswald)
Hello, assume there is a module A already deployed in version 1.0. Now somebody changed the code of module A but forgot to increment the version so it still is 1.0. So the second version of component A is definitely not ok. But how can I protect the correct version 1.0 of component A than? The wa

[ANN] Maven War Plugin 2.1-alpha-1 released!

2007-10-24 Thread Stephane Nicoll
The Maven team is pleased to announce the release of the Maven WAR Plugin, version 2.1 alpha 1. This release brings a significant refactoring of the packaging codebase with an improved overlay handling (both zip and war artifacts are now handled). For more information, check the web site: http://

Re: Dependency understanding problem

2007-10-24 Thread Danni
Michael McCallum-3 wrote: > > I think the ultimate goal is that any artifact should be able to be > checked > out and built without the need to install anything... > That's my goal exactly. I'm trying to figure out if I can get maven to build every module by automatically installing/updating

Problems using a customized javadoc plugin from custom repository

2007-10-24 Thread Dirk Olmes
Hi, I'm trying to work around http://jira.codehaus.org/browse/MJAVADOC-157 so I have checked out the maven-javadoc-plugin sources and tweaked it so it works for building my site. I have added the necessary into to deploy my patched m-j-p to my custom repo and deployed it. The site runs on our CI