Re: maven package bloated

2010-08-28 Thread Dominic Mitchell
On Sat, Aug 28, 2010 at 12:12 PM, mudit tuli mudit.t...@gmail.com wrote: When I do maven package, this gives me a bloated WAR with all the dependencies which is 19MB in size. For some reasons I need to deploy WAR onto my VPS time and again to test. But deploying a 19MB war is time

Re: Getting from sf.net to central

2010-08-04 Thread Dominic Mitchell
On Wed, Aug 4, 2010 at 2:06 PM, Benson Margulies bimargul...@gmail.comwrote: Does sf.net still lack an approved 'forge' repository for replication to central? If so, can some kind soul please repost the link to the new facility at Sonatype for feeding central? This sounds like what you're

Re: XDoc and in a URL...

2009-08-20 Thread Dominic Mitchell
On 19 Aug 2009, at 18:22, BenoitX wrote: Thanks for your email. There is more to it than what you think... Yes we are using bit.ly but the bit.ly APIs and the javascript way to shorten the current page on-the-fly. So that way StatCVS/StatSVN can put a Twitter button on any page and the

Re: XDoc and in a URL...

2009-08-19 Thread Dominic Mitchell
On 19 Aug 2009, at 16:48, BenoitX wrote: I need to generate an XDOC with a header that contains a link to a javascript. So far, no problem. However, the URL where the code is contains a script type=text/javascript charset=utf-8

Profile activation based on current plugin?

2009-08-05 Thread Dominic Mitchell
Hi all, I'm wondering — is there a way to activate a profile based on the plugin specified on the command line? The reason for this is that I'm working with a cocoon project. Normally, the cocoon plugin gets bound to compile: plugin groupIdorg.apache.cocoon/groupId

Re: Profile activation based on current plugin?

2009-08-05 Thread Dominic Mitchell
email. -Dom -Stephen 2009/8/5 Dominic Mitchell d...@semantico.com Hi all, I'm wondering — is there a way to activate a profile based on the plugin specified on the command line? The reason for this is that I'm working with a cocoon project. Normally, the cocoon plugin gets bound

Re: Profile activation based on current plugin?

2009-08-05 Thread Dominic Mitchell
Sorry — hit send by accident. On 5 Aug 2009, at 14:43, Dominic Mitchell wrote: On 5 Aug 2009, at 14:10, Stephen Connolly wrote: if you think about this a bit more you will realise that what you are asking for does not make sense (unless you are trying to configure the plugin that you

Re: How to use mvn install but have all options in the pom.xml?

2009-08-02 Thread Dominic Mitchell
On 30 Jul 2009, at 20:19, jvsrvcs wrote: We do have a maven repository manager in place but it's only accessible inside the network when we are on location. It's trivial to get nexus running on your workstation. I keep one running on my laptop for when I'm not plugged in to our company

Re: process-sources: process the source code, for example to filter any values.

2009-06-17 Thread Dominic Mitchell
On 17 Jun 2009, at 08:29, Paolo Castagna wrote: Anders Hammar wrote: Found this through Google: http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm Not sure if it's the best way to do it though. Never tried filtering java source code. Thanks Anders

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-17 Thread Dominic Mitchell
On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote: sorry you're having so much trouble, robert -- i just tested 2.2.0- RC3, and it worked fine for me. Good luck on IRC! I agree — I installed 2.2.0-RC3 onto my path a couple of days ago and promptly forgot about it. :) I haven't noticed

Re: Maven + Cocoon 2.1.11

2009-06-12 Thread Dominic Mitchell
On 12 Jun 2009, at 12:42, Armin Ehrenfels wrote: sorry, I don't know of any. As I wrote in my last reply , there was a discussion on the mail lists about how to use maven with Cocoon 2.1.11, but at that time, there were archetypes available for Cocoon2.2 only. You're unlikely to see

Re: Maven + Cocoon 2.1.11

2009-06-12 Thread Dominic Mitchell
On 12 Jun 2009, at 12:57, Martin Gainty wrote: please keep us apprised as many others are (considering a) move to cocoon Just out of interest, why are you considering moving to Cocoon? -Dom - To unsubscribe, e-mail:

Re: Duplicate class warnings when using shade plugin

2009-06-10 Thread Dominic Mitchell
On 9 Jun 2009, at 22:00, James Adams wrote: I am building my JAR file using the shade plugin in order to give me an all-in-one JAR artifact which contains all dependency JARs. When I build using mvn clean install I always get thousands of message like the following, indicating that there's

Re: 回复: AW: About unittest run three times

2009-05-22 Thread Dominic Mitchell
On 22 May 2009, at 23:02, Forest wrote: Thanks for your clarification. I really aplied those features. I'd chang the object to only get test report. Are there any suggestions for setting the goals? By the way, are there any good practices for this case? The only thing I'd mention is

Re: [maven 2] assembly: repository from multiple modules

2009-05-19 Thread Dominic Mitchell
On 15 May 2009, at 22:36, Brian Fox wrote: The dependency:copy-dependencies can also produce a repository layout. Surely some combination of that plus assembly to zip it up should work. It's a good start, but it's not complete. For example, it doesn't include any plugins. Ideally,

Re: Suppressing reports in a profile

2009-05-13 Thread Dominic Mitchell
On 13 May 2009, at 06:38, Stephen Connolly wrote: have two profiles... first one active by default with all reports defined inside it. second profile is for your clients. when you activate a profile from the cli, that will automatically deactivate any profiles which are active by default

Suppressing reports in a profile

2009-05-12 Thread Dominic Mitchell
Is there any way to suppress reports in a profile? Normally, I want my site to include a bunch of reports (e.g. findbugs). However, I'm producing an external distribution of the site for 3rd party clients. There, I only want the javadocs and changes reports. I understand that I can use

Re: [PLEASE TEST] Maven 2.2.0-RC2

2009-05-06 Thread Dominic Mitchell
On 5 May 2009, at 01:02, John Casey wrote: After finding and cleaning up some code that seems to be tainted during some of our efforts at generifying the codebase, we've respun a new release candidate. If you have time, please give it a whirl:

Re: Best practices for avoiding duplicate configuration files

2009-04-28 Thread Dominic Mitchell
On 27 Apr 2009, at 21:32, Frédéric Camblor wrote: This is only a point of view but... Isn't the problem coming from the slf4f framework ? I don't really know this logging framework, but it astonishes me that it complains about multiple configuration in the classpath. Generally, framework

Re: Repo in parent dir...

2009-04-21 Thread Dominic Mitchell
On 21 Apr 2009, at 15:05, Stephen Connolly wrote: Last time I checked, setting up Nexus took me 10 minutes and you can run it quite safely on your own desktop... Likewise, I set up nexus on my laptop. It works like a charm, and makes using maven on the road much more pleasant. -Dom

Re: Mavenizing Existing Project Part Deux

2009-02-26 Thread Dominic Mitchell
On 25 Feb 2009, at 14:40, Steve Cohen wrote: I am thinking about this very carefully, and the option of not using Maven at all is still in play. So is the option of using Maven ONLY to grab third-party dependencies into a local repository. I did this the other day, using the

Re: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Dominic Mitchell
Hi, Lee! On 12 Feb 2009, at 15:08, Lee Goddard wrote: I am a new user of Maven, but have some experience of building Perl and C distributions. I hesitate to draw comparisons between maven and ExtUtils::MakeMaker. :-) I have a simple Tomcat Servlet project checked into SVN just as it

Re: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Dominic Mitchell
On 12 Feb 2009, at 15:39, Lee Goddard wrote: As Gérald said, you should keep your source and compiled artifacts separate. Oh yes, sounds like a very good idea. No argument from me! The maven standard (which seems reasonable to me) is that java source code lives under src/main/java.

Re: Maven + Junit 4.5 dependency does not work

2008-10-30 Thread Dominic Mitchell
On 29 Oct 2008, at 20:14, Petr V. wrote: I must be doing some thing very silly :-( I'm afraid so. This caught me out. :( public class AppTest extends TestCase In JUnit 4, you don't extend TestCase. Instead, you should import static org.junit.Assert.* to get at the assertions. If you

Accessing project version number from Java

2008-09-29 Thread Dominic Mitchell
What's the easiest way to get at the version number in the POM from Java? I've been using getResourceAsStream('META-INF/maven/groupId/artifactId/ pom.properties'); But this doesn't work while I'm developing in Eclipse (only when using the built jar file). Ideally, I'd like to somehow

Re: Accessing project version number from Java

2008-09-29 Thread Dominic Mitchell
On 29 Sep 2008, at 13:08, Brett Porter wrote: 2008/9/29 Dominic Mitchell [EMAIL PROTECTED]: What's the easiest way to get at the version number in the POM from Java? I've been using getResourceAsStream('META-INF/maven/groupId/artifactId/ pom.properties'); But this doesn't work while I'm

Re: Accessing project version number from Java

2008-09-29 Thread Dominic Mitchell
On 29 Sep 2008, at 13:22, Mark Hobson wrote: 2008/9/29 Dominic Mitchell [EMAIL PROTECTED]: What's the easiest way to get at the version number in the POM from Java? I've been using getResourceAsStream('META-INF/maven/groupId/artifactId/ pom.properties'); But this doesn't work while I'm