Re: SNAPSHOT for parent pom versioning

2009-05-18 Thread Bocalinda
Hi Anders, Thanks a lot.. You are right, I need to specifically specify to update on each build. When I do so, I can see from Maven's output that it's trying to download my POM again, but it actually isn't. The POM changed in the remote repository, but it remained the same local repository. I'm

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Emmanuel Hugonnet
Hi, I have started the French Translation for the Maven Guide here: http://github.com/ehsavoie/maven-guide/tree/master Feel free to contact me if you want to help :o) (reading, translating, ...). Emmanuel PS: I am currently translating the introduction chapter. -- Emmanuel Hugonnet Tel:

Re: Error transferring file: repo1.maven.org, Repository 'central' will be blacklisted

2009-05-18 Thread Andrea Libero Valori
Solved: it was only that I was giving wrong names for archetypes! ;) PS sorry for the late reply

Release plugin checking remote dependencies for modules

2009-05-18 Thread Danilo Tuler
Hi, I have a multi-module project with a dozen modules. Whenever I do a maven release:prepare maven checks remotely for SNAPSHOT dependencies of my own modules, instead of first checking the reactor. Is this correct? I use archiva and have a lot of remote repositories, and because of that the

Re: SNAPSHOT for parent pom versioning

2009-05-18 Thread Anders Hammar
Could it be an Artifactory bug? What's the content of the maven-metadata.xml file of the seta.config:seta-general-configuration:1.0-SNAPSHOT artifact? On Mon, May 18, 2009 at 09:24, Bocalinda bocali...@gmail.com wrote: Hi Anders, Thanks a lot.. You are right, I need to specifically specify to

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Fabien KRUBA
Hi I can give some help for translation Regards Fabien Kruba On Mon, May 18, 2009 at 3:58 AM, Emmanuel Hugonnet ehsavoi...@gmail.comwrote: Hi, I have started the French Translation for the Maven Guide here: http://github.com/ehsavoie/maven-guide/tree/master Feel free to contact me if you

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Baptiste MATHUS
Ouaip, ça m'intéresse aussi. Va bien falloir que je me mette à Git :-). off-topicAbout git, I always remember Linus torvalds being asked why he named it git. He answered I'm an egotistical bastard, and I name all my projects after myself./off-topic :-). Cheers. 2009/5/18 Fabien KRUBA

Error while trying to generate the site

2009-05-18 Thread HHB
Hey, I get the following exception when trying mvn site ++ [INFO] Generating Dependencies report. [WARNING] Unable to process class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in JarAnalyzer File /home/hhb/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar

Replacing file from project1.jar with file from project2

2009-05-18 Thread Stephan Bauer
Hi, I have 2 projects: project1 and project2 whereby project2 shall replace a java class file from project1.jar with a file available in project2. Is there a standard way (or a workaround) to achieve this? (suppose project1 is opensource and project2 makes closed-source additions to project1).

Re: Error while trying to generate the site

2009-05-18 Thread Lukas Theussl
http://jira.codehaus.org/browse/MPIR-142 HTH, -Lukas HHB wrote: Hey, I get the following exception when trying mvn site ++ [INFO] Generating Dependencies report. [WARNING] Unable to process class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in JarAnalyzer File

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-18 Thread John Casey
Arnaud, are you saying that you see something like: May 6, 2009 1:58:26 PM hidden.org.apache.commons.httpclient.HttpMethodBase processCookieHeaders WARNING: Cookie rejected: $Version=0; JSESSIONID=E545E65FB5E46552ED8473D17DF1DC80; $Path=/servlets. Illegal path attribute /servlets. Path of

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-18 Thread Arnaud HERITIER
I thought the wagon-lightweight was always here.It's with the 2.2.0-RC you delivered. Arnaud On Mon, May 18, 2009 at 5:35 PM, John Casey jdca...@commonjava.org wrote: Arnaud, are you saying that you see something like: May 6, 2009 1:58:26 PM

Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Stephen Connolly
Hey, before you think this guy is crazy, surefire will do that for you... pre-integration-test: jetty:run daemon=true integration-test: surefire:test testFailureIgnore=true post-integration-test: jetty:stop verify: __:__ so that I can run my integration tests and tidy-up afterwards and

Re: mvn deploy puts snapshots into releases directory

2009-05-18 Thread Brian Fox
Yours looks right. On Sun, May 17, 2009 at 8:15 PM, Reiner Saddey r...@saddey.net wrote: BRIAN FOX-5 wrote: Paste the output of help:effective-pom On Sun, May 17, 2009 at 2:09 PM, Reiner Saddey r...@saddey.net wrote: Jan Torben Heuer-5 wrote: Hi, When I deploy my

Re: Release plugin checking remote dependencies for modules

2009-05-18 Thread Brian Fox
That's normal unless you disable automatic snapshot updates for each of these repos in your settings. On Mon, May 18, 2009 at 9:07 AM, Danilo Tuler tu...@pobox.com wrote: Hi, I have a multi-module project with a dozen modules. Whenever I do a maven release:prepare maven checks remotely for

Re: Release plugin checking remote dependencies for modules

2009-05-18 Thread Wendy Smoak
On Mon, May 18, 2009 at 6:07 AM, Danilo Tuler tu...@pobox.com wrote: I use archiva and have a lot of remote repositories, and because of that the release takes an hour or so. You can speed this up by creating a repository group [virtual repository] and configuring Maven to only use the one

Have maven stop compilation when some rule is broken

2009-05-18 Thread bgik
Hi I have a 3rd party lib that i have no control over. In my env it makes no sense to create 2 instances of a given class from this lib, in fact it may cause issues, so i have updated my codebase to wrap one in a singleton. Going forward there's nothing to stop anyone creating another one

Re: Release plugin checking remote dependencies for modules

2009-05-18 Thread Danilo Tuler
I have a multi-module project with a dozen modules. Whenever I do a maven release:prepare maven checks remotely for SNAPSHOT dependencies of my own modules, instead of first checking the reactor. You can speed this up by creating a repository group [virtual repository] and configuring Maven

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Emmanuel Hugonnet
You will have to be indulgent my git skills are very low :o( Ma maitrise de git est au niveau débutant alors faut pas trop m'en demander :o( Emmanuel

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Fabien KRUBA
Same here, but it could be a good starting point to learn it:)Should we create a mailing list in order to manage the translation with you and Baptiste and avoiding pollution of us...@maven mailing list with french text ? Already have some questions regarding translation coherence..(which terms

Re: Release plugin checking remote dependencies for modules

2009-05-18 Thread Brian Fox
Because it's making sure that the build is correct, it's basic snapshot behavior. On Mon, May 18, 2009 at 12:53 PM, Danilo Tuler danilo.tu...@gmail.comwrote: I have a multi-module project with a dozen modules. Whenever I do a maven release:prepare maven checks remotely for SNAPSHOT

Re: Have maven stop compilation when some rule is broken

2009-05-18 Thread Brian Fox
The maven-enforcer-plugin is well suited for this. You could use one of the existing rules, perhaps the failIfFileExists or easily write your own rule. On Mon, May 18, 2009 at 12:47 PM, bgik bruce_ki...@hotmail.com wrote: Hi I have a 3rd party lib that i have no control over. In my env it

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Edelson, Justin
Can you use -fae to do this? On May 18, 2009, at 12:17 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Hey, before you think this guy is crazy, surefire will do that for you... pre-integration-test: jetty:run daemon=true integration-test: surefire:test testFailureIgnore=true

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Stephen Connolly
nope. that will stop trying to build the current module but continue with the next module... I don't want the current module to stop after integration-test but after verify I have a sneaky feeling I'm going to have to write a plugin to do this but seriously, my use case has got to have

Re: Maven: The Definitive Guide in French

2009-05-18 Thread Arnaud HERITIER
I think you can create a google group to discuss in french.I'll join it, even if I don't think I'll have the time to help you before september. Arnaud On Mon, May 18, 2009 at 7:17 PM, Fabien KRUBA fabien.kr...@gmail.comwrote: Same here, but it could be a good starting point to learn

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Brian Fox
Use one of the enforcer rules or make a new one to validate the conditionss. On Mon, May 18, 2009 at 2:59 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: nope. that will stop trying to build the current module but continue with the next module... I don't want the current module

Custom Lifecycle

2009-05-18 Thread Jeffrey N Hagelberg
Hello, We are trying to define a custom lifecycle for our nightly build. We basically want it to have the following phases: 1. run-build 2. process-build-results 3. report-build-results The idea is that we will have a separate nightly build maven project that runs the nightly build. In

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Kalle Korhonen
Why don't you just write a unit test base class that runs Jetty embedded? If you store the server in a static attribute and start it in @BeforeClass (or similar) conditionally if hasn't been started before, you'll save the restart costs between each test. As a bonus, these integration tests are

Re: Anyone have a plugin to check if the surefire tests pass?

2009-05-18 Thread Jeffrey N Hagelberg
We've got one. It uses the SurefireReportParser from the maven-surefire-report-plugin to parse the reports. I'll have to get permission from my manager to send it, but that's the basic idea. -Jeff Jeffrey Hagelberg, Software Engineer XMeta Development IBM Software Group Phone: 978-899-2055

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-18 Thread John Casey
I just grepped the uberjar file listing in RC2 for 'ightweight' and came up with nothing. Are you sure the lightweight wagon is present in the copy you have? Arnaud HERITIER wrote: I thought the wagon-lightweight was always here.It's with the 2.2.0-RC you delivered. Arnaud On Mon, May 18,

avoid oracle driver jar

2009-05-18 Thread tubin gen
I have maven project , which is jar, war and ear. Ear I deploy in weblogic , and to save time I run war with jetty. because my project uses datasource , which is provided by weblogic and not by jetty and in order to run in jetty I add the deopendency dependency

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-18 Thread Arnaud HERITIER
No I'm not sure. I just supposed it was it.Sorry Arnaud On Mon, May 18, 2009 at 10:13 PM, John Casey jdca...@commonjava.org wrote: I just grepped the uberjar file listing in RC2 for 'ightweight' and came up with nothing. Are you sure the lightweight wagon is present in the copy you have?

Re: avoid oracle driver jar

2009-05-18 Thread Fabien KRUBA
You can may be try to define 2 profiles for your project:one for weblogic without the jdbc driver and one for jetty with that dependency... your profile can be activated by -P option on maven command line On Mon, May 18, 2009 at 4:56 PM, tubin gen fachh...@gmail.com wrote: I have maven

RE: avoid oracle driver jar

2009-05-18 Thread Martin Gainty
something like... assembly !-- TODO: a jarjar format would be better -- idear/id formats formatear/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet outputDirectory//outputDirectory /fileSet /fileSets dependencySets

Self-Extracting Maven Plugin

2009-05-18 Thread Ian Graham
Hello, I'm working on a Maven Reporting plugin that depends on a set of binaries to do its work, but I haven't been able to find a way to package those binaries with my plugin, and extract them for use at runtime. Ideally, I'd like to store the binaries and some associated configuration files,

Re: How can one handle release candidates in Maven?

2009-05-18 Thread sebb
On 15/05/2009, sebb seb...@gmail.com wrote: On 14/05/2009, Brian Fox bri...@infinity.nu wrote: On Thu, May 14, 2009 at 3:19 PM, Sahoo sa...@sun.com wrote: Brian, Thanks for the excellent write up. In approach #2, when a build is done by just replacing RC versions by

RE: Self-Extracting Maven Plugin

2009-05-18 Thread Edelson, Justin
1) Put the binaries in src/main/resources. (make sure resource filtering isn't enabled) 2) Watch them get compiled into your plugin's JAR file. 3) use Class.getResourceAsStream() to get an InputStream to each binary. 4) copy the bytes from the InputStream to a FileOutputStream. No need to use