RE: How to create 3 different jars from a single mvn package command?

2007-05-10 Thread Chris Hilton
I might have to try the assembly plugin method. Personally, I use a jar task in an antrun plugin execution to create the jars, then use the buildhelper plugin to attach them to the project. Chris -Original Message- From: Stefano Bagnara [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 May,

RE: org.mozilla.javascript repo?

2007-04-17 Thread Chris Hilton
I think you're looking for the rhino:js artifacts. http://www.mvnrepository.com/artifact/rhino/js Chris -Original Message- From: mateamargo [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 April, 2007 15:52 To: users@maven.apache.org Subject: org.mozilla.javascript repo? I'm

RE: Tools.jar Apple

2007-03-06 Thread Chris Hilton
I don't think you need to add tools.jar as a dependency on Mac. See http://maven.apache.org/general.html#tools-jar-dependency Chris -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Tuesday, 06 March, 2007 13:19 To: Maven Users List Subject: Tools.jar Apple

RE: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
Here's the dependencies we use for regexp in antrun: dependency groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.5/version /dependency dependency groupIdjakarta-regexp/groupId

RE: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
=^(.*?)-(.*).jar$$ to=\1.jar classpathref=maven.compile.classpath/ /copy /target /project Thanks -Jagan -Original Message- From: Chris Hilton [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 11:39 AM To: Maven Users List Subject: RE: Maven-antrun-plugin

RE: Maven-antrun-plugin regexp

2007-01-31 Thread Chris Hilton
? -Original Message- From: Chris Hilton [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 12:01 PM To: Maven Users List Subject: RE: Maven-antrun-plugin regexp You probably want the classpathref to be maven.plugin.classpath. -Original Message- From: Jagan Padmanabha Pillai

RE: mvn test - how to invoke a specific class from command line

2007-01-23 Thread Chris Hilton
We do something similar here with a profile: profile idtest-name/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration includes

RE: Maven2 is not working with Eclipse

2007-01-21 Thread Chris Hilton
Vote for MNGECLIPSE-232. http://jira.codehaus.org/browse/MNGECLIPSE-232 As a workaround, you can use the just released m2eclipse 0.0.10 and copy the settings.xml to your user-level settings (~/.m2/settings.xml) (resolved by MNGECLIPSE-29). Chris -Original Message- From: Morgovsky,

RE: [M2] Excluding some classes directories when packaging an artifact

2007-01-17 Thread Chris Hilton
I'm not sure if you can influence the main artifact like that, but you can use the antrun plugin to create a secondary jar artifact like you want, then use the build-helper-maven-plugin to attach it to the project with a classifier. When you use it as a dependendency, you'll have to be careful to

RE: Eclipse not picking up settings.xml

2007-01-14 Thread Chris Hilton
If you mean you're using the m2eclipse plugin, you should vote for MNGECLIPSE-232. Reading the user-level settings.xml file is fixed (MNGECLIPSE-29) but unreleased; you'll have to check the plugin out and build it if you want to use that. http://jira.codehaus.org/browse/MNGECLIPSE-232 Chris

RE: maven version management in ant

2007-01-09 Thread Chris Hilton
Perhaps I'm not following, but how is the my.compile.dependency.fileset different from what you want? Unless you really wanted a path reference, in which case you replace filesetId with pathId. Or you want that in a property? Then add: property name=my.compile.dependency.fileset

RE: maven version management in ant

2007-01-09 Thread Chris Hilton
management in ant That seems to be working! Thank you so much for this! How was one to know that pathId existed? -Original Message- From: Chris Hilton [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 11:16 AM To: Maven Users List Subject: RE: maven version management in ant

RE: Maven 2 Eclipse plugin : proxy problem : NoRouteToHostException

2007-01-09 Thread Chris Hilton
That's not working in 0.0.9, but has been fixed for 0.0.10, soon to be released (hopefully). http://jira.codehaus.org/browse/MNGECLIPSE-29 That fix will pick up your settings from the user home directory. Please vote for the following issue to add the ability to have m2eclipse pick up a global

RE: plugin not found error and jta

2007-01-09 Thread Chris Hilton
Javier, can you do me a favor and tell what the contents of the following directory in your repository is? Hopefully you can do this before the -U Wayne asked for. repository\org\apache\maven\plugins\maven-install-plugin Specifically, I'm wondering if it is just a metadata file, probably

RE: plugin not found error and jta

2007-01-09 Thread Chris Hilton
Sorry to interrupt, but I've seen something similar and think I now even have a reproducible test case. I can do the following: 1. Remove the maven-clean-plugin directory from my local repository. 2. Run 'mvn -o clean'. Obviously this fails because we need to download the clean plugin and we're

RE: plugin not found error and jta

2007-01-09 Thread Chris Hilton
it. And respond back with the JIRA Id so I can go vote and watch it. Wayne On 1/9/07, Chris Hilton [EMAIL PROTECTED] wrote: Sorry to interrupt, but I've seen something similar and think I now even have a reproducible test case. I can do the following: 1. Remove the maven-clean-plugin directory

RE: [m2] JUnit test setUp() and tearDown() not called

2007-01-08 Thread Chris Hilton
My guess would be that your tests were working with Ant's junit task which uses a forkmode of 'pertest' by default, but they are now failing because Maven's surefire plugin uses a default of 'once' by default. You can change the setting for the surefire plugin by adding a configuration something

RE: Issue in calling ant file from maven

2007-01-06 Thread Chris Hilton
You need to add the following dependency: dependency groupIdant/groupId artifactIdant-junit/artifactId version1.6.5/version /dependency Chris -Original Message- From: shinjan sen [mailto:[EMAIL PROTECTED] Sent: Saturday, 06

RE: Install Plugin Broken?

2007-01-04 Thread Chris Hilton
Does anyone know if there is a bug filed for this? I'm assuming this is similar to a problem we're seeing where a plugin download seems to result in only metadata in the local repository and further attempts to build just get the does not exist or no valid version could be found message. We've

RE: Use older/specific version of snapshot?

2006-11-28 Thread Chris Hilton
Have you tried this? version1.0-20061023.215122-6/version Chris -Original Message- From: spamsucks [mailto:[EMAIL PROTECTED] Sent: Tuesday, 28 November, 2006 11:05 To: users@maven.apache.org Subject: Use older/specific version of snapshot? Sorry for the newbie question, but I

RE: Maven Java Compiler Output?

2006-11-17 Thread Chris Hilton
It looks like your problem may be related to bug MNGECLIPSE-188: http://jira.codehaus.org/browse/MNGECLIPSE-188 That one couldn't be resolved because of the incomplete description, but it does have good advice in making sure that Eclipse is running in a JDK JRE, not a plain JRE. You can verify

RE: Re : Re : Generate source code with a JavaCC parser.

2006-11-17 Thread Chris Hilton
project. Thanks again. Julien - Message d'origine De : Chris Hilton [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Jeudi, 16 Novembre 2006, 18h36mn 05s Objet : RE: Generate source code with a JavaCC parser. To my eyes (and how I've done it before

RE: Generate source code with a JavaCC parser.

2006-11-16 Thread Chris Hilton
To my eyes (and how I've done it before), this would be two projects. One project to create the Parser and jar it. Then the second project would use that jar as a dependency and execute the appropriate class during the generate-sources phase. Or you could get a little fancy and have the first

RE: replace surefire with ant task

2006-11-03 Thread Chris Hilton
Some thoughts: 1. You might try experimenting with the forkMode setting for Surefire. Ant's junit task defaults to perTest, but the default for Surefire is once. Poorly written tests sometimes rely on the perTest behavior, but well-written tests should be able to run with once (IMHO). For that

RE: Using maven-antrun-plugin and taskdef

2006-10-30 Thread Chris Hilton
You need to add the jar as a dependency to the antrun plugin, something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions ... /executions dependencies dependency

RE: [m2] Running Emma: how to get HTML report?

2006-10-26 Thread Chris Hilton
task in a certain order? Greetings, Xavier. Chris Hilton wrote: There's an emma-maven-plugin in the Codehaus sandbox and available at the Codehaus snapshots repository you might want to use. http://mojo.codehaus.org/using-sandbox-plugins.html You'll need to specify something

RE: [m2] Running Emma: how to get HTML report?

2006-10-25 Thread Chris Hilton
There's an emma-maven-plugin in the Codehaus sandbox and available at the Codehaus snapshots repository you might want to use. http://mojo.codehaus.org/using-sandbox-plugins.html You'll need to specify something like this for the build configuration: build plugins plugin

RE: How do people search for jars and poms?

2006-10-13 Thread Chris Hilton
I've been doing the same thing a lot so here's some steps I recommend: - Inspect the manifest file in the jar. Sometimes you'll find the version number has helpfully been stowed away in there. - Look at the version history for the jar in your repository. Sometimes developers (even yourself!)

RE: Build fails when unit tests fail

2006-10-04 Thread Chris Hilton
mvn site -Dmaven.test.failure.ignore=true I think that will do the trick. Chris -Original Message- From: Zeitlin, Michael (ATL) [mailto:[EMAIL PROTECTED] Sent: Wednesday, 04 October, 2006 11:00 To: users@maven.apache.org Subject: Build fails when unit tests fail I am

RE: antrun plugin, junit classpath

2006-09-18 Thread Chris Hilton
You need a dependency like: dependency groupIdant/groupId artifactIdant-junit/artifactId version1.6.5/version /dependency Chris -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul Galbraith Sent: Monday,

RE: Maven 2 RMI

2006-09-06 Thread Chris Hilton
Have you tried mvn clean process-classes? process-classes being the phase you bound the antrun plugin to and occurs after compile. Chris -Original Message- From: Borut Bolčina [mailto:[EMAIL PROTECTED] Sent: Wednesday, 06 September, 2006 16:30 To: Maven Users List Subject: Re:

RE: Scripts for building multiple projects

2006-09-01 Thread Chris Hilton
I do it all the time. It's allowed us to start migrating our Ant build project-by-project to Maven without retraining our dev monkeys during the transition ;-). Projects that have been converted to Maven now have bare-bones build.xml files for per-project customization, but the majority of

RE: maven2: ant taskdef

2006-08-31 Thread Chris Hilton
this jar is included in the package later? thanks, Attila Subject: RE: maven2: ant taskdef Date: Mon, 28 Aug 2006 16:16:29 -0500 From: Chris Hilton [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Ah, if you need that jar for compilation also, you should probably

RE: Need help on the Emma plugin

2006-08-31 Thread Chris Hilton
. Chris -Original Message- From: Binod Gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 August, 2006 18:09 To: Chris Hilton Subject: Need help on the Emma plugin Hi Chris, I downloaded the Emma plugin from http://sourceforge.net/tracker/index.php? func=detailaid

RE: m2eclipse eclipse:eclipse

2006-08-28 Thread Chris Hilton
-Original Message- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Friday, 25 August, 2006 17:53 To: Maven Users List Subject: m2eclipse eclipse:eclipse I have a few questsion about m2eclipse: 1) When configuring the external tool how do you specify a profile?

RE: maven emma plugin

2006-08-28 Thread Chris Hilton
There is not as yet an official plugin, but you can download one that's been submitted to the Emma team here: http://sourceforge.net/tracker/index.php?func=detailaid=1481440group_i d=108932atid=651899 You'll have to build it yourself, but I've been using it for over a month without problem. I've

RE: maven2: ant taskdef

2006-08-28 Thread Chris Hilton
Something like this might do the trick: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idxmlbean/id phasepackage/phase configuration tasks

RE: maven2: ant taskdef

2006-08-28 Thread Chris Hilton
a solution to me. Any ideas? thanks again, Attila Subject: RE: maven2: ant taskdef Date: Mon, 28 Aug 2006 14:49:14 -0500 From: Chris Hilton [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Something like this might do the trick: plugin

RE: Suggestions for running Maven on an airgapped network

2006-08-23 Thread Chris Hilton
You probably realize this, but to expand on the answer below, you'll probably want two copies of Proximity running. One copy on your declass network you will use to download dependencies from external repositories and create a repository with the particular subset of dependencies you need. Burn

RE: Discarding 'pom.properties' 'pm.xml' at the time of JAR creation

2006-08-21 Thread Chris Hilton
I believe this feature is added in the 2.1 version of maven-jar-plugin, which hasn't been released yet. In the meantime, you can check it out of SVN, build it, and install it to your repository. Chris -Original Message- From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] Sent: Sunday,

RE: Re: Does maven2 eclipse plugin suppor multi-module projects

2006-08-21 Thread Chris Hilton
Pardon me asking the obvious, but has the maven nature been added to the modules? Chris -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kent Tong Sent: Saturday, 19 August, 2006 07:37 To: users@maven.apache.org Subject: Re: Does maven2 eclipse plugin suppor

RE: More informations for Maven 2.x Plug-in for Eclipse?

2006-08-17 Thread Chris Hilton
I'm not a dev on it so can't speak officially, but I'm a watcher on several bugs for it and know it is still being actively developed. I think there's a bit of a hold-up due to some changes in the way artifact resolution is being done to better integrate with Eclipse, which is hard enough on its

RE: converting directory structure to maven archetypes

2006-08-17 Thread Chris Hilton
Not that I recommend it, but if you do something like this, don't just move the files. Be sure to *copy* the rcs files on the filesystem to their new locations and then use cvs to remove the old files from the old locations. You'll preserve the history of the files in their new locations, but

RE: Getting Project Artifact with Antlib

2006-08-16 Thread Chris Hilton
Use the Maven tasks for Ant. http://maven.apache.org/ant-tasks.html Chris -Original Message- From: Olexandr Zakordonskyy [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 August, 2006 15:59 To: users@maven.apache.org Subject: Getting Project Artifact with Antlib Hello. Are

RE: Want to create a second jar for obfuscated classes

2006-08-11 Thread Chris Hilton
This is different than the way you want to do it, but generally I use antrun invocations to build my secondary artifacts (also influenced by the fact we're migrating from Ant, anyway, so it's easy to copy over). For you, it might look something like: plugin

RE: Optional Goals Dependencies

2006-08-09 Thread Chris Hilton
Then you probably want to become familiar with the wonderful world of profiles. http://maven.apache.org/guides/introduction/introduction-to-profiles.htm l Chris -Original Message- From: Douglas Ferguson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 09 August, 2006 17:25 To: 'Maven

RE: Offline documentation

2006-08-07 Thread Chris Hilton
You can probably check out the entire core Maven project and then run mvn site in the root directory to generate documentation for all of the core plugins. Chris Hilton -Original Message- From: Paul Michael Reilly [mailto:[EMAIL PROTECTED] Sent: Monday, 07 August, 2006 12:24

RE: using apt (annotation processing) with maven 2

2006-08-03 Thread Chris Hilton
There is a source jar for an apt plugin at: http://www.mvnrepository.com/artifact/org.apache.myfaces.tobago/maven-ap t-plugin/1.0.7 No idea if that works, but might be worth investigating. As far as the antrun option goes, you'll need to specify the ant-apt.jar as a dependency within the antrun

RE: [M2] Surefire POJO / Inner class issue

2006-08-01 Thread Chris Hilton
I also ran into this issue and found this page with a workaround: http://www.jroller.com/page/gridhaus?entry=maven2_testing_madness Basically, just configure Surefire to exclude the problem classes, like this worked for me: plugin artifactIdmaven-surefire-plugin/artifactId

RE: How to deselect classes while creating jar?

2006-07-27 Thread Chris Hilton
I'm far from an expert, but I think you have to put your exclude elements in a separate excludes element, like: includes include/ /includes excludes exclude/ /excludes -Original Message- From: Abhijit Diwan [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 00:28 To:

RE: 1 Module - N output jars

2006-07-27 Thread Chris Hilton
1. Are you sure you need to disable jar:jar? Or just modify it such that it builds one of your desired jars? I also needed to generate multiple jars for a project; you can read about my particular solution here: http://www.nabble.com/-maven2--Generating-several-artifacts-per-project-

RE: 1 Module - N output jars

2006-07-27 Thread Chris Hilton
the jar:jar goal to create a big jar containing all classes. you see what I mean? by the way, your answer is really appreciated. I did not know the build-helper-maven-plugin up until now. Regards, Alexis On 7/27/06, Chris Hilton [EMAIL PROTECTED] wrote: 1. Are you sure you need

RE: 1 Module - N output jars

2006-07-27 Thread Chris Hilton
://jira.codehaus.org/browse/MJAR-30. Until then, I guess you will have to create one big jar with everything and all of your custom jars will be secondary artifacts. Chris -Original Message- From: Chris Hilton Sent: Thursday, 27 July, 2006 12:19 To: 'Maven Users List' Subject: RE: 1 Module - N output

RE: maven-jar-plugin: include/exclude functionality?

2006-07-25 Thread Chris Hilton
Another option is to build your subset jars and attach them as artifacts with the build-helper plugin. See: http://www.nabble.com/-maven2--Generating-several-artifacts-per-project- --tf1689630.html#a4630045 Chris Hilton -Original Message- From: Denis Cabasson [mailto:[EMAIL PROTECTED

RE: deploying jars without version information

2006-07-25 Thread Chris Hilton
tasks for Maven to copy the files from the repository and rename them for local use. Chris Hilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Trent Albright Sent: Tuesday, 25 July, 2006 13:43 To: Maven Users List Subject: Re: deploying jars

RE: Emacs Support/Compiler Plugin

2006-06-29 Thread Chris Hilton
Wasn't your original problem with grabbing compilation errors from the output? You should probably take a look at the following message: http://www.nabble.com/forum/ViewPost.jtp?post=4125504framed=y It should be as easy as modifying your emacs setup. Chris -Original Message- From:

RE: maven ant tasks snapshot handling

2006-06-14 Thread Chris Hilton
No, you're not the only one; there's already a JIRA bug for it. http://jira.codehaus.org/browse/MNG-1408 Since there's no telling when the bug will be officially fixed, my solution has been to check out maven, apply the patch at the link, and build a new maven-artifact-ant jar (the command you

RE: working with custom-built org.apache.maven.plugins

2006-06-08 Thread Chris Hilton
okay, you should have no problem getting to this one. Chris Hilton -Original Message- From: Doug Douglass [mailto:[EMAIL PROTECTED] Sent: Thursday, 08 June, 2006 14:37 To: Maven Users List Subject: working with custom-built org.apache.maven.plugins I'm struggling with an issue

RE: [maven2] Generating several artifacts per project ?

2006-05-30 Thread Chris Hilton
as another artifact with a classifier to distinguish it from the primary artifact. You'll also need that classifier when referring to the secondary artifact as a dependency. Chris Hilton -Original Message- From: sol myr [mailto:[EMAIL PROTECTED] Sent: Friday, 26 May, 2006 17:50 To: users

RE: Why can't continuum find my local m2 repositories?

2006-05-10 Thread Chris Hilton
://maven.apache.org/maven-settings/settings.html Chris Hilton -Original Message- From: Dave Hoffer [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 May, 2006 10:15 To: Maven Users List Subject: RE: Why can't continuum find my local m2 repositories? The problem is that the continuum build