Re: Changing JDK version without specifying maven-compiler-plugin version

2013-11-26 Thread Laird Nelson
On Tuesday, November 26, 2013, Malte Skoruppa wrote: > > is there some way for me to achieve the following three things at the same > time: > (1) have Maven compile my source files with -source 1.4 (or anything > higher than 1.3) > (2) *not* specify the maven-compiler-plugin version to use; instead

Re: How to script the downloading of the latest snapshot of an artifact?

2013-11-19 Thread Laird Nelson
Have a look at this: http://stackoverflow.com/questions/7911620/using-the-nexus-rest-api-to-get-latest-artifact-version-for-given-groupid-artfic Basically unless you want the pain of digging into yet another undocumented overly verbose alpha API to do this programmatically, use the (documented, st

pluginManagement questions

2013-11-14 Thread Laird Nelson
Suppose I have a parent pom that makes use of the maven-enforcer-plugin. As a matter of fact I do, and it's public, so you can follow along at home: org.sonatype.oss oss-parent 7 Looking at that pom, there is this snippet in it: org.apache.maven.plugins maven-enforcer-plugi

Re: Trying to understand how maven finds source

2013-10-24 Thread Laird Nelson
mvn help:effective-pom will spit out the pom made up of the defaults plus anything you've overridden or added. Stand back; it's huge. Best, Laird On Thu, Oct 24, 2013 at 1:21 PM, wrote: > Maven has a 'convention over configuration' philosophy, which means that > the pom.xml doesn't need to sp

Re: SureFire 2.16 doesn't respect forkCount

2013-09-25 Thread Laird Nelson
On Wed, Sep 25, 2013 at 2:21 PM, Laird Nelson wrote: > However, I would still expect to see something in the system property, > yeah? > Aha, found the root issue here. If you set a system property whose sole contents is the following literal string: ${surefire.forkNumber} ...th

Re: SureFire 2.16 doesn't respect forkCount

2013-09-25 Thread Laird Nelson
On Wed, Sep 25, 2013 at 2:15 PM, Laird Nelson wrote: > Well, here's the innards of my test class itself so you might be able to > see if I'm doing something idiotic > Ah, dammit, I AM doing something idiotic. Or expecting something idiotic anyway. First up, I apologize for

Re: SureFire 2.16 doesn't respect forkCount

2013-09-25 Thread Laird Nelson
:07 PM, Andreas Gudian wrote: > That sounds bad. reuseForks=false and forkCount=2 should spawn up to two > JVMs in parallel (a new one for each test class), and the foobar parameter > should be populated with a value of 1 or 2 and be distinct between > concurrently running JVMs. If t

SureFire 2.16 doesn't respect forkCount

2013-09-25 Thread Laird Nelson
Having trouble believing what I'm seeing, especially given the excellent documentation at http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html, but it seems to me that specifying 2 and false using SureFire 2.16 simply doesn't do anything (it seems

maven-javadoc-plugin: includeTransitiveDependencies: only for compile scope?

2013-08-27 Thread Laird Nelson
I have an .ear file that I build using Maven. I rely on the maven-javadoc-plugin's jar goal to build javadoc for me. I use the includeTransitiveDependencies property to allow my .ear project to be fully javadoced: all the stuff that it depends on has -sources.jars and my intent is to have the plu

Maven ear plugin: cannot generate ejb-local-refs?

2013-07-26 Thread Laird Nelson
Wanted to confirm that although you can generate elements using the Maven ear plugin, you cannot generate in the application.xml from the plugin itself. My only alternative is to own the whole application.xml, i.e. disable its generation, yes? Thanks, Best, Laird -- http://about.me/lairdnelso

Re: Maven Mulit Module Project as Dependency

2013-06-23 Thread Laird Nelson
On Sun, Jun 23, 2013 at 6:51 AM, Baptiste MATHUS wrote: > One other way would be to define an additional module which would be of > type pom, and would serve as a dedicated import pom. That pom would simply > depend on the modules you want to provide. > I wanted to reiterate this point because t

Re: Install hack

2013-06-19 Thread Laird Nelson
On Wed, Jun 19, 2013 at 2:14 PM, Thomas Broyer wrote: > With copy, you declare the needed artifact in the plugin configuration. > From Maven's PoV there's no dependency between the module that copies and > one being copied. Right. OK. > That means Maven can choose to build those two modules

Install hack

2013-06-19 Thread Laird Nelson
I'm reading http://developer-blog.cloudbees.com/2012/12/maven-and-hack.htmlagain. I have this feeling it has a lot more information in it than I am able to parse out of it. I certainly get the basic gist: it is a warning to plugin developers and users everywhere to remember that you're supposed

Re: Using Maven to produce an EAR

2013-06-12 Thread Laird Nelson
On Wed, Jun 12, 2013 at 7:17 AM, rdiddly wrote: > Thanks Laird, that did the trick. BTW, I didn't specify the dependency in > the > EAR's pom. It's specified in the EJB-jar's pom and that dependency is > apparently being picked up when building the EAR. > There you go. If it helps, my .ear file

Re: Using Maven to produce an EAR

2013-06-11 Thread Laird Nelson
On Tue, Jun 11, 2013 at 1:26 PM, rdiddly wrote: > I found that if I didn't use the jarModule in the configuration, > thirdparty.jar was put into the root directory of the ear instead of in the > lib folder (which is where I believe I want it), so I added the jarModule > block to specify that the

Re: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

2013-05-13 Thread Laird Nelson
On Mon, May 13, 2013 at 7:53 AM, Corin Lawson wrote: > $ echo $JAVA_HOME > /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home > Look at what that ends with. > $ mvn --version > Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100) > Maven home: /usr/share/maven > Java version: 1.

Re: Shade plugin plus WAR overlays

2013-04-16 Thread Laird Nelson
On Tue, Apr 16, 2013 at 8:54 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > perhaps even defining a new packaging type so that I can > just go eggers-war > I have a similar requirement and never thought about the packaging type; what a great idea! Where is the documentation that

maven-compiler-plugin, fork, and Windows classpath length

2013-03-22 Thread Laird Nelson
I am using maven-compiler-plugin version 3.0. We use fork=true. We are seeing (I am pretty certain; haven't sorted through the boatloads of -X output yet) that the classpath being supplied to the maven-compiler-plugin is too long for Windows. (We're getting some weird errors out of the underlyin

Re: Unpacking jars into target/classes

2013-03-20 Thread Laird Nelson
On Sat, Mar 2, 2013 at 12:32 PM, Joachim Durchholz wrote: > I have two jars from an external source and need to merge their contents > into the target/classes tree until the process-classes phase. > I'm not sure what plugin(s) can be used to achieve this effect. > Offhand I would say you can use

Re: Provided scope dependencies

2013-03-15 Thread Laird Nelson
On Fri, Mar 15, 2013 at 3:14 AM, Patrick Schlebusch < patrick.schlebu...@kisters.de> wrote: > Otherwise that would mean I would need to first look at the POMs of all my > dependencies and basically copy all provided scope dependencies to my > project. Which kind of reminds me of software developme

Re: Provided scope dependencies

2013-03-14 Thread Laird Nelson
Mediating here; no position either way. I think the disconnect is: If my primordial project depends on javax.mail:mail in provided scope... ...and my higher-level project depends on my primordial project in compile scope... ...then at COMPILE TIME for my higher-level project I shouldn't have to

Re: Maven site plugin cannot find parent

2013-03-12 Thread Laird Nelson
, 2013 at 8:46 AM, Laird Nelson wrote: > I have a garden-variety multimodule project. > > Its aggregator pom in turn inherits from a non-SNAPSHOT parent present in > my local repository and in my Nexus. > > This project builds and deploys fine. > > When I run mvn site on i

Maven site plugin cannot find parent

2013-03-12 Thread Laird Nelson
I have a garden-variety multimodule project. Its aggregator pom in turn inherits from a non-SNAPSHOT parent present in my local repository and in my Nexus. This project builds and deploys fine. When I run mvn site on it (maven-site-plugin 3.2), the Maven site plugin cannot resolve the parent. T

Re: Deployment

2013-03-01 Thread Laird Nelson
Literally *just* stumbled across Bintray: https://bintray.com/beta Best, Laird On Fri, Mar 1, 2013 at 9:33 PM, Wayne Fay wrote: > > I was not thinking of adding to Maven, rather I was soliciting insight > > from the Maven community because I value their inventiveness. > > > > I am half way toy

Re: Escaping Velocity constructs in Markdown document during site generation?

2013-02-18 Thread Laird Nelson
y variations on this particular theme, or any that also involve backslashes. Attempting to insert decimal entities for these characters does not work. And so on. What project should I file a bug under? Best, Laird On Mon, Feb 18, 2013 at 7:49 PM, Laird Nelson wrote: > I'm using th

Escaping Velocity constructs in Markdown document during site generation?

2013-02-18 Thread Laird Nelson
I'm using the Markdown Doxia plugin to author my site documentation in Markdown. The particular page of content I'm using has a .vm suffix on it because I also filter in Maven pom properties. This combination of things turns out to need escaping all over the place. For example, one way of doing

Re: Doxia markdown module: em-dash?

2013-02-17 Thread Laird Nelson
On Sun, Feb 17, 2013 at 1:08 AM, Hervé BOUTEMY wrote: > I suppose you're hitting https://jira.codehaus.org/browse/DOXIA-480 Thanks! Best, Laird -- http://about.me/lairdnelson

Re: maven-surefire-plugin 2.13: test order (know about runOrder)?

2013-02-12 Thread Laird Nelson
On Tue, Feb 12, 2013 at 2:43 PM, Andreas Gudian wrote: > The execution order of the methods within a test class is in control of > Junit itself. > Thanks, Andreas; that explains it. Best, Laird -- http://about.me/lairdnelson

maven-surefire-plugin 2.13: test order (know about runOrder)?

2013-02-12 Thread Laird Nelson
Can one control the ordering of test *methods* inside a test class? I'm using JUnit 4.11 and Surefire 2.13. It seems to me from the wording of the runOrder parameter this would be used to choose what test *classes* to run in what order. One of our developers is pointing out that Surefire 2.13 se

Re: New Maven idea: include (import++)?

2013-02-07 Thread Laird Nelson
On Thu, Feb 7, 2013 at 6:55 AM, Matthew Adams wrote: > Sheesh. Maybe it's worth documenting that explicitly. For whatever > reason, after reading the import documentation, I wouldn't > have thought to just add pom to my convenience pom. > Like I said, don't feel bad; it took me years before I r

Re: New Maven idea: include (import++)?

2013-02-05 Thread Laird Nelson
On Tue, Feb 5, 2013 at 6:10 AM, Matthew Adams wrote: > What I was looking > for was a way to define a new artifact in a pom that, if used in a > consuming artifact's , would include all of the dependencies > in the referenced artifact. Hello; you can do this today by simply declaring a "normal"

Surefire 2.13: minor test failure summary problem

2013-01-27 Thread Laird Nelson
Hi; hope this is the right place to start investigating this. I'm using the maven-surefire-plugin version 2.13 coupled with JUnit 4.10 by way of Maven 3.0.4. I recently completed a first pass at refactoring some of my stuff and lots of tests failed. I noticed that the top line of the Surefire su

Re: What's better, properties or configuration

2013-01-26 Thread Laird Nelson
On Sat, Jan 26, 2013 at 12:10 AM, Joachim Durchholz wrote: > E.g. > > > 1.7 > 1.7 > > > vs. > > > > > org.apache.maven.**plugins > maven-compiler-**plugin > 3.0 > > 1.7 > 1.7 > > > > > Proper

Re: Turning on -Xlint:all using maven-compiler-plugin 3.0 in builtin, non-forking mode?

2012-12-31 Thread Laird Nelson
On Mon, Dec 31, 2012 at 9:36 AM, Anders Hammar wrote: > Please file a ticket about that. Adding a "patch" (suggested text change) > is also very helpful. Sure thing. Happy 2013! Best, Laird -- http://about.me/lairdnelson

Re: Turning on -Xlint:all using maven-compiler-plugin 3.0 in builtin, non-forking mode?

2012-12-31 Thread Laird Nelson
On Sun, Dec 30, 2012 at 11:53 PM, Anders Hammar wrote: > Have a look at this IT: > > http://svn.apache.org/viewvc/maven/plugins/tags/maven-compiler-plugin-3.0/src/it/mcompiler-179/ > Thanks. I wasn't having any luck with without verbosity also being on (don't know why), but did the trick. No

Re: Maven profiles and resource filtering

2012-12-27 Thread Laird Nelson
On Thu, Dec 27, 2012 at 11:27 AM, Maven User wrote: > Are you saying "unless of course you happen to work for a company that is > forced to produce to the exacting standard "? > Yes. > I don't know anyone following the rules 100% - including any of the > containers available today > I'm n

Re: Maven profiles and resource filtering

2012-12-27 Thread Laird Nelson
On Thu, Dec 27, 2012 at 7:46 AM, Maven User wrote: > A - yes, all your "configuration" should be OUTSIDE your war/ear/jar > files! > > Don't repackage per env Also, don't force someone to unfurl your > artifact, alter config, then re-roll it > Right, unless of course you happen to b

Re: Maven profiles and resource filtering

2012-12-26 Thread Laird Nelson
On Wed, Dec 26, 2012 at 10:54 AM, Niranjan Rao wrote: > I read the blog entry and still confused about why we should not be using > profiles. Perhaps I am just being dumb. > No, it's just not explained very well. Maven wants your build to be repeatable. That means when you build version 21, an

Re: Seeking feedback on “Recursive Maven considered harmful”

2012-12-17 Thread Laird Nelson
On Mon, Dec 17, 2012 at 3:36 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > Another issue is that people abuse the "install" hack far more often than > they should... > Hi; this is the first I've read anywhere about the "install hack". Where can I find out more about it? > In

Re: can't find maven dependencies

2012-11-27 Thread Laird Nelson
On Tue, Nov 27, 2012 at 8:43 AM, daniel echalar wrote: > To add a dependency to my pom.xml, usually, I google the artifact, class, > jar and then go to http://mvnrepository.com and try luck by searching key > words, however sometimes it takes too much time, or I get stuck. > So the question is, i

Re: Referencing a parent POM without relativePath

2012-11-26 Thread Laird Nelson
On Mon, Nov 26, 2012 at 3:37 PM, Curtis Rueden wrote: > However, I still think it worth noting, since it is a related issue with > Maven's behavior with respect to "doing the right thing" with relativePaths Indeed. For us, implicit relative path behavior (of ../pom.xml) shows up commonly when

Re: Referencing a parent POM without relativePath

2012-11-23 Thread Laird Nelson
On Fri, Nov 23, 2012 at 12:11 PM, Anders Hammar wrote: > Well, the corp pom should not be in the parent folder of any project. It's > a standalone project. > Yes; sorry if I contributed noise--my point was only to call attention to what the absence of meant, not to comment on any particular pro

Re: Referencing a parent POM without relativePath

2012-11-23 Thread Laird Nelson
On Fri, Nov 23, 2012 at 11:22 AM, Benson Margulies wrote: > You just name the G/A/V and no relativePath, and Maven will download > just as it would a dependency. > Well, not exactly; if there is no element present, then Maven behaves as though ../pom.xml were specified. If that file is a workin

Re: how to proxy a one nexus instance via another local one

2012-11-09 Thread Laird Nelson
On Fri, Nov 9, 2012 at 2:01 PM, Davis, Chad wrote: > 1) set up local nexus to have a proxy repo that proxies the release > nexus's "public" group, if this even works technically > I've been told on this list this is a no-no, because you have to pick an artifact type when you proxy (release

Re: Repository Order

2012-10-25 Thread Laird Nelson
On Thu, Oct 25, 2012 at 8:52 AM, Alberto Ivo wrote: > Let me see if I got it: > You are to be forgiven for not fully understanding. The Maven documentation makes extensive reference to the element, and even instructs you on how to add it to your pom.xml ( http://maven.apache.org/guides/introdu

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Laird Nelson
On Mon, Oct 22, 2012 at 2:56 PM, Brian Topping wrote: > Laird, any environment with multiple developers and multiple repositories > is Exhibit 1 for using a repository manager like Nexus. > And I run one locally, and my company runs one as well. > Once you have that running, one proxies remote

Re: Version ranges not working

2012-09-30 Thread Laird Nelson
On Sun, Sep 30, 2012 at 12:28 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > I have other thoughts but my 2.75 yr old son now is demanding to play > racing cars on my phone, so I need to hit send on this mail now ;-) > I love it when priorities rear their ugly head. :-) Trust

Re: What does the "tag" parameter for release:branch do?

2012-09-28 Thread Laird Nelson
On Fri, Sep 28, 2012 at 12:34 AM, Anders Lindgren < anders.lindg...@cinnober.com> wrote: > I would guess that it is used by SCM's like CVS which takes an existing > tag as base for a new branch. > The explanation could be better as many of the other parameters > describes SVN specific usage. > Th

Re: What does the "tag" parameter for release:branch do?

2012-09-27 Thread Laird Nelson
On Thu, Sep 27, 2012 at 9:48 AM, Laird Nelson wrote: > I can't figure out what the tag parameter is supposed to do for the > maven-release-plugin branch goal. > I'm guessing that this is just a mistake; much of the branch goal seems to bear a striking similarity to the perfor

What does the "tag" parameter for release:branch do?

2012-09-27 Thread Laird Nelson
I can't figure out what the tag parameter is supposed to do for the maven-release-plugin branch goal. Could someone point me at some alternate source of documentation? The maven-release-plugin branch goal simply says ( http://maven.apache.org/plugins/maven-release-plugin/branch-mojo.html#tag): T

Re: buildnumber-maven-plugin question regarding useLastCommittedRevision parameter

2012-09-19 Thread Laird Nelson
On Wed, Sep 19, 2012 at 11:30 AM, Laird Nelson wrote: > There is a parameter in buildnumber-maven-plugin that is named > useLastCommittedRevision ( > http://mojo.codehaus.org/buildnumber-maven-plugin/create-mojo.html#useLastCommittedRevision). > Its default is false. Why on earth w

buildnumber-maven-plugin question regarding useLastCommittedRevision parameter

2012-09-19 Thread Laird Nelson
I really hope this is an intelligent question. :-) It really does concern the buildnumber-maven-plugin if you have the patience to get through this message. Thanks in advance. I have a Subversion repository and a multi-module Maven project underneath it. When I do svn info from the root, let's

Re: Pass jam args to surefire on the command line

2012-09-10 Thread Laird Nelson
On Mon, Sep 10, 2012 at 8:52 AM, John Kramer wrote: > Quick question. Is there a way to pass arguments to the JVMs that > surefire starts from the maven command line. > Hi, John; any parameter that has a documented "expression" can be invoked on the command line instead, like this: mvn somegoa

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
On Fri, Aug 24, 2012 at 1:52 PM, David Hoffer wrote: > We have been having nothing but trouble with Nexus and > Maven3 with the time-stamped snapshots and all the various metadata > files that Nexus spits out (which confuse Maven and IDEs). Oh, so this whole thing is a Nexus problem? Is that w

Re: Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
On Fri, Aug 24, 2012 at 1:31 PM, Laird Nelson wrote: > I fear this is a stupid question, but I can't find any information > anywhere about Maven metadata. :-( Always like to correct myself when I say something that isn't true. It turns out there is some documentat

Maven/Nexus metadata interaction question

2012-08-24 Thread Laird Nelson
I fear this is a stupid question, but I can't find any information anywhere about Maven metadata. :-( I have the world's simplest Jenkins/Maven/Nexus setup. I have a job on Jenkins that (today only, never before) began failing because it claims it cannot resolve various SNAPSHOT artifacts from N

Re: Best Practices for Passwords and Usernames

2012-08-15 Thread Laird Nelson
On Wed, Aug 15, 2012 at 12:54 PM, Eric Kolotyluk wrote: > > Basically, when I have a situation where I have some username and password > for the scm plugin, where do I store such information, and how do I > configure the scm plugin, the release plugin, etc. to find that > information? > When a ser

Re: Best Practices for Passwords and Usernames

2012-08-15 Thread Laird Nelson
On Wed, Aug 15, 2012 at 5:41 AM, Eric Kolotyluk wrote: > Are there some best practices around how and where to store usernames, > passwords and other secret information wrt the local user? You may have already read this, but: http://maven.apache.org/guides/mini/guide-encryption.html Best, Laird

optional dependency in test scope

2012-08-14 Thread Laird Nelson
One other "I've spent too much time on this" question. I've been working with Maven for years, so understand it pretty well. But this particular combination of options has always stumped me. I've read http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies

"scope managed from compile"

2012-08-14 Thread Laird Nelson
I have spent a fair amount of time trying to parse this message in the dependency:tree output. I think that it is trying to tell me that a entry, declared as part of a stanza somewhere--and thus a description of constraints that should apply throughout the project for dependencies of this kind,

Re: Properties file exlusion from dependency

2012-08-14 Thread Laird Nelson
On Tue, Aug 14, 2012 at 8:53 AM, Wright, Omari wrote: > Is this possible? If so, how can I do it? > You might be asking: "I depend on an artifact. It has a properties file in it that gets read or is otherwise present on the classpath. This interferes with my system. I would like to continue d

Re: maven-dependency-plugin 2.5 no longer honors excludes property

2012-08-13 Thread Laird Nelson
On Mon, Aug 13, 2012 at 10:41 AM, Laird Nelson wrote: > Before I file a bug, is this a known issue? I see that it is: http://jira.codehaus.org/browse/MDEP-365 Best, Laird -- http://about.me/lairdnelson

maven-dependency-plugin 2.5 no longer honors excludes property

2012-08-13 Thread Laird Nelson
I think that I've noticed that the Maven dependency plugin's "excludes" property (for the unpack goal) is no longer honored. Before I file a bug, is this a known issue? If all I do is change the version of the plugin from 2.5 to 2.4 its output changes to reflect the specified excludes. Best, Lai

Re: maven-assembly-plugin and dependencySet includes format

2012-08-02 Thread Laird Nelson
On Thu, Aug 2, 2012 at 1:35 PM, Anders Hammar wrote: > Please file a JIRA ticket [1] for the plugin's documentation to be fixed! > Done: http://jira.codehaus.org/browse/MASSEMBLY-620 Best, Laird -- http://about.me/lairdnelson

Re: maven-assembly-plugin and dependencySet includes format

2012-08-02 Thread Laird Nelson
On Thu, Aug 2, 2012 at 12:49 PM, Laird Nelson wrote: > Which is it? > The format that works is none of these (!). In fact in version 2.3 of the maven-assembly-plugin it needs to be: groupId:artifactId:type:classifier[:version] So, for example: org.liquibase:liquibase-core:zip:bin

maven-assembly-plugin and dependencySet includes format

2012-08-02 Thread Laird Nelson
The Sonatype book says that an include element in the assembly descriptor may be groupId:artifactId:classifier:type ( http://www.sonatype.com/books/mvnref-book/reference/assemblies-sect-controlling-contents.html). It may of course be other things as well. The maven-assembly-plugin documentation s

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Laird Nelson
On Fri, Jul 27, 2012 at 7:27 AM, Martin Gainty wrote: > Marcus > you can copy applicable resources with maven-resources-plugin > http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.htmljustremember > to hook the phase you want to bind to e.g. > validatemaven phases are

Re: Maven and parallel execution: fundamentally borked, right?

2012-07-20 Thread Laird Nelson
On Fri, Jul 20, 2012 at 2:54 PM, Olivier Lamy wrote: > What is your os/jdk ? > OSX 10.6.8/JDK 1.6.0_33 Forking the compiler did the trick, but I'd rather not if I can. Best, Laird -- http://about.me/lairdnelson

Re: Maven and parallel execution: fundamentally borked, right?

2012-07-20 Thread Laird Nelson
On Fri, Jul 20, 2012 at 2:17 PM, Dennis Lundberg wrote: > Hi > > Parallel execution works fine, but you need to update the version of > maven-compiler-plugin to the latest version 2.5.1. You are being bitten > by a bug in that plugin: > > http://jira.codehaus.org/browse/MCOMPILER-170 > > OK; trie

Maven and parallel execution: fundamentally borked, right?

2012-07-20 Thread Laird Nelson
I have never gotten the -T option to Maven to work. On a simple jar project that gets scheduled, periodically the compiler will say things like this: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project com-foobar-api: Compilation

Re: Maven Enforcer plugin: can I make it be quiet?

2012-07-20 Thread Laird Nelson
On Thu, Jul 19, 2012 at 4:27 PM, Barrie Treloar wrote: > Laird, can you try the snapshot and see if that fixes the problem? > That does the trick; I'd be grateful if you would release it. Best, Laird -- http://about.me/lairdnelson

Re: Maven Enforcer plugin: can I make it be quiet?

2012-07-19 Thread Laird Nelson
On Thu, Jul 19, 2012 at 4:27 PM, Barrie Treloar wrote: > Laird, can you try the snapshot and see if that fixes the problem? > Sure; which snapshot, now? 1.2-SNAPSHOT could not be found via oss.sonatype.org or repo1. Not sure what other repo to try? Best, Laird -- http://about.me/lairdnelson

Maven Enforcer plugin: can I make it be quiet?

2012-07-19 Thread Laird Nelson
The Maven Enforcer plugin version 1.1.1 outputs a ton of information at the INFO level that seems to me to be repetitive and uninteresting. Here is an excerpt from a normal run: [INFO] javax.annotation:jsr250-api 1.0 1.0 [INFO] javax.inject:javax.inject 1 1 [INFO] javax.inject:javax.inject 1 1 [I

Multi-module site problems: parent pom not downloaded

2012-07-02 Thread Laird Nelson
My apologies for what I am sure is just dumb user error. However, I could not find the proper documentation to read. I have a multi-module project. All of the submodules inherit from the root pom.xml. This root pom.xml inherits, in turn, from a corporate pom.xml that is hosted elsewhere. Conse

Re: How to correctly make an EJB module dependend of the interface JAR of a RAR?

2012-06-25 Thread Laird Nelson
On Mon, Jun 25, 2012 at 2:27 AM, Markus Karg wrote: > Any other opinions? Any solutions? I cannot believe that an EAR must not > only contain the RAR but also a duplicate (!) of the RA' public interface. Recall that a .rar can be deployed as a standalone module, consumable by other modules (inc

Re: any public nexus repo manager I can use for my project

2012-06-20 Thread Laird Nelson
On Wed, Jun 20, 2012 at 11:37 AM, fachhoch wrote: > I want to use nexus > for my maven, as my devlopers are remote scattered , I cannot provide one > nexus installation for all of them I am wondering if there is any public > nexus avaliable whihc I can use > No. This is an undeveloped m

Re: Disabling profile that is present in settings.xml activeProfiles section

2012-05-09 Thread Laird Nelson
On Wed, May 9, 2012 at 5:42 PM, Laird Nelson wrote: > I invoke a build elsewhere like this (in part): > > mvn clean help:effective-settings -P"!foo" > > I get back this (in part): > > http://maven.apache.org/SETTINGS/1.1.0";> > > foo > >

Disabling profile that is present in settings.xml activeProfiles section

2012-05-09 Thread Laird Nelson
Hello; I am seeing behavior that I had a question about regarding deactivating profiles. I have a settings file that contains: foo I invoke a build elsewhere like this (in part): mvn clean help:effective-settings -P"!foo" I get back this (in part): http://maven.apache.org/SETTINGS/1.1.0";

Re: Reducing SNAPSHOT redundancy

2012-05-08 Thread Laird Nelson
On Tue, May 8, 2012 at 12:13 PM, Anders Hammar wrote: > Don't add "-o" to this. That's something different not impacting > artifacts produced in a multi-module build. > Right; I know; it sets the offline status. I used it here to prove a point: that when present, Maven will not go to remote rep

Re: Reducing SNAPSHOT redundancy

2012-05-08 Thread Laird Nelson
On Tue, May 8, 2012 at 12:05 PM, Anders Hammar wrote: > Doing "mvn dpeloy" on a larger multi-module build will not do this for > the latter part of the build. So, what you want is "mvn test". Dumb, slightly tangential question: will mvn -o clean test on a multi-module build work? My assumption

Re: Reducing SNAPSHOT redundancy

2012-05-07 Thread Laird Nelson
On Mon, May 7, 2012 at 4:31 PM, Curtis Rueden wrote: > However, there is a lot of redundancy between snapshot JAR files. Often, a > commit will involve only one of the 30 submodules, but all 30 will > ultimately be rebuilt and redeployed, resulting in a plethora of snapshot > versions. > I was

Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 5:56 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > Looks like something is going wrong alright > The part I don't understand is why it appears that the method description indicates that the method takes a parameter. I wonder if this is a problem in JUni

Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 5:30 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > there is your #fail > > mvn clean install -fae -Pminlog '-Dtest=TestCaseFoo#testBar' > Thanks again for your prompt response. I don't see how the quoting of the -Dtest= part would help, but I did it just

Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 12:36 PM, Laird Nelson wrote: > mvn clean install -fae -Pminlog -Dtest='TestCaseFoo#testBar' > I also tried -Dtest='TestCaseFoo#testB*' which failed with the same error, so that told me that it was indeed able to find the name of the test me

Re: Surefire unable to find "bar" test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
On Tue, May 1, 2012 at 12:31 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > you'd need to escape it with \ or quote the entire -D > Yes, I am running on MacOS. Sorry; didn't indicate that I had done that (single-quoted the string). Here was the totality of my command line,

Surefire unable to find "bar" test method when passed -Dtest=Foo#bar

2012-05-01 Thread Laird Nelson
I have a test class; let's call it TestCaseFoo. When I run surefire:test with no value for the "test" property, this class is found and all of its test methods execute. I would like to run just one of those methods. So I tried invoking Maven like this: mvn clean test -Dtest=TestCaseFoo#testBar

Re: Avoiding duplicate POM code: profiles, inheritance, properties

2012-04-02 Thread Laird Nelson
On Mon, Apr 2, 2012 at 7:55 AM, Gillet Thomas (2) < thomas.gille...@consultant.volvo.com> wrote: > Seems my first post was really not clear. Trying to make it simpler: > > Basically, my main concern is to be able to package separately parts of > the POM: > - plugin configuration and/or dependencie

Re: generate-sources target called twice

2012-03-23 Thread Laird Nelson
On Tue, Mar 20, 2012 at 7:05 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > if you are writing a plugin yourself, you can add the generated code > to the compile classpath from your plugin itself once out of the > hacking stage Momentarily hijacking this--could you kindly point

Re: Maven deploy plugin: altDeploymentRepository: snapshots OK?

2012-03-21 Thread Laird Nelson
On Wed, Mar 21, 2012 at 2:10 PM, Olivier Lamy wrote: > Use something like > > > > ${distMgmtSnapshotsId} > ${distMgmtSnapshotsName} > ${distMgmtSnapshotsUrl} > > > > >Snapshot Repository >Snapshot Repository >http://host:port > /repository/snapshots/ > >

Maven deploy plugin: altDeploymentRepository: snapshots OK?

2012-03-21 Thread Laird Nelson
If I am deploying a SNAPSHOT artifact, but I wish to supply the altDeploymentRepository property on the command line, is Maven or the plugin smart enough to realize that I'm deploying a SNAPSHOT? I ask because the "regular" distributionManagement element has *two* entries: one for releases, and on

Re: Skip default execution?

2012-03-14 Thread Laird Nelson
On Wed, Mar 14, 2012 at 2:08 PM, Maven User wrote: > I'm doing this: > . > >org.apache.maven.plugins >maven-war-plugin > > >war > Set the id to default-war and see if that does the trick.

maven-javadoc-plugin: use -source.jar artifacts?

2012-02-10 Thread Laird Nelson
Does the maven-javadoc-plugin work on source files exclusively, or could I, for example, run it on a monstrous .ear project and have it pick up sources.jars where they exist? For example, Enunciate, a tool to generate JAX-RS documentation, which requires source code access, automatically finds a d

Re: Plugin configuration and property precedence question

2011-12-13 Thread Laird Nelson
On Tue, Dec 13, 2011 at 4:32 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > i think of it like so... > > if no value in plugin configuration in pom, then evaluate expression, if > expression evaluates to null, then use default value, if still here, don't > inject into the field (

Re: Plugin configuration and property precedence question

2011-12-13 Thread Laird Nelson
On Tue, Dec 13, 2011 at 12:39 PM, Laird Nelson wrote: > On Tue, Dec 13, 2011 at 12:36 PM, Guillaume Polet < > guillaume.po...@gmail.com> wrote: > >> use mvn help:effective-pom to find out. My guess would be 1.5. >> > > OK; I was more curious to know how one wo

Re: Plugin configuration and property precedence question

2011-12-13 Thread Laird Nelson
On Tue, Dec 13, 2011 at 12:36 PM, Guillaume Polet wrote: > use mvn help:effective-pom to find out. My guess would be 1.5. > OK; I was more curious to know how one would determine whether there was a bug in Maven's property precedence rules. If the answer is: "use Maven and see what it says, tha

Plugin configuration and property precedence question

2011-12-13 Thread Laird Nelson
I've noticed that some plugins feature expressions that, when present as properties, will override configuration values. So, taking the maven-compiler-plugin as an arbitrary example, I can configure its "source" property like this: 1.6 ...or I could simply set a property in my pom.xml file (

ANN: h2-maven-plugin 1.0

2011-11-29 Thread Laird Nelson
My apologies if this is not the appropriate kind of list for this sort of thing, but I thought that other Maven users might be interested in my h2-maven-plugin: https://github.com/ljnelson/h2-maven-plugin. I asked on IRC if there was a better list but got no replies. Anyway, it should be availabl

Re: Sort dependencies topologically

2011-11-08 Thread Laird Nelson
le? Because I have problems when it > comes to retrieve MavenProject objects with the buildFromRepository method. > It throws some exceptions. I suspect that my artifacts are not always > resolved when I call this method. > > Thank you so much! > Jérémy > > On Mon, Nov 7, 2011

Re: Sort dependencies topologically

2011-11-07 Thread Laird Nelson
On Mon, Nov 7, 2011 at 12:29 PM, Jérémy wrote: > I'm trying to sort the dependencies expressed in the pom.xml (including the > transitive ones) in a topological way. > Hello; I faced the same problem and found a solution. Given that most of the classes involved were undocumented, it remains har

Re: Replacing properties with Maven.

2011-10-25 Thread Laird Nelson
On Tue, Oct 25, 2011 at 9:09 AM, MavenUser8979 wrote: > I have one requirement where I want to read all the parameterized > properties > from one file and replace it in other file. Hello! I'm sorry you've gotten such short answers. I'll see if I can be of more help. Property replacement is a

<    1   2   3   4   >