Re: Running a standalone application built with maven

2008-11-25 Thread Simon Lehmann
> > Unless you have a priori knowledge that in every possible environment > you'll actually have a File, the best thing is to open a stream from > that URL directly. > > I actually do this already (getResourceAsStream()), but good to point that out (in case someone else might read that). This

Re: Running a standalone application built with maven

2008-11-25 Thread John Stoneham
private File getFile( String resourceName ) { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); URL resource = cloader.getResource( resourceName ); if ( resource == null ) { throw new IllegalArgumentException( "Could not get resource: " + resourceName ); } return new

Re: mvn release:perform blowing up?

2008-11-25 Thread David C. Hicks
Have you tried using the "eclipse:eclipse" plugin? That's how I'm working with projects now. It works great - just remember to run it again if you change the dependencies in your pom. Then, you can arrange you project hierarchically, use the release plugin, and still be working in Eclipse.

Re: mvn release:perform blowing up?

2008-11-25 Thread Rusty Wright
Ok, thanks. I'm using the flat structure because that seems to work better with eclipse. I guess I'll just have to walk away from the release plugin. David C. Hicks wrote: It has been well over a year ago, but the last time I tried to do this, I encountered similar problems. It was at that

Re: Need *end-to-end* example using the maven assembly plugin

2008-11-25 Thread John Stoneham
On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote: Does anyone have an *end-to-end* example (with files you can send or attach) that will allow me to create a single jar with all dependencies using maven? Lisa, I believe that Sonatype's Maven book has exactly the example yo

Re: mvn release:perform blowing up?

2008-11-25 Thread David C. Hicks
It has been well over a year ago, but the last time I tried to do this, I encountered similar problems. It was at that time I learned that the "release" plugin couldn't work with the flat structure of my project - or so I was told by someone, then. I haven't tried it since then. Instead, I'v

Re: mvn release:perform blowing up?

2008-11-25 Thread Paulo Cesar Silva Reis
I have the same problem. I tried to get the answer here but no one could help me, maybe you are luck. On 11/24/08 7:58 PM, "Rusty Wright" <[EMAIL PROTECTED]> wrote: > I'm using the "flat" structure where the parent directory (cars_parent) is a > sibling of its sub modules. > > The parent's pom

Re: Need *end-to-end* example using the maven assembly plugin

2008-11-25 Thread Barrie Treloar
On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa <[EMAIL PROTECTED]> wrote: > > Does anyone have an *end-to-end* example (with files you can send or attach) > that will allow me to create a single jar with all dependencies using maven? This is more than just the assembly. Setting the MANIFEST.MF correc

Need *end-to-end* example using the maven assembly plugin

2008-11-25 Thread CheapLisa
Does anyone have an *end-to-end* example (with files you can send or attach) that will allow me to create a single jar with all dependencies using maven? In the end I want to be able to: $cd dist $java -jar patch-main.jar and have it run the public static void main(String[] args) method in o

Re: Question on Maven Build Lifecycle

2008-11-25 Thread Nick Stolwijk
There is no such thing as a phase which have been a success. Each plugin can call the build a failure. So if every plugin before that phase didn't call the build a failure it is a success. For example, you can set the maven-surefire-plugin (which runs your tests) to fail the build on a failed test

RE: [Public service announcement] mirrors of Central and considerate repo use

2008-11-25 Thread Brian E. Fox
This is an interesting concept we'd have to persue. If you want to know, email me directly and I can look you up and let you know what I see. We will probably start publishing a list of abusers in a hall of shame ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: Question on Maven Build Lifecycle

2008-11-25 Thread Durbha, Praveen (GE Healthcare)
Well, they are ANT tasks to apply a label to Clearcase using the maven-ant-run-plugin. Right now, I have these tasks set up to execute during the "install" phase of the lifecycle.. As this is one of the last few stages of the life cycle, it will execute only if the prior phases (compile, packagin

Re: [ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Mark Derricutt
If I hard code a element, things work fine thou... On Wed, Nov 26, 2008 at 7:50 AM, Mark Derricutt <[EMAIL PROTECTED]> wrote: > Strange, -- "It is easier to optimize correct code than to correct optimized code." -- Bill Harlan ---

Re: Bad checksum problem

2008-11-25 Thread Baptiste MATHUS
First, try purging your local repository. If you used maven-deploy-plugin to re-upload the jar with its pom, the sha1&md5 should be OK on the repo. Try running mvn dependency:purge-local-repository once before other goals. Cheers. 2008/11/24 Chris <[EMAIL PROTECTED]> > I'm getting a "checksum f

Re: [Public service announcement] mirrors of Central and considerate repo use

2008-11-25 Thread Baptiste MATHUS
2008/11/25 Brian E. Fox <[EMAIL PROTECTED]> > The central repo has been undergoing significant load lately, > Also, if you are using a repo manager, make sure to correctly configure > it to not make requests to public repositories for your internal > artifacts. Otherwise you are making a ton of

Re: [ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Mark Derricutt
Strange, I'm seeing: Caused by: org.apache.maven.plugin.MojoExecutionException: Invalid mail sender: name and email is mandatory (null (null)). at org.apache.maven.plugin.announcement.AnnouncementMailMojo.sendMessage(AnnouncementMailMojo.java:232) at org.apache.maven.plugin.anno

Re: mvn install errors

2008-11-25 Thread parnell
Thanks Nick, the project isn't mine. I'm just trying to build a local version on my computer. When I saw the snapshot I thought something was wrong I just didn't know what to change it to. Doing what you said and just going to the release worked fine. Thanks for the tip, Lee Nick Stolwijk-4

Re: [ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Mark Derricutt
Congrats. When using onlyCurrentVersion and the jira report, is it possible to override the version is looking for? For one reason or another, we currently have a single Jira project, with module names included in the version name, i.e. "Statistics Monitoring 1.1", so it'd be a nice to have that

Re: mvn install errors

2008-11-25 Thread Nick Stolwijk
The last released version of that plugin is 2.0. A while ago all old snapshots were removed from http://people.apache.org/repo/m2-snapshot-repository. You should not rely on snapshots from Maven. Those are for development only. If you need a new build of an unreleased plugin, you should build and d

Re: Question on Maven Build Lifecycle

2008-11-25 Thread Nick Stolwijk
If you want to bind it to the lifecycle, the last phase is deploy. [1] If you want to do it after deploy, you should invoke maven like "mvn deploy plugin:goal". [1] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference Nick Stolwijk ~Java Developer~

mvn install errors

2008-11-25 Thread Lee
Hi so I'm trying to build an application that uses maven but I get errors during the build that say a dependency is not found. The following is the error section. It's referencing a snapshot which seems wrong, is there a different repository that it should reference or a different plugin to use?

Re: Question on Maven Build Lifecycle

2008-11-25 Thread Wayne Fay
> I have ANT tasks configured in my POM file..I would like to have these > ANT tasks execute only if my Maven build is successful.. What kind of tasks are they? What determines a "successful" Maven build -- compiles OK? tests OK? package creation is OK? installed to local repo cache OK? deployed

Re: woodstox 3.2.x pom

2008-11-25 Thread Wayne Fay
It seems like the JAXWS-RT people simply need to update THEIR pom file to reflect Woodstox's groupId change. Woodstox changed its groupId to org.codehaus.woodstox a while back: http://jira.codehaus.org/browse/WSTX-86 As for the missing pom files, this is simply incorrect if you look in the proper

Question on Maven Build Lifecycle

2008-11-25 Thread Durbha, Praveen (GE Healthcare)
Hi, I have ANT tasks configured in my POM file..I would like to have these ANT tasks execute only if my Maven build is successful.. What build life cycle phase can I use to achieve this? Thanks very much!

Re: Running a standalone application built with maven

2008-11-25 Thread Simon Lehmann
Am Montag, den 24.11.2008, 22:38 -0800 schrieb Wayne Fay: > > The problem I have now is, that I don't know how to run my application > > once it is built with, say 'mvn package'. I tried 'java -jar > > People generally use the assembly plugin for this purpose. > http://maven.apache.org/plugins/mav

[SOLVED] Re: Compiler plugin cannot parse error message

2008-11-25 Thread Arnaud Bailly
Sorry for the noise, I was not using the right compiler. Thanks anyway Arnaud Bailly -- View this message in context: http://www.nabble.com/Compiler-plugin-cannot-parse-error-message-tp20684404p20684824.html Sent from the Maven - Users mailing list archive at Nabble.com.

Compiler plugin cannot parse error message

2008-11-25 Thread Arnaud Bailly
Hello, I am running in a very strange error. I have two machines with identical configurations (AFAICT): - maven 2.0.9 - jdk 1.5.0_16-b02 I am using maven-comiler-plugin version 2.0.2 On one machine, I got the following output: [INFO] [compiler:compile] [INFO] Compiling 54 source files to /hom

Re: pom properties

2008-11-25 Thread Gabriele Columbro
I've noticed OS dependent effects in the expansion of such properties (I often saw also 'pom.*' notation used) . The one which IMHO seems to always work is though: ${project.*} HTH, Gab 2008/11/25 Randy Kamradt <[EMAIL PROTECTED]> > There has been some confusion in the past about accessing p

Re: [ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Olivier Lamy
Hi, Yes documentation is missing (my bad :-) ). I do this : http://ip:port/tddetailbug.asp?ID=%ISSUE% http://ip:port/browse/%ISSUE% In changes.xml blabla. bla bla. -- Olivier 2008/11/25 Lewis, Eric <[EMAIL PROTECTED]>: > Great, thanks! > > Could you add some documentation on how to use t

pom properties

2008-11-25 Thread Randy Kamradt
There has been some confusion in the past about accessing pom properties using the ${} notation. I know that to access the project version you should use ${project.version}. But for pom defined properties is the project prefix required? for instance, in a pom.xml: 1 ${project.one}

[Public service announcement] mirrors of Central and considerate repo use

2008-11-25 Thread Brian E. Fox
The central repo has been undergoing significant load lately, most likely the result of people crawling and attempting to download all 70GB of it. I'd like to point out the availability of additional mirrors that you can use to increase your download performance and reduce the load on central. Thes

Re: Release and Test version of same artifact...

2008-11-25 Thread Gabriele Columbro
I believe you should/could happily achieve what you need by attaching another WAR to your build using the maven-build-helper-plugin as described here: http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Just configure: 1. maven-war-plugin execution (id=release) for the main WAR . This i

Re: cargo and jboss. ERROR

2008-11-25 Thread Gabriele Columbro
AFAIK you need to specify the plugin version, unless the plugin resides in the groupId: org.apache.maven.plugins If adding the version (e.g. 1.0-beta-1 as latest in http://repo2.maven.org/maven2/org/codehaus/cargo/cargo-maven2-plugin/ ) does not help, then I'm stuck ;) Hope this helps, Gab 20

AW: [ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Lewis, Eric
Great, thanks! Could you add some documentation on how to use the different issueLinkTemplatePerSystem configurations? Thanks, Eric > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im > Auftrag von Olivier Lamy > Gesendet: Dienstag, 25. November 2008 11:0

Re: woodstox 3.2.x pom

2008-11-25 Thread Henri Gomez
Here is part of the jaxws rt 2.1.5 woodstox wstx-asl 3.2.3 Strange the woodstox with groupid org.codehaus.woodstox is correct : http://repo2.maven.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/ Any advices help very welcome 2008/11/25 Henri Gomez <[EMAIL PROTECTED

woodstox 3.2.x pom

2008-11-25 Thread Henri Gomez
Hi to all, I'm using JAXWS 2.1.5 which require Woodstox 3.2.3. I could find woodstox POM in repo1. http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.3/ maven-metadata.xml 21-Nov-2007 04:35 170 maven-metadata.xml.md5 21-

antlr2, maven2 plugin and importvocab

2008-11-25 Thread James Cowan
Hi I am struggling to get the antlrv2 maven plugin to find the vocabulary of a grammar. If I put the grammar in src/main/antlr it finds the grammar ok but the importVocab command fails. If I put the vocabulary in the base directory of the maven project, it will find the vocabulary. However,

Re: Installing Maven on Mac OS X

2008-11-25 Thread Gabriel Garcia
darwinports is a package manager for the mac. You can read all about it in the url I posted. It includes Maven and it's acceptably up to date. 2008/11/25 Ricky <[EMAIL PROTECTED]>: > Hey Guys, > > I did an export on environment variables and the maven version changed and > worked fine. Thanks for

Re: Installing Maven on Mac OS X

2008-11-25 Thread Ricky
Hey Guys, I did an export on environment variables and the maven version changed and worked fine. Thanks for your help, appreciate it. Gabriel, what is mac ports ... i have been hearing some stuff about it, just curious if you don't mind my asking... On Mon, Nov 24, 2008 at 11:22 AM, Gabriel Gar

RE: Running a standalone application built with maven

2008-11-25 Thread Inman, Peter
I use the assembly plugin and it works really well. I've just started to learn and use maven with a stand alone application and so far I'm hooked! We have to move the full j2ee app soon, but this is a good starting point. Pete -Original Message- From: Simon Lehmann [mailto:[EMAIL PROTE

Re: AW: maven2eclipse ide integration

2008-11-25 Thread msclovis
Uli, Thanks for the quick reply. The Maven Central Repository Index is installed and the problem is still here. My version of Eclipse never seems to finish "updating indexes" in the Progress Task list. I guess this could be the issue. Mike Ulrich Wolf wrote: > > Hi, > > install the "Maven C

cargo and jboss. ERROR

2008-11-25 Thread koxkorrita
hello i am one mavien multiproject that has 2 web modules, 2 jar modules. into the ear module i have add the next but when i made mvn install apears the bellow error. Can you help me for solving this problem? thanks org.codehaus.cargo cargo-maven2-plugin jboss4x false existing ${jboss.home

[ANN] Maven Changes Plugin 2.1 Released

2008-11-25 Thread Olivier Lamy
The Maven team is pleased to announce the release of the Maven Changes Plugin, version 2.1. http://maven.apache.org/plugins/maven-changes-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-changes-plugin 2.1 Release Notes - Maven 2

Release and Test version of same artifact...

2008-11-25 Thread Raffaele
Hi all, I'm looking for a maven solution to do the following: I have a web-app, and so a war, containing some resource files, like repository.xml, hibernate.cfg etc... I've done two profiles, one for release and one for test which respectively put inside final war release resources and test resou

Re: guide-ant-plugin-development.html requires maven-plugin-plugin 2.3 but it is not newest

2008-11-25 Thread Anders Kristian Andersen
I have solved the problem my self, by looking into the great book maven-definitive-guide It is possible to give other version numbers maven-plugin-plugin version 2.4.3 maven-plugin-tools-ant version 2.4.3 maven-script-ant version 2.0.9 Hereby there is no need to use old versions, so the probl

Re: Running a standalone application built with maven

2008-11-25 Thread Stephen Connolly
2008/11/25 Wayne Fay <[EMAIL PROTECTED]> > > > load in my code with > > "this.getClass().getClassLoader().getResource(...)". All resources are > > John Casey sent this method a while ago that might be useful: > > private File getFile( String resourceName ) > { > ClassLoader cloader = Thread.curre