Re: [Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Néstor Boscán
Wayne XML is one of the most widespread and flexible languages out there, accept it, move on. We could all be investing 5 years in this discussion and we wouldn't be writing code that pays our salaries. I have been using maven on at least 70 java projects succesfully and now is a nightmare for me

Filtering with @@

2010-10-23 Thread squidy78
Hello I have the following section in my pom.xml: maven-resources-plugin 2.4.3 false @@ src/main/resources true localhost 1234 and in the src/main/resources directory is a config.properties with following entries: db.server = @@db.server@@ db.port = @@db.port@@ after runn

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread kayvan kazeminejad
Thank you for your suggestion. I had tried that already. I finally found out what the problem was from this link: http://docs.sun.com/app/docs/doc/821-1754/gjxff?l=ja&a=view On Oct 23, 2010, at 3:40 PM, Rusty Wright wrote: Have you tried adding it using the usual dependency element and usin

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread Rusty Wright
Excellent free maven books: http://www.sonatype.com/books.html On 2010-10-23 15:09, kayvan kazeminejad wrote: Hello all, First,I am new to maven and appreciate your help in advance. I need to add this jar file: glassfish-embedded-static-shell-3.1-b24.jar to surefire runtime so I can run my ju

Re: How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread Rusty Wright
Have you tried adding it using the usual dependency element and using the scope tag with test? For example, here's how I add easymock for just testing: org.easymock easymock ${version.easymock} test On 2010-10-23 15:09, kayva

How do I add a jar file to surefire runtime classpath?

2010-10-23 Thread kayvan kazeminejad
Hello all, First,I am new to maven and appreciate your help in advance. I need to add this jar file: glassfish-embedded-static-shell-3.1-b24.jar to surefire runtime so I can run my junit tests . Below configuration is not doing for me. org.apache.maven.plugins

Re: [Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Wayne Fay
> an understandable syntax. With lots of extra libraries. Would it have really > been so bad to base a declarative codebase on Prolog, a mature, proven > technology? I didn't say it before (saved as draft)... but I'd encourage you to create this Prolog-based build system in your free time over the

Re: [Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Graham Leggett
On 23 Oct 2010, at 11:15 PM, Kenneth McDonald wrote: Now, what are the claims made for (or implied by) maven: 1) That it is declaratively, not procedurally, based. 1-a) Whoop-te-do. So are makefiles. What "maven pom files are declarative" means in English is that the pom file contains facts

Re: [Maven Shell] - How to upgrade from maven 3.0-alpha-6 to maven 3.0

2010-10-23 Thread Stan
Thanks a lot you both. Le 23 octobre 2010 23:21, Arnaud Héritier a écrit : > 0.11-SNAPSHOT was updated to include it : > > > http://repository.sonatype.org/content/repositories/snapshots/org/sonatype/maven/shell/mvnsh-assembly/0.11-SNAPSHOT/ > > Arnaud > > On Oct 23, 2010, at 11:10 PM, Stan wr

Re: [Maven Shell] - How to upgrade from maven 3.0-alpha-6 to maven 3.0

2010-10-23 Thread Arnaud Héritier
0.11-SNAPSHOT was updated to include it : http://repository.sonatype.org/content/repositories/snapshots/org/sonatype/maven/shell/mvnsh-assembly/0.11-SNAPSHOT/ Arnaud On Oct 23, 2010, at 11:10 PM, Stan wrote: > Hello, > > I tried to upgrade from *maven 3.0-alpha-6* to *maven 3.0* within *maven

Re: [Maven Shell] - How to upgrade from maven 3.0-alpha-6 to maven 3.0

2010-10-23 Thread Olivier Lamy
Hi, Have a look here http://github.com/sonatype/mvnsh (3.0 is included) You have all instructions in the Building section to build mvnsh. 2010/10/23 Stan : > Hello, > > I tried to upgrade from *maven 3.0-alpha-6* to *maven 3.0* within *maven > shell*. > I copied all the jar files from *apache-mav

Re: [Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Brian Topping
On Oct 23, 2010, at 5:15 PM, Kenneth McDonald wrote: > First, note that I did tag this as repetitive: You don't need to be reading > it if you don't want to be rehashing recent issues. You might feel better now, but emailing future such works to file:/dev/null or articulating it to your dog mi

[Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Kenneth McDonald
First, note that I did tag this as repetitive: You don't need to be reading it if you don't want to be rehashing recent issues. However, I want to give a concrete example of just why I dislike maven (and all other XML solutions) so far. I am trying to do what I think should be a reasonably eas

[Maven Shell] - How to upgrade from maven 3.0-alpha-6 to maven 3.0

2010-10-23 Thread Stan
Hello, I tried to upgrade from *maven 3.0-alpha-6* to *maven 3.0* within *maven shell*. I copied all the jar files from *apache-maven-3.0\lib* to *mvnsh-0.10\lib* And I removed all **alpha*.jar* When I execute a maven command in the maven shell, I get the following exception: *java.lang.IllegalA

Re: Execute 2 remote shell scripts before and after deploy phase

2010-10-23 Thread Wendy Smoak
On Fri, Oct 22, 2010 at 4:22 AM, googoo wrote: > > I would like to execute 2 remote shell scripts from maven as a pre-deploy and > a post-deploy step. In Maven-speak, "deploy" means deploying to the remote repository. Are you thinking it's to an application server? If you describe the problem yo

Re: Invoking a plugin programmatically using maven 3 and scala

2010-10-23 Thread Andreas Gies
Hi there i *think* the key point was to call getMojoConfiguration on the Mojodescriptor I had resolved. In my case that gives me all the default configurations as I would have expected. I need only to set configs that differ from the default settings. I am attaching the latest code for my "pl