Classloader Problem with Maven 3.0.2

2011-01-14 Thread Neil Chaudhuri
I have upgraded from Maven 2.20 to 3.02, and I found many of my integration tests that used to pass are now failing because of a ClassCastException, which is an odd exception to find when no code has changed. I traced the issue to a classloader problem with Maven 3 that arises in another Java

RE: Classloader Problem with Maven 3.0.2

2011-01-14 Thread Neil Chaudhuri
of the failsafe plugin. I don't think it works with Maven 3. failsafe-m-p is now found at Apache Maven (not Codehaus Mojo): http://maven.apache.org/plugins/maven-failsafe-plugin/ Upgrade and retry! /Anders On Fri, Jan 14, 2011 at 20:27, Neil Chaudhuri nchaudh...@potomacfusion.comwrote: I have upgraded

RE: Classloader Problem with Maven 3.0.2

2011-01-14 Thread Neil Chaudhuri
block of testing and to create the classloader errors. Any insight is appreciated. Thanks. -Original Message- From: Neil Chaudhuri Sent: Friday, January 14, 2011 6:46 PM To: Maven Users List Subject: RE: Classloader Problem with Maven 3.0.2 I upgraded Failsafe to 2.7.1, and things

Issue with release:perform

2010-09-17 Thread Neil Chaudhuri
On release:perform (after a successful release:prepare), two curious things happen with my multi-module project: *Every tag and branch and trunk item gets downloaded to my machine. Thus it takes a while. All I want is for the tag I just created to get released. *After

RE: Issue with release:perform

2010-09-17 Thread Neil Chaudhuri
to say http://svn/myproject; rather than http://svn/myproject/trunk; this will then get maven to checkout TRUNK ( which should contain the pom.xml in its root directory ) and you should be good to go. -- Pull me down under... On Sat, Sep 18, 2010 at 10:38 AM, Neil Chaudhuri nchaudh

RE: Issue with release:perform

2010-09-17 Thread Neil Chaudhuri
. -- Pull me down under... On Sat, Sep 18, 2010 at 10:38 AM, Neil Chaudhuri nchaudh...@potomacfusion.com wrote: On release:perform (after a successful release:prepare), two curious things happen with my multi-module project: *Every tag and branch and trunk item gets downloaded to my

Release Plugin Failing on Commit

2010-09-03 Thread Neil Chaudhuri
I am using version 2.0 of the release plugin to tag a new version of my multi-module application, but at the end when it goes to commit to SVN SCM, I get the following: [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Path 'svn://SVN

Maven Tomcat Plugin - Context File

2010-08-06 Thread Neil Chaudhuri
I have a configuration file, call it myapp.xml, that would be found in conf\Catalina\localhost in a conventional deployment to indicate that the context for my application is to be found at /myapp. I don't want to include this file in my war. My question is simply where should I put myapp.xml

RE: Maven Tomcat Plugin - Context File

2010-08-06 Thread Neil Chaudhuri
/contextFile /configuration 2010/8/7 Neil Chaudhuri nchaudh...@potomacfusion.com: I have a configuration file, call it myapp.xml, that would be found in conf\Catalina\localhost in a conventional deployment to indicate that the context for my application is to be found at /myapp. I don't want

maven.build.timestamp Not Interpolated

2010-02-11 Thread Neil Chaudhuri
The subject pretty much says it all. I have included this property in a config file, but it isn't being interpolated. Do I need a special plugin to have this value be recognized? Or if this is dated, how can I get the timestamp for the build? Thanks.

Re: maven.build.timestamp Not Interpolated

2010-02-11 Thread Neil Chaudhuri
Thanks for the prompt response, Eric. I added the following to my pom: timestamp${maven.build.timestamp}/timestamp It is now one of several properties, but it still isn't being referenced for me in my config file. I am using Maven 2.2.1. All other properties are interpolated correctly. I am

Re: maven.build.timestamp Not Interpolated

2010-02-11 Thread Neil Chaudhuri
You got it. I had ${maven.build.timestamp} instead of just ${timestamp}. I caught it right after I sent the E-mail. A brilliant move on my part! Thanks for your help. On Feb 11, 2010, at 5:11 PM, Eric Chatellier wrote: Thanks for the prompt response, Eric. I added the following to my pom:

Getting the Profile Name From A Property

2010-02-10 Thread Neil Chaudhuri
Is there a built-in Maven property for obtaining the name of the profile currently active? Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Maven PDF Plugin Problems

2009-12-14 Thread Neil Chaudhuri
I am attempting to use the latest Maven PDF plugin just published with my multi-module Maven project. Even though site generation is working for me, I am having some issues with the PDF plugin and have a few questions: 1) Why must I have a site directory in every module? 2) When I

Profile-Based Naming

2009-12-07 Thread Neil Chaudhuri
I am using Maven profiles to generate my primary build artifact--a war file-for two different environments. I would like to have this war file be named differently based on the profile run. For example, I would like the dev profile to produce myapp-dev.war and the prod profile to produce

Putting a Release in the Repository

2009-11-19 Thread Neil Chaudhuri
I am using the prepare goal of the Maven Release Plugin to publish a release in SVN. The result of course is that the poms in the trunk and in my local copy are updated to the next version snapshot. What I want to do is to take the release in SVN and publish it to my local Nexus repository in the

RE: Putting a Release in the Repository

2009-11-19 Thread Neil Chaudhuri
Connolly stephen.alan.conno...@gmail.com wrote: mvn release:perform after the prepare Sent from my [rhymes with tryPod] ;-) On 19 Nov 2009, at 19:11, Neil Chaudhuri nchaudh...@potomacfusion.com wrote: I am using the prepare goal of the Maven Release Plugin to publish a release in SVN

Snapshot Deployment Best Practices

2009-11-13 Thread Neil Chaudhuri
I have figured out how to deploy all my artifacts to my local Nexus repository, and I have even set up my CI tool (TeamCity in my case) to deploy the snapshot artifacts every night. Because I am not at the release stage yet, I have just been deploying snapshot after snapshot. This means that

Using the Maven Deploy Plugin

2009-11-12 Thread Neil Chaudhuri
We have an internal Maven repository that I can view in my browser at http://myserver:8081/nexus/content/repositories/myRepo/. I am simply trying to upload my generated WAR file to this repository. I have set up credentials in settings.xml, and my pom is set up as follows: repository

RE: Using the Maven Deploy Plugin

2009-11-12 Thread Neil Chaudhuri
Message- From: Stevo Slavic [mailto:ssla...@gmail.com] Sent: Thu 11/12/2009 3:14 PM To: Maven Users List Subject: Re: Using the Maven Deploy Plugin http://maven.apache.org/pom.html#Repository Regards, Stevo. On Thu, Nov 12, 2009 at 9:30 PM, Neil Chaudhuri nchaudh...@potomacfusion.com wrote

RE: Using the Maven Deploy Plugin

2009-11-12 Thread Neil Chaudhuri
disk in a directory like myserver:8081/nexus/content/repositories/myRepo/ -Original Message- From: Neil Chaudhuri [mailto:nchaudh...@potomacfusion.com] Sent: Thursday, November 12, 2009 4:32 PM To: Maven Users List Subject: RE: Using the Maven Deploy Plugin As illuminating as that link is, I

Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
I would like to do something very simple at regular intervals (say every hour): *Build the primary artifact-- a WAR file *Check it into SVN at a specified location in the trunk How could I do this? Thanks.

RE: Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
] Sent: Wed 11/11/2009 11:00 AM To: Maven Users List Subject: Re: Automated Build and Check In I'd suggest not checking binaries in if you can help it. Source control isn't particularly efficient with binaries. 2009/11/11 Neil Chaudhuri nchaudh...@potomacfusion.com I would like to do something

RE: Automated Build and Check In

2009-11-11 Thread Neil Chaudhuri
generated WAR SNAPSHOT version to an internal maven repo (i.e. Nexus). Hudson can do this for you as well. On Nov 11, 2009, at 11:39 AM, Neil Chaudhuri wrote: I would like to do something very simple at regular intervals (say every hour): *Build the primary artifact-- a WAR file *Check

Release Plugin with Flat Multi-Module Projects

2009-10-24 Thread Neil Chaudhuri
I have a flat multi-module project as follows: myapp-parent --pom.xml myapp-persistence --pom.xml myapp-services --pom.xml The parent module is simply inherited by the others, and services aggregates persistence. I am using SVN SCM and Maven Release Plugin 2.0-beta-9. My goal with each

Maven JavaScript Plugin

2009-10-22 Thread Neil Chaudhuri
A colleague at work expressed an interest in doing a lot of Maven-like things in the JavaScript realm. I did some research and discovered the Maven JavaScript plugin. It looks neat, but it is an alpha version and seems to have little activity. I was simply hoping to find some comments from

Understanding Assembly Plugin

2009-09-21 Thread Neil Chaudhuri
I have 4 poms: 1) parent, which has common dependencies and configuration shared by children 2) persistence, which packages a jar and is a child of parent 3) services, which packages a war, is a child of parent, and has persistence as a dependency 4) logging, which packages a jar that is a

Blank Page with Jetty Plugin

2009-09-09 Thread Neil Chaudhuri
I am trying to get the Jetty plugin to work with Hibernate's c3p0 connection pool. The server seems to start just fine with run-war, but when I navigate to any URL at localhost:8080, I see nothing but a blank page. And I mean ANY. If it is just literally localhost:8080, I see a blank page. If I

RE: Blank Page with Jetty Plugin

2009-09-09 Thread Neil Chaudhuri
://tahoe.baselogic.com --- On Wed, Sep 9, 2009 at 10:43 AM, Neil Chaudhuri nchaudh...@potomacfusion.com wrote: I am trying to get the Jetty plugin to work with Hibernate's c3p0 connection pool. The server seems to start just fine with run-war, but when I navigate to any URL at localhost:8080

Tests Not Running After Executing SQL Script

2009-09-02 Thread Neil Chaudhuri
I am using Surefire and Failsafe to perform unit testing and integration testing respectively. In the latter case, I want to run a sql script in the pre-integration-test phase to put the database into a known state (not using DBUnit but the same idea). Here is what I have in my pom:

Failure When Compiling Tests

2009-08-16 Thread Neil Chaudhuri
My application is laid out precisely according to the Maven layout conventions. I can compile my source just fine and package it and everything! However, when I run my tests from the command line with mvn test, I get a cannot find symbol error referencing one of my source files--indeed, the

RE: Failure When Compiling Tests

2009-08-16 Thread Neil Chaudhuri
-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Sun, Aug 16, 2009 at 10:21 AM, Neil Chaudhuri nchaudh...@potomacfusion.com wrote: My application is laid out precisely according to the Maven

Hibernate 3 Plugin

2009-08-13 Thread Neil Chaudhuri
I am using Maven with JPA/Hibernate, and I would like to generate a DDL file to give to my DBAs. I am using the Hibernate 3 Maven plugin to do this. However, I keep getting the error [ERROR] Persistence unit not found: 'myapp'. Here is the relevant portion of the POM: plugin

RE: Hibernate 3 Plugin

2009-08-13 Thread Neil Chaudhuri
With Karl's suggestion, I changed my plugin definition as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.2/version executions execution