Re: maven-compiler-plugin woes

2012-10-04 Thread Davis Ford
, version: 3.0.0-23-virtual, arch: i386, family: unix On Thu, Oct 4, 2012 at 2:22 PM, Davis Ford davisf...@gmail.com wrote: This doesn't make a whole lot of sense to me. Any idea what the problem is here? [INFO] BUILD FAILURE [INFO

resources-plugin, testResources, relative path, eclipse plugin

2010-06-03 Thread Davis Ford
Hi, I have a multi-module project. I have some test resources that a project needs at runtime that are defined in another project. I know the correct would be to move shared resources into their own project, but I don't have that luxury right now. So, I do this: testResources testResource

Re: resources-plugin, testResources, relative path, eclipse plugin

2010-06-03 Thread Davis Ford
I don't have the luxury -- product is preparing to ship, build refactorings won't be allowed. Not under my control right now. Believe me there are a lot of things I'd like to fix the right way. Any other options? On Thu, Jun 3, 2010 at 12:39 PM, Wayne Fay wayne...@gmail.com wrote: I have a

mvn classpath weirdness with eclipse plugin

2009-05-05 Thread Davis Ford
Hi, I've been using mvn for a lot of years now, but I've just encountered a bizarre issue that I have no explanation for. I am having trouble with the following dependencies dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId

org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Davis Ford
Hi, I just enabled all snapshots for plugins, and a side effect of this was to pull down org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of eclipse plugin. Now, my project breaks in eclipse b/c it sets the JDK to be (I think) the system default (which is JDK 1.5), but my

How to share resources across projects in Maven

2009-04-23 Thread Davis Ford
Hi Brian -- I'm trying to emulate your blog: http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/ for sharing resources across a multi-module project. It is a grand trick, but one that doesn't seem to be working for me. I have the config project setup just

Re: org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT ignores maven-compiler-plugin

2009-04-23 Thread Davis Ford
, Davis Ford davisf...@zenoconsulting.biz wrote: Hi, I just enabled all snapshots for plugins, and a side effect of this was to pull down org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of eclipse plugin. Now, my project breaks in eclipse b/c it sets the JDK to be (I think

Re: How to share resources across projects in Maven

2009-04-23 Thread Davis Ford
obvious. Can you attach some build logs? The dep plugin is pretty verbose about what it's doing so it should hopefully be obvious. On 4/23/2009 10:54 PM, Davis Ford wrote: Hi Brian -- I'm trying to emulate your blog: http://www.sonatype.com/people/2008/04/how-to-share-resources-across

maven-war-plugin: War Manifest Customization

2009-03-11 Thread Davis Ford
Hi, the war plugin explains how to customize the manifest here: http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html I can't seem to repeat this. I'm wondering what I'm doing wrong. Here's a quick example with two projects: one jar project (foo-bar), and one webapp

mvn package exclude transitive deps from war archive

2009-03-05 Thread Davis Ford
Hi, so I have a packagingwar/packaging project, with some dependencies, and I made all the deps be scopeprovided/scope, but when I run: $ mvn package It still creates a war file with all the deps and transitive deps under WEB-INF/lib/ - what am I doing wrong? Do I need to use the maven war

Re: mvn package exclude transitive deps from war archive

2009-03-05 Thread Davis Ford
project A's transitive dependencies are included in WEB-INF/lib and they are in the Manifest classpath. I want the latter but not the former. What am I missing? Thanks in advance, Davis On Thu, Mar 5, 2009 at 7:27 PM, Davis Ford davisf...@zenoconsulting.biz wrote: Hi, so I have a packagingwar

Re: mvn package exclude transitive deps from war archive

2009-03-05 Thread Davis Ford
Hi Wayne, thanks for the reply -- no luck on the clean. I still get all the jars. See my reply to my post. I configured the war plugin as per the webpage, but still no luck. On Thu, Mar 5, 2009 at 8:58 PM, Wayne Fay wayne...@gmail.com wrote: $ mvn package It still creates a war file with

Re: mvn package exclude transitive deps from war archive

2009-03-05 Thread Davis Ford
Hi Wayne, here's a more concrete example. I'm sure I'm just doing something stupid, but I hope this makes it easier to see the stupid-ness. Create a new jar project: mvn archetype:create -DgroupId=com.example -DartifactId=foo-bar Make the pom.xml look like this: project

resource filtering in pom.xml

2009-03-04 Thread Davis Ford
Is it possible to have maven do resource filtering on the fly inside the pom.xml -- albeit without writing to the file (i.e. in-memory only) For example, I might be using maven-sql-plugin: configuration driver${db.driver}/driver url${db.url}/url

Re: resource filtering in pom.xml

2009-03-04 Thread Davis Ford
Awesome -- exactly what I was looking for Thomas. Thank you. On Wed, Mar 4, 2009 at 11:53 AM, Thomas Marti thx...@schweiz.org wrote: Hello Davis You can use the Maven Properties Plugin = http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/ Greetings, Thomas Davis Ford wrote

how to stop pom downloads

2009-03-04 Thread Davis Ford
Hi, we have an internal repo here (using Archiva), and I manually deployed some jars to it. However, whenever I run a maven command it is constantly trying to check the pom against the server version. Example: Downloading:

Re: how to stop pom downloads

2009-03-04 Thread Davis Ford
slaps-forehead -- I did mvn install:install-file -- can you make the install command generate a pom.xml? On Wed, Mar 4, 2009 at 5:51 PM, Wendy Smoak wsm...@gmail.com wrote: On Wed, Mar 4, 2009 at 3:48 PM, Davis Ford davisf...@zenoconsulting.biz wrote: Hi, we have an internal repo here (using

Re: how to stop pom downloads

2009-03-04 Thread Davis Ford
. I tried deploying that to archiva and it just times out. soapboxI did not pick weblogic/soapbox On Wed, Mar 4, 2009 at 6:02 PM, David C. Hicks dhi...@i-hicks.org wrote: Wendy Smoak wrote: On Wed, Mar 4, 2009 at 3:56 PM, Davis Ford davisf...@zenoconsulting.biz wrote: slaps-forehead  -- I

Re: how to stop pom downloads

2009-03-04 Thread Davis Ford
True - although that would take me a long time. In any event, I ended up getting the 53MB weblogic.jar deployed to archiva - yay! On Wed, Mar 4, 2009 at 7:50 PM, Wayne Fay wayne...@gmail.com wrote: The only annoying thing is that weblogic.jar is 53MB.  I tried deploying that to archiva and it

Re: how to stop pom downloads

2009-03-04 Thread Davis Ford
. On Wed, Mar 4, 2009 at 8:58 PM, Barrie Treloar baerr...@gmail.com wrote: On Thu, Mar 5, 2009 at 12:09 PM, Davis Ford davisf...@zenoconsulting.biz wrote: True - although that would take me a long time.  In any event, I ended up getting the 53MB weblogic.jar deployed to archiva - yay! BEWARE

how to get eclipse plugin to process-test-resources?

2009-03-02 Thread Davis Ford
Hi, when I run the eclipse goal like this: mvn eclipse:eclipse I also want it to execute resources:testResources. I tried something like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: how to get eclipse plugin to process-test-resources?

2009-03-02 Thread Davis Ford
first example just do mvn process-test-resources On Mon, Mar 2, 2009 at 11:48 AM, Davis Ford davisf...@zenoconsulting.biz wrote: Hi, when I run the eclipse goal like this: mvn eclipse:eclipse I also want it to execute resources:testResources. I tried something like this: build

Re: maven-dependency-plugin

2008-03-25 Thread Davis Ford
Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 5:57 PM To: Maven Users List Subject: Re: maven-dependency-plugin Hi Brian, Indeed -- total goof-up on my part. I had multiple project pom.xml files and was editing the wrong one. It works like

Re: maven-dependency-plugin

2008-03-25 Thread Davis Ford
- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 10:31 AM To: Maven Users List Subject: Re: maven-dependency-plugin Brian, Maybe a dumb question, but is there a way I can just use the maven-dependency-plugin programatically to accomplish what I'm trying

Re: maven-dependency-plugin

2008-03-25 Thread Davis Ford
the dependency plugin. If you use the M2Eclipse plugin for eclipse, you can quickly create a plugin by using the maven-archetype-mojo archetype. -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 10:31 AM To: Maven Users

maven-dependency-plugin

2008-03-19 Thread Davis Ford
Hi, I'm trying to use the maven-dependency-plugin to dump a list of the project's dependencies out to a text file, but I can not seem to get it to do anything. relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId

Re: maven-dependency-plugin

2008-03-19 Thread Davis Ford
to the output? If not, then it's going to a file somewhere. It would be better to use ${project.build.directory}/output.txt instead so it goes to /target/output.txt -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:46 PM To: Maven

resources plugin question

2007-12-03 Thread Davis Ford
Hi, if I have the general maven project layout with the following: src/main/resources/mydirectory/file.xml and general pom.xml with this: version1.1/version Is it possible somehow using the resources plugin (or some other plugin) to cause it to deploy as a jar-file with the following directory

Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-17 Thread Davis Ford
parent and child at the same directory level, but this is not the case. I wish there were some way around this. Thanks for looking. Davis On 4/17/07, Barrie Treloar [EMAIL PROTECTED] wrote: On 4/17/07, Davis Ford [EMAIL PROTECTED] wrote: Hi, it appears that in order for eclipse to see relative

problem with dependency version ranges?

2007-04-17 Thread Davis Ford
Hi, I recently switched to 2.0.6 from 2.0.5. We use dependency version ranges in our jars, but today I am seeing a problem with them. mvn complains that it can no longer find the version range specified. Has anyone else seen this problem, and how to work around it? I have checked the our

Re: problem with dependency version ranges?

2007-04-17 Thread Davis Ford
Cleaning out the local repo resolves this problem. On 4/17/07, Davis Ford [EMAIL PROTECTED] wrote: Hi, I recently switched to 2.0.6 from 2.0.5. We use dependency version ranges in our jars, but today I am seeing a problem with them. mvn complains that it can no longer find the version range

mvn eclipse plugin missing required source folder

2007-04-16 Thread Davis Ford
Hello, I have a problem getting the mvn eclipse plugin recognizing a relative path resource directory. Using mvn 2.0.6. The project structure looks like this: editor subprojecta -pom.xml -src -subprojectb -pom.xml -src

Re: Is there a mvn command to clean the local repo?

2007-04-16 Thread Davis Ford
http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To

Re: Is there a mvn command to clean the local repo?

2007-04-16 Thread Davis Ford
single directory... for example, com directory under the local repo. There is only exclude but no include. B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED

Re: Maven : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Davis Ford
marouane - try the following: mvn eclipse:clean eclipse:eclipse then right-click the project in eclipse and choose refresh (or F5). running the mvn commands re-generates the .classpath, .project, and .settings files in the project dir, but eclipse does not scan for changes, so you have to

maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford
Hi, I posted on this earlier, but it fell on deaf ears, I guess. Here's a concrete example of the problem I'm experiencing. I followed the directions for the maven-eclipse-plugin on generating a multiple module project, as described here -

Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford
path -- I really can't seem to make it work. BTW: using eclipse 3.2.2. Any ideas? Regards, davis On 4/16/07, Haim Ashkenazi [EMAIL PROTECTED] wrote: Davis Ford wrote: [ .. ] The .classpath file for the guide-ide-eclipse-site project contains this: classpathentry kind=src path=D:/temp/guide-ide

Re: maven-eclipse-plugin has problem with muli-project resources

2007-04-16 Thread Davis Ford
to do this via the pom.xml? linkedResources link nameconf/name type2/type locationD:/temp/parent/conf/location /link /linkedResources On 4/17/07, Davis Ford [EMAIL PROTECTED] wrote

Re: relativePath not working

2007-04-13 Thread Davis Ford
? ). If it does, then maybe there's something maybe something in your maven project is causing the failure. Thanks http://www.nabble.com/file/7847/relative-path-of-parent.zip relative-path-of-parent.zip , Franz Davis Ford-2 wrote: Hi Adrian, I've tried nearly everything. Note, I'm using 2.0.6. I

relativePath not working

2007-04-12 Thread Davis Ford
Hi, I'm using mvn 2.0.6 I have a simple structure parent_project sub_project pom.xml pom.xml parent_project has this: groupIdmy.org/groupId artifactIdparent/artifactId version1.0-SNAPSHOT/version packagingpom/packaging sub_project has this: parent

Re: relativePath not working

2007-04-12 Thread Davis Ford
to be a bug prohibiting 1 from working in some scenerioes) Adrian From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Fri 4/13/2007 8:51 AM To: Maven Users List Subject: relativePath not working Hi, I'm using mvn 2.0.6 I have a simple structure parent_project

q on mvn dependency plugin

2007-04-12 Thread Davis Ford
hi, i know that mvn depenendency:resolve depdendency:build-classpath will dump a classpath list of all transitive/non-transitive jars. i was wondering if there was some other way, either with the dependency plugin, or with any other plugin, to generate the same output but in nicely formatted

IsolatedClassLoader - URL with spaces %20 problem

2007-02-19 Thread Davis Ford
He, we're using maven 2.0.4 (although I just tried 2.0.5 and the same problem exists), and we're using Hibernate Entity Manager 3.2.1-ga, and we're on a Windows Platform. These 3 things don't seem to work together. The problem is the default repo for maven jars contains spaces on windows

Re: IsolatedClassLoader - URL with spaces %20 problem

2007-02-19 Thread Davis Ford
; } On 2/19/07, Davis Ford [EMAIL PROTECTED] wrote: He, we're using maven 2.0.4 (although I just tried 2.0.5 and the same problem exists), and we're using Hibernate Entity Manager 3.2.1-ga, and we're on a Windows Platform. These 3 things don't seem to work together. The problem is the default repo

mvn and JUnit 4.1

2006-12-07 Thread Davis Ford
Hi, we use JUnit 4.1 in eclipse, but when we run the tests from the cmd line with mvn, it seems to fail and not use JUnit 4.1 but it uses the old 3.8.1. Is there some way to force mvn to use JUnit 4.1? The mvn release is 2.0.4 we are using. Thanks in advance, Davis

m2 javadoc report plugin?

2006-06-15 Thread Davis Ford
Hi, with maven 1.x I used to be able to create javadoc reports (i.e. tag violation warnings, etc.) Now that we have moved to maven 2.0.4, I can't seem to figure out how to do that. The maven javadoc plugin http://maven.apache.org/plugins/maven-javadoc-plugin for m2 does not describe this

surefire 2.2

2006-05-18 Thread Davis Ford
Hi just wondering if the group has experimented with the new surefire 2.2 plugin release, and if it does indeed solve the GC issue Brett indicates below. We are seeing this issue, and looking to update the plugin, but getting by with feeding arguments to the jvm for now. Regards, Davis FYI,

Re: mvn eclipse:plugin and project inheritance

2006-05-17 Thread Davis Ford
versionyour parent version/version /parent Taavi Davis Ford wrote: Hi, I have a parent pom.xml project in C:\someplace\pom.xml that has modulemoduleA/module modulemoduleB/module Then I have C:\someplace\moduleA\pom.xml C:\someplace\moduleB\pom.xml If I execute: C:\someplace\mvn

Central repo slow -- hangs often

2006-05-17 Thread Davis Ford
Hi, it seems getting to the central repo and downloading dependencies often hangs for me, and i have to restart the process again and again. I understand the intermittency of network issues, but is there any recommended solution for this? I added: mirrors mirroretc./mirror /mirrors a whole

wagon-ftp cannot be downloaded

2006-05-17 Thread Davis Ford
Hi, we use ftp to deploy to our local repo. As a litmus test for the environment, I completely wiped out my .m2/repository/* Then I tried to do a mvn test on one of my projects. This project has a parent pom.xml which has: build extensions extension

mvn eclipse:plugin and project inheritance

2006-05-16 Thread Davis Ford
Hi, I have a parent pom.xml project in C:\someplace\pom.xml that has modulemoduleA/module modulemoduleB/module Then I have C:\someplace\moduleA\pom.xml C:\someplace\moduleB\pom.xml If I execute: C:\someplace\mvn clean C:\someplace\mvn compile C:\someplace\mvn test That works great for

SNAPSHOT question

2006-05-16 Thread Davis Ford
Hi, if I have pom.xml for a project that has version1.0-SNAPSHOT/version and I do: mvn deploy It sends up a release with the timestamp in the 1.0-SNAPSHOT/ dir. However, what if a developer wants to do a release, not a snapshot? If I try mvn -Dversion=1.2 deploy It uploads a new SNAPSHOT

Re: SNAPSHOT question

2006-05-16 Thread Davis Ford
(better builds with maven), the user list archive, the maven website, etc for details. Wayne On 5/16/06, Davis Ford [EMAIL PROTECTED] wrote: Hi, if I have pom.xml for a project that has version1.0-SNAPSHOT/version and I do: mvn deploy It sends up a release with the timestamp in the 1.0-SNAPSHOT

Re: SNAPSHOT question

2006-05-16 Thread Davis Ford
, Davis Ford [EMAIL PROTECTED] wrote: Hi Wayne, I looked at mvn release, but it seems tied to SCM system. Unfortunately, we don't use svn or cvs -- and I have no clue how to integrate it with the thing we are using (I really wish we were using svn). Is there a simple example of using mvn

Re: SNAPSHOT question

2006-05-16 Thread Davis Ford
If you have some grand plan that you're working towards, and this does not apply or make sense for your organization or your SCM, then you can safely ignore it. But it just sounds like your SNAPSHOT versioning plan etc might be a little off from the traditional approach... Wayne On 5/16/06, Davis Ford

Maven 2 Emma Plugin?

2006-05-15 Thread Davis Ford
Hi, we used to use the maven-emma plugin and maven 1.* but have just upgraded to maven 2.0.4. If I put a dependency on emma like this: dependency groupIdemma/groupId artifactIdmaven-emma-plugin/artifactId version0.5/version

log4j config file and mvn

2006-05-11 Thread Davis Ford
Hi, I was wondering if someone might be able to describe how to solve the following problem: We have one master project pom.xml that has module/module in it. A team can check out a module that has its own pom.xml and build it independently. At the end of the day, the master pom.xml builds all

Re: maven + java.class.path

2006-02-10 Thread Davis Ford
] wrote: So, are the tests being forked? On 2/10/06, Davis Ford [EMAIL PROTECTED] wrote: Hello Dion, Thanks for responding. I should clarify -- the unit tests I am running are testing some code that use System.getProperty(java.class.path) -- and this code depends on the fact that the call

Re: maven + java.class.path

2006-02-10 Thread Davis Ford
On 2/10/06, Dion Gillard [EMAIL PROTECTED] wrote: On 2/10/06, Davis Ford [EMAIL PROTECTED] wrote: No, they run in the same JVM. This is a pretty simple test that anyone can do. Write a quick main program that does the following: System.out.println(System.getProperty(java.class.path

maven + java.class.path

2006-02-09 Thread Davis Ford
Hi, I wrote some code that uses the class path string from: System.getProperty(java.class.path); When I build with Maven on the command line it, this code: System.out.println(System.getProperty(java.class.path); produces this output: C:\Program Files\Apache Software Foundation\Maven

Re: maven + java.class.path

2006-02-09 Thread Davis Ford
Hi, I searched high and low on google, etc. and the mailing list archives. This means either my problem is unique, or I'm just doing something very dumb. I know maven is supposed to handle dependencies like jar files with the xml, but this is a case where: A unit test is run that introspects

Re: maven + java.class.path

2006-02-09 Thread Davis Ford
your tests? On 2/10/06, Davis Ford [EMAIL PROTECTED] wrote: Hi, I searched high and low on google, etc. and the mailing list archives. This means either my problem is unique, or I'm just doing something very dumb. I know maven is supposed to handle dependencies like jar files

Copy Jar?

2006-01-02 Thread Davis Ford
Hi, I'm using Maven 1.0.2 to build my jar. The jar is used as part of a different project called GeoServer that uses Jetty. Every time I build my jar, I need to manually copy it to $someDir$/geoserver/server/WEB-INF/lib/ in order to test my changes. I don't rebuild GeoServer software

Re: Copy Jar?

2006-01-02 Thread Davis Ford
- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 9:53 AM To: users@maven.apache.org Subject: Copy Jar? Hi, I'm using Maven 1.0.2 to build my jar. The jar is used as part of a different project called GeoServer that uses Jetty. Every time I build my jar, I