Re: Releasing a multi-module project to Maven Central?

2023-12-21 Thread Laird Nelson
the maven-source-plugin? Using > that value as execution id does nothing special. > > BTW, did you read https://central.sonatype.org/publish/publish-maven/ ? > > (No idea if any of this would solve your problem though) > > Le jeu. 21 déc. 2023, 03:15, Laird Nelson a écrit :

Re: Releasing a multi-module project to Maven Central?

2023-12-20 Thread Laird Nelson
On Wed, Dec 20, 2023 at 5:45 PM Laird Nelson wrote: > That is, when I tell the maven-release-plugin to activate the "deployment" > profile (via the releaseProfiles user property), I am told that the source > plugin has been invoked twice, and the build fails. > I think thi

Releasing a multi-module project to Maven Central?

2023-12-20 Thread Laird Nelson
I have a simple multi-module project. I am trying to release it with the maven-release-plugin. I've done this hundreds of times before with non-multi-module projects. One of the requirements of Maven Central is that your binary artifacts must be accompanied by source and javadoc artifacts.

Re: Surefire and System properties: Maven properties now passed through?

2023-07-27 Thread Laird Nelson
On Thu, Jul 27, 2023 at 3:33 PM Laird Nelson wrote: > Now I'm running Surefire 3.1.2 and noting that this all no longer seems > necessary: running mvn test -Dx=y without any special XML to "turn it into" > a System property works fine (my test can assert > System.getP

Surefire and System properties: Maven properties now passed through?

2023-07-27 Thread Laird Nelson
I dimly remember that once upon a time many years ago you had to explicitly specify the system properties to be made available to your JUnit tests running under Surefire: y (The documentation for this element reads in total: "List of System properties to pass to a provider.") That is,

Re: Re: How to add a library to the classpath

2023-01-06 Thread Laird Nelson
On Fri, Jan 6, 2023 at 8:57 AM Laird Nelson wrote: > On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain wrote: > >> Thanks for your help. To keep the discussion focused, the ask is how to >> add >> additional dependencies/jars to the classpath when running a program using &

Re: Re: How to add a library to the classpath

2023-01-06 Thread Laird Nelson
On Fri, Jan 6, 2023 at 8:55 AM Siddharth Jain wrote: > Thanks for your help. To keep the discussion focused, the ask is how to add > additional dependencies/jars to the classpath when running a program using > mvn exec:java and from what i understand it is not possible. > Correction: it is

Re: How to add a library to the classpath

2023-01-05 Thread Laird Nelson
On Thu, Jan 5, 2023 at 3:20 PM Siddharth Jain wrote: > I am using mvn exec:java to run a program. […] I want to add some more > libraries that I have > installed in M2 repository to the classpath at runtime and I do NOT want to > list them in the project's pom.xml. How can I do this? I tried

Re: Side effects of import scope?

2022-08-19 Thread Laird Nelson
ing model, so what purpose does > it serve to publish these properties in a bom? > > Regards, > Delany > > On Thu, 18 Aug 2022 at 20:56, Laird Nelson wrote: > > > On Wed, Aug 17, 2022 at 11:33 PM Herve Boutemy > > wrote: > > > > > I see one clarification

Re: Side effects of import scope?

2022-08-18 Thread Laird Nelson
On Wed, Aug 17, 2022 at 11:33 PM Herve Boutemy wrote: > I see one clarification to add to your "by value" explanation: what is > imported is the dependencyManagement content from the *effective* imported > model, ie with its interpolation (properties substitution) already done > That's

Side effects of import scope?

2022-08-17 Thread Laird Nelson
I have been using Maven for decades. I have a question about import scope. My mental model of this feature has always been the following: Suppose my project has: *pom* *import* My understanding is that the imported pom's element is effectively "copied

test-compile, -f ../../pom.xml, and modules

2021-06-08 Thread Laird Nelson
I ran into an odd situation today and want to see if it's a known problem. I work on Helidon (https://helidon.io). (Disclaimer: I never speak for my employer unless I say that's what I'm doing and I'm not doing that now.) I am compiling a Maven module that is also a "real" Java module (with a

Re: Using Maven/Aether resolver programmatically outside Maven environment

2021-05-07 Thread Laird Nelson
On Fri, May 7, 2021 at 8:31 AM Shahim Essaid wrote: > I found the following in the maven-provider artifact: > > > org.apache.maven.repository.internal.MavenRepositorySystemUtils.newSession() > > that is documented to configure a session for Maven like resolution and > dependency graph handling.

Re: Maven surefire plugin: parallel configuration not running tests in parallel

2021-02-16 Thread Laird Nelson
On Tue, Feb 16, 2021 at 4:18 PM Jay Crosley wrote: > I take it back, the maven-failsafe-plugin works with the junit > configuration options you suggested. That was the one combination I hadn’t > tried. Woo hoo! > I should have mentioned: there are no other configuration settings necessary.

Re: Maven surefire plugin: parallel configuration not running tests in parallel

2021-02-16 Thread Laird Nelson
On Tue, Feb 16, 2021 at 4:00 PM Jay Crosley wrote: > Thank you. That looked promising but alas, I get the same result. I tried > those with and without the other surefire configurations for running > parallel tests. I also tried (from browsing the web) the > maven-failsafe-plugin with the

Re: Maven surefire plugin: parallel configuration not running tests in parallel

2021-02-16 Thread Laird Nelson
JUnit5 does this in a strange way and they don't make it obvious. Try a recipe like this: maven-surefire-plugin junit.jupiter.execution.parallel.enabled=true junit.jupiter.execution.parallel.mode.default=concurrent Best, Laird On

Re: Why is Maven calling nonexistent Artifactory?

2020-01-15 Thread Laird Nelson
Additionally, transitive dependencies may have elements in their pom.xmls, one of which probably contains the URL in question. Best, Laird On Wed, Jan 15, 2020 at 2:29 PM Nick Stolwijk wrote: > Hi Roger, > > As far as I know there is no other repository then Maven Central baked into > Maven.

Re: [surefire] possible bug: cannot set line.separator in systemPropertyVariables

2019-05-07 Thread Laird Nelson
On Tue, May 7, 2019 at 2:07 PM Tibor Digana wrote: > strange thing is that the new line is ignored. > Lurking here, but (a) I thought in a forked execution were indeed passed on the command line as -D arguments, (b) the behavior may have to do instead with the fact that whitespace in XML is

Re: Programmatic access to enforcer plugin

2018-07-21 Thread Laird Nelson
On Sat, Jul 21, 2018 at 9:27 AM Elliotte Rusty Harold wrote: > If anyone has sample code > that queries repos for dependencies without M2E, that would also be > helpful. I've put together a project that runs Maven/Aether dependency resolution internals in a CDI 2.0 SE container:

Re: How to hide internal build details from deployed pom.xml ?

2018-04-19 Thread Laird Nelson
On Thu, Apr 19, 2018 at 9:24 PM wrote: > We have a maven project with many modules and a complex structure. The > master pom inherited by all the modules is filled up with plugin > configuration in pluginManagement. I’m looking for a way to hide these > details from

Re: javadoc:jar and generated sources

2018-03-15 Thread Laird Nelson
On Thu, Mar 15, 2018 at 1:38 AM Thomas Broyer wrote: > Be careful in your testing: javadoc:javadoc forks a lifecycle at > 'generate-sources' phase (and javadoc:aggregate at 'compile' phase), > whereas javadoc:jar does not! > An excellent point. > So running 'mvn

javadoc:jar and generated sources

2018-03-13 Thread Laird Nelson
I am finding that the sourcepath for javadoc:jar (when run as part of the release profile) is different from the sourcepath for javadoc:javadoc in my project that involves (protoc-) generated sources. (The net effect is that at release time, everything works fine up until release:perform, which

Re: maven-resolver question: difference between DependencySelector and DependencyFilter?

2018-02-26 Thread Laird Nelson
On Mon, Feb 26, 2018 at 5:46 PM Laird Nelson <ljnel...@gmail.com> wrote: > I'm noticing that when I rely on the default DependencySelector installed > by MavenRepositorySystemUtils#newSession(), which incorporates optionality, > scope, etc., I still get optional dependencies

maven-resolver question: difference between DependencySelector and DependencyFilter?

2018-02-26 Thread Laird Nelson
Hello: DependencySelector ( https://maven.apache.org/resolver/apidocs/org/eclipse/aether/collection/DependencySelector.html) has Javadocs that read (in part): "Decides what dependencies to include in the dependency graph". DependencyFilter (

Re: per-warm the maven cache for 2 stage Docker build

2018-02-20 Thread Laird Nelson
On Sun, Feb 4, 2018 at 3:58 AM Adam Sandor < adam.san...@container-solutions.com> wrote: > The only missing piece of the puzzle I can’t figure out is how to force > Maven to download ALL dependencies just by using the pom file and not > executing any compilation. [snip] > Now the problem -

Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-11-08 Thread Laird Nelson
On Wed, Nov 8, 2017 at 2:31 PM Eric Benzacar wrote: > But when I actually run the build all the interpolated version numbers > ignore the ${sha1} property as generated by the buildnumber-m-p, even > though I bound the create to the validate phase. > [snip] A snippet of my

Re: Mojo lifecycle?

2017-11-01 Thread Laird Nelson
ase/Disposable.html>, then your public void dispose() method will be called, at least by the default plugin management machinery present in Maven with no further customization. Best, Laird On Tue, Oct 31, 2017 at 3:03 PM Laird Nelson <ljnel...@gmail.com> wrote: > I know vaguely that u

Mojo lifecycle?

2017-10-31 Thread Laird Nelson
I know vaguely that under the covers Maven uses JSR-330 (@Inject). Are mojos treated as singletons, or per-execution objects? Is there a preDestroy()-like method that gets invoked when a mojo is destroyed? *Is* a mojo ever destroyed? Thanks, Best, Laird -- https://about.me/lairdnelson

Re: Auto-increment semantic version number for CD pipeline with git and docker

2017-10-27 Thread Laird Nelson
On Fri, Oct 27, 2017 at 1:58 AM ahardy42 wrote: > How can I tell maven to increment the version and commit the edited pom > without the CI platform seeing the commit and kicking off again in an > infinite loop? Indeed. If you just use the maven-release-plugin,

Re: Default update policy for plugin repositories is never?

2017-10-02 Thread Laird Nelson
You're probably referring indirectly to this: https://github.com/apache/maven/blob/maven-3.5.1/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml#L47-L49 Note the element: my understanding is this means that if you're using version 1.2.3 (and not 1.2.3-SNAPSHOT) of a

Re: Maven resources plugin issue?

2017-07-03 Thread Laird Nelson
On Mon, Jul 3, 2017 at 10:10 AM Karl Heinz Marbaise <khmarba...@gmx.de> wrote: > On 03/07/17 18:55, Laird Nelson wrote: > > Today I suddenly noticed that—Maven 3.5.0, Maven Resources Plugin > > 3.0.2—although the plugin is reporting that (a) filtering is off and (b) > >

Maven resources plugin issue?

2017-07-03 Thread Laird Nelson
I'm running into a strange situation with the maven-resources-plugin. I have my test resources set up normally, like this: src/test/resources …so basically the defaults made explicit. Today I suddenly noticed that—Maven 3.5.0, Maven Resources Plugin 3.0.2—although the plugin is

Transitive dependency question

2017-05-31 Thread Laird Nelson
(I've been working with Maven since at least 2004 and I think I *still* don't get transitive dependencies.) I have a pom.xml file of type pom that has some compile-scoped dependencies in it. (P1 -> A(compile), B(compile)) I have another project that depends on this pom in provided scope (I'm

Re: Maven Indexer questions

2017-03-30 Thread Laird Nelson
On Thu, Mar 30, 2017 at 2:34 PM Tamás Cservenák wrote: > sadly, not possible right now: > https://issues.apache.org/jira/browse/MINDEXER-81 Thank you; I've voted for the bug, watched it and added a comment:

Re: Maven Indexer questions

2017-03-30 Thread Laird Nelson
On Thu, Mar 30, 2017 at 9:44 AM Hervé BOUTEMY <herve.bout...@free.fr> wrote: > Le mercredi 29 mars 2017, 16:31:10 CEST Laird Nelson a écrit : > > I normally wouldn't ask these questions here, but there is no > documentation. > did you have a look at: > http://maven.

Maven Indexer questions

2017-03-29 Thread Laird Nelson
I am working with the maven-indexer componentry for the first time; please forgive my ignorance. I normally wouldn't ask these questions here, but there is no documentation. Suppose I am writing an IndexCreator implementation that wants to look at all the META-INF/MANIFEST.MF files reachable in

Re: Maven Resolver question regarding CollectRequest and mirrors

2017-03-17 Thread Laird Nelson
On Fri, Mar 17, 2017 at 4:01 PM Laird Nelson <ljnel...@gmail.com> wrote: > Nevertheless, I note that when I call > repositorySystem.resolveDependencies(repositorySystemSession, > dependencyRequest) (already excerpted above), the mirrors I've so > painstakingly installed i

Maven Resolver question regarding CollectRequest and mirrors

2017-03-17 Thread Laird Nelson
I'm proceeding further on my journey to do damage with the maven-resolver series of projects (https://maven.apache.org/resolver/) in a way that looks like Maven but doesn't use Maven itself (only these dependency resolution components). As I mentioned in some earlier posts to this list, I'm

Maven Resolver question re: local repo and mirrors

2017-03-15 Thread Laird Nelson
Hello; I'm putting together a client, I guess, of the Maven Artifact Resolver APIs (https://maven.apache.org/resolver/maven-resolver-api/). I am trying to make my client be as Maven-like as possible. So I'm using, among other things, MavenRepositorySystemUtils. I can, of course, go into more

Re: Maven central and indexing

2017-03-10 Thread Laird Nelson
On Fri, Mar 10, 2017 at 2:56 PM Laird Nelson <ljnel...@gmail.com> wrote: > Oh! I did just notice that you can search on a field called "tags" in > search.maven.org. It is not immediately clear to me where the contents > for this field come from. Does anyone know? >

Re: Maven central and indexing

2017-03-10 Thread Laird Nelson
On Fri, Mar 10, 2017 at 2:18 PM Laird Nelson <ljnel...@gmail.com> wrote: > On Fri, Mar 10, 2017 at 1:34 PM Manfred Moser <manf...@simpligility.com> > wrote: > > Laird Nelson wrote on 2017-03-10 13:03: > > I am also not sure I'm smart enough to grok all the implicat

Re: Maven central and indexing

2017-03-10 Thread Laird Nelson
On Fri, Mar 10, 2017 at 1:34 PM Manfred Moser <manf...@simpligility.com> wrote: > Laird Nelson wrote on 2017-03-10 13:03: > > I am also not sure I'm smart enough to grok all the implications of the > > Google-related post. That itself still does not expose an index, say

Re: Maven central and indexing

2017-03-10 Thread Laird Nelson
On Fri, Mar 10, 2017 at 12:23 PM Bernd Eckenfels wrote: > Hello, > Related: > http://blog.sonatype.com/2008/12/central-repository-downloading-the-nexus-index/ > And especially the news of a public available dataset (by Google): >

Maven central and indexing

2017-03-10 Thread Laird Nelson
(This may be a Sonatype question, but it does concern Maven central and the Maven community so I thought I'd ask here.) Currently, you can search Maven central efficiently using search.maven.org. You can search on coordinates and also by class (i.e. "what artifact contains a class whose name

Re: Formerly Aether, now Maven Artifact Resolver--documentation?

2017-03-06 Thread Laird Nelson
On Mon, Mar 6, 2017 at 2:20 PM Laird Nelson <ljnel...@gmail.com> wrote: > The Javadocs for it say, among other things: > > "To acquire a complete repository system, clients need to add an artifact > descriptor reader, a version resolver, a version range resolver and >

Re: Formerly Aether, now Maven Artifact Resolver--documentation?

2017-03-06 Thread Laird Nelson
/examples), but squinting and making these replacements along the way? Thanks, Laird On Mon, Mar 6, 2017 at 2:31 PM Laird Nelson <ljnel...@gmail.com> wrote: > On Mon, Mar 6, 2017 at 2:20 PM Laird Nelson <ljnel...@gmail.com> wrote: > > The Javadocs for it say, among other th

Formerly Aether, now Maven Artifact Resolver--documentation?

2017-03-06 Thread Laird Nelson
Hello; I'd like to use the Maven Artifact Resolver project ( https://maven.apache.org/resolver/), which, as I understand it, is where the original Maven dependency resolution code finally ended up after a long detour through two different companies' attempts to break it off as the Aether project

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-03 Thread Laird Nelson
On Fri, Feb 3, 2017 at 10:22 AM Stuart McCulloch wrote: > Circling back to the original question: yes you can override components in > recent versions of Maven but there are some caveats. First your component > must be visible to the plugin (ie be in the same realm or a

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-03 Thread Laird Nelson
On Fri, Feb 3, 2017 at 1:15 AM Hervé BOUTEMY wrote: > notice:@Component we're using in a Mojo is from Maven Plugin Tools > org.apache.maven.plugins.annotations.Component [1] > Right; I (now :-)) understand this part and all of the things related to it. The part I didn't

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-02 Thread Laird Nelson
On Thu, Feb 2, 2017 at 1:51 AM Robert Scholte wrote: > So basically it is still the same issue as a week or so ago: how to select > a different implementation for an interface. > Doing this within your code: > AFAIK that's not possible, and I wonder if even JSR330 supports

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-01 Thread Laird Nelson
On Wed, Feb 1, 2017 at 1:27 PM Robert Scholte wrote: > bq. If you want to use JSR-330, you must understand that your code won't > be compatible with Maven 2 or 3.0.x but only with Maven 3.1.0+ > > this is probably the reason why *I* haven't seen it used that much. > Sure.

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-01 Thread Laird Nelson
t; > Robert > > On Wed, 01 Feb 2017 21:01:10 +0100, Laird Nelson <ljnel...@gmail.com> > wrote: > > > Thanks; yeah, I understand--maybe I don't actually--that there are > > certain > > Maven plugin annotations that get converted into the XML descriptor. But >

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-01 Thread Laird Nelson
> At runtime this file is used to initialize the plugin, whereas the > specified components are injected with sisu/guice > > Robert > > On Wed, 01 Feb 2017 20:52:19 +0100, Laird Nelson <ljnel...@gmail.com> > wrote: > > > Thanks. But isn't _that_, in turn, rep

Re: Is there a guide on how to use Sisu within Maven plugins?

2017-02-01 Thread Laird Nelson
ions/index.html > > Robert > > On Wed, 01 Feb 2017 19:21:09 +0100, Laird Nelson <ljnel...@gmail.com> > wrote: > > > I apologize in advance for the inarticulate nature of this question. > > > > I have this faint sense that Sisu and Guice are at the cor

Is there a guide on how to use Sisu within Maven plugins?

2017-02-01 Thread Laird Nelson
I apologize in advance for the inarticulate nature of this question. I have this faint sense that Sisu and Guice are at the core of Maven these days, with a Plexus layer on top. This makes me think that perhaps I should be using different annotations in my maven plugins than @Component etc. Is

Maven archetype plugin 2.5 release?

2017-01-20 Thread Laird Nelson
Hello; lowly Maven user here finding a need for the Groovy script functionality in maven-archetype-plugin version 2.5-SNAPSHOT (works great as far as we can tell). Is

Re: Plexus component question

2017-01-13 Thread Laird Nelson
e the bridge/implementation of Plexus is maintained. > > Robert > > On Fri, 13 Jan 2017 19:37:23 +0100, Laird Nelson <ljnel...@gmail.com> > wrote: > > > On Fri, Jan 13, 2017 at 9:33 AM Robert Scholte <rfscho...@apache.org> > > wrote: > > > >> I h

Re: Plexus component question

2017-01-13 Thread Laird Nelson
On Fri, Jan 13, 2017 at 9:33 AM Robert Scholte wrote: > I haven't verified this, but it could be that Plexus-Components switches > to the non-default if such an implementation is available. > OK, so if I hear you right, merely putting a components.xml in META-INF/plexus in

Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Laird Nelson
On Fri, Jan 13, 2017 at 8:51 AM Dean Schulze wrote: > I would like to avoid having to add > > > 1.8 > 1.8 > > > to every pom.xml. Is there a global setting I can set in mvn to make Java > 8 the default so I don't have to add this to every pom.xml? > Like others on

Plexus component question

2017-01-12 Thread Laird Nelson
Hello from (at the moment) cold Bainbridge Island, WA ! I am writing an archetype. I'd like to use a different

Re: How does the jar plugin produce a "*-tests.jar" when I don't specify that?

2016-11-30 Thread Laird Nelson
On Wed, Nov 30, 2016 at 3:19 PM KARR, DAVID wrote: > The POM for "artifact1" has two dependencies on "artifact2". One is the > "default" artifact, and another is a jar artifact that is only used for > unit tests. > …and that's the issue. See

Re: Using maven profiles for easily parallel testing?

2016-11-06 Thread Laird Nelson
On Sun, Nov 6, 2016 at 8:48 AM Kevin Burton wrote: > > If you like to parallize the unit tests themself you have to configure > > maven-surefire-plugin accordingly...I recommend reading the doc about > that > > subject[2]. > > Ah.. interesting. Those changes should be

Re: Maven and Continous Integration / Continous Delivery

2016-04-21 Thread Laird Nelson
On Thu, Apr 21, 2016 at 7:31 PM Robert Patrick wrote: > I can tell you first-hand that deleting thousands of old build versions IS > a nightmare. That's why we are using SNAPSHOTs and only switch to version > numbers for end of sprint builds. > +1 Best, Laird

Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Laird Nelson
Hello; you might also want to look at https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html . Best, Laird -- http://about.me/lairdnelson On Thu, Sep 10, 2015 at 4:29 PM Mark Eggers wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

Jitpack?

2015-02-19 Thread Laird Nelson
Has anyone else seen this? https://jitpack.io/ Or am I just living under a rock as usual? Anyway, I thought it was kind of interesting. Best, Laird -- http://about.me/lairdnelson

Re: [VOTE] Name our mascot: Shotgun vs The Maven Owl

2014-12-15 Thread Laird Nelson
B (no guns) On Mon, Dec 15, 2014 at 2:39 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: After the run-off round, we are left with two names standing. This second vote will be a straight and simple majority wins. The vote will be open for at least 72 hours (with the potential

Re: [DISCUSS] Adopt Mr Couché-Tard as our mascot, change the logo font to Alte Haas Grotesk, change the colour letter to v

2014-11-20 Thread Laird Nelson
On Thu, Nov 20, 2014 at 5:49 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: The closest thing to a mascot that we have is http://maven.apache.org/images/maven-logo-2.gif Arse on desk behind laptop while waiting for Maven to finish downloading the interwebs This made my day;

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-09 Thread Laird Nelson
On Thu, Oct 9, 2014 at 10:48 AM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: I suggest you set forkCount to 1 on surefire/failsafe, which will run all the tests in separate VMs and *also* actually make the argLine command work. Currently, you are not using 4GB for your tests. I

Re: Don't want to repeat plugin version for both build and reporting

2014-10-03 Thread Laird Nelson
On Thu, Oct 2, 2014 at 5:02 PM, Paul Benedict pbened...@apache.org wrote: I use the maven-javadoc-plugin in both build and reporting. I don't want to fall back to properties to share the plugin version. Is there a better way than using properties? No. Best, Laird --

Re: Can I alter packaging with Maven?

2014-09-30 Thread Laird Nelson
On Tue, Sep 30, 2014 at 11:03 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: In short, do not use the way Jenkins abuses maven as a way to learn how to use maven... Is there a laundry list of abuses somewhere? I've always been made faintly queasy by the Jenkins Maven job but it

Re: compile:compile failure on sun proprietary implementation API usage

2014-08-29 Thread Laird Nelson
On Mon, Jan 18, 2010 at 10:04 AM, Wayne Fay wayne...@gmail.com wrote: There are numerous F/OSS implementations of BASE64Decoder that you can just grab and use See also: - http://docs.oracle.com/javase/8/docs/api/javax/xml/bind/DatatypeConverter.html#parseBase64Binary-java.lang.String-

Re: Controlling order of plugin execution

2014-06-04 Thread Laird Nelson
On Wed, Jun 4, 2014 at 12:08 PM, Jim Garrison jim.garri...@nwea.org wrote: Consider the phrase ...you have wandered off The Maven Way™. I can't tell if you intended this ironically or seriously. If it's the latter, it seems like you're saying is Maven is perfect. If Maven doesn't handle your

Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
This is very puzzling. For years I've used the maven-release-plugin to automate my releases with no trouble. Now, on a particular project on GitHub, it is incorrectly transforming my pom.xml and attempting to release the project as a snapshot. The project is drop-dead brainlessly simple. It is

Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 7:52 PM, Laird Nelson ljnel...@gmail.com wrote: Now, on a particular project on GitHub, it is incorrectly transforming my pom.xml and attempting to release the project as a snapshot. Whittling this down a bit, it looks like the transformation works properly, because

Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:15 PM, Laird Nelson ljnel...@gmail.com wrote: It is as though the transformation is not being committed properly. Sure enough, I'm never seeing a git commit operation (with -X turned on). How can I get commits to start working again? Am I overlooking an option

Re: Maven release plugin having trouble with transformations?

2014-05-29 Thread Laird Nelson
On Thu, May 29, 2014 at 8:48 PM, Laird Nelson ljnel...@gmail.com wrote: Sure enough, I'm never seeing a git commit operation (with -X turned on). How can I get commits to start working again? Am I overlooking an option? Upgrading the maven-release-plugin version to 2.5 caused commit

maven-javadoc-plugin unit tests: require JAVA_HOME?

2014-04-21 Thread Laird Nelson
(Wasn't sure if this belonged on the Maven dev list or on the users list; happy to carry the discussion on elsewhere if appropriate.) I'm doing some Java 8 compatibility work on the maven-javadoc-plugin locally and have discovered that the JavadocReportTest test requires a JAVA_HOME environment

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-04-21 Thread Laird Nelson
On Fri, Apr 18, 2014 at 10:38 PM, Hervé BOUTEMY herve.bout...@free.frwrote: but both as Maven developper and as Maven user, I prefer to have separate focused issues with focused bug descriptions, then separate patches OK. Patch submitted for

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-04-21 Thread Laird Nelson
On Mon, Apr 21, 2014 at 3:01 PM, Laird Nelson ljnel...@gmail.com wrote: OK. Patch submitted for MJAVADOC-393http://jira.codehaus.org/browse/MJAVADOC-393 . I've also opened http://jira.codehaus.org/browse/MJAVADOC-394 and http://jira.codehaus.org/browse/MJAVADOC-395 and am in the process

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-04-18 Thread Laird Nelson
On Fri, Mar 28, 2014 at 2:59 PM, Laird Nelson ljnel...@gmail.com wrote: Fails under javadoc 8. I'll file a bug with Oracle; it appears that the -link option is nonfunctional. Found the issue, I think; filed http://jira.codehaus.org/browse/MJAVADOC-393to track it. Basically, for unknown

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-04-18 Thread Laird Nelson
On Fri, Apr 18, 2014 at 9:33 AM, Laird Nelson ljnel...@gmail.com wrote: Found the issue, I think; filed http://jira.codehaus.org/browse/MJAVADOC-393 to track it. Hi; I'm fixing this bug locally and am intending to supply a patch to the bug report. I can add support for Javadoc version 8

Javadoc plugin with Javadoc 8: error fetching URLs

2014-03-28 Thread Laird Nelson
Running a few of my projects under Java 8, I found that the maven-javadoc-plugin won't accept link configuration items that work under Javadoc 6. For example, I have this: linkhttp://mvel.codehaus.org/javadoc/2.0/link With Javadoc 8 installed, whatever the maven-javadoc-plugin is doing to feed

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-03-28 Thread Laird Nelson
has been added a much more stringent parser, so you might be encountering http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html ? 2014-03-28 22:15 GMT+01:00 Laird Nelson ljnel...@gmail.com javascript:; : Running a few of my projects under Java 8, I found that the maven

Re: Javadoc plugin with Javadoc 8: error fetching URLs

2014-03-28 Thread Laird Nelson
On Fri, Mar 28, 2014 at 2:32 PM, Laird Nelson ljnel...@gmail.com wrote: Thanks; already got the -Xdoclint:none bit; will keep looking when I'm back at my computer. On Friday, March 28, 2014, Baptiste Mathus bmat...@batmat.net wrote: Just a guess: Maven basically only delegates

Re: Adding dependency management to parent pom causes errors

2014-02-11 Thread Laird Nelson
On Tue, Feb 11, 2014 at 12:18 AM, geoffh hartnel...@yahoo.co.uk wrote: In attempting to identify the cause, I started by just adding dependency management to my parent pom Simply adding dependencyManagement /dependencyManagement around the dependencies in my parent pom, causes dependencies

Re: Adding dependency management to parent pom causes errors

2014-02-11 Thread Laird Nelson
On Tue, Feb 11, 2014 at 4:48 PM, Barrie Treloar baerr...@gmail.com wrote: This is also best practice. Agreed wholesale. I think the original poster was wondering why this stanza: dependencies !-- ... -- /dependencies ...when wrapped (replaced, really) thusly: *dependencyManagement*

Re: surefire plugin output changes

2014-01-28 Thread Laird Nelson
No, that's the latest version of maven-surefire-plugin. Run mvn help:effective-pom from a pom.xml in your project and look for the stanza that concerns the maven-surefire-plugin and that will tell you for sure. Best, Laird On Tue, Jan 28, 2014 at 10:06 AM, John Dix john@amdocs.com wrote:

Re: surefire plugin output changes

2014-01-28 Thread Laird Nelson
On Tue, Jan 28, 2014 at 11:12 AM, John Dix john@amdocs.com wrote: Thanks laird... I got 2.4.3. Do you know where I can find the release notes for the various versions to see the list of changes made between then and now? This is the closest thing I found:

Re: maven plugin compatibility with 3.0.X and 3.1.X and Aether

2014-01-20 Thread Laird Nelson
On Mon, Jan 20, 2014 at 10:37 AM, Stephen More stephen.m...@gmail.comwrote: I am working on a maven plugin that needs to work with both 3.0.X and 3.1.X and Aether ( org.sonatype.aether vs org.eclipse.aether) . What is recommended, one or two separate plugins ? Has anyone already created a

During plugin development, what is the context classloader set to?

2014-01-08 Thread Laird Nelson
I have a plugin that I'm writing that needs to do two things during the course of its execution: Load a resource from the current project's classpath Load a resource from its own guts This is a fallback kind of thing: if the plugin can't find anything appropriate on the project classpath, then

Re: Topologically sorted list of Artifacts for use by a plugin?

2014-01-07 Thread Laird Nelson
On Sun, Jan 5, 2014 at 3:24 PM, Martin Gainty mgai...@hotmail.com wrote: MG_01_05Thanks for taking time to 'think this through' More thinking and coding. Here's my final answer: https://github.com/ljnelson/maven-artifacts/blob/master/src/main/java/com/edugility/maven/Artifacts.java#L80 That

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-06 Thread Laird Nelson
On Mon, Jan 6, 2014 at 1:05 AM, Baptiste Mathus bmat...@batmat.net wrote: Does http://svn.codehaus.org/mojo/trunk/mojo/extra-enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractResolveDependencies.java help you? Yes; I see that it uses maven-artifact-resolver. If indeed

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-06 Thread Laird Nelson
On Mon, Jan 6, 2014 at 5:44 AM, Laird Nelson ljnel...@gmail.com wrote: On Mon, Jan 6, 2014 at 1:05 AM, Baptiste Mathus bmat...@batmat.netwrote: Does http://svn.codehaus.org/mojo/trunk/mojo/extra-enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractResolveDependencies.java

Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-05 Thread Laird Nelson
Hello; suppose I have a CollectionArtifact in my left hand, all elements of which are not resolved. (As it happens, I got these indirectly from a DependencyGraphBuilder invocation.) What is the Maven Way™ to resolve these Artifacts? I know that these Artifacts are unresolved, because each of

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-05 Thread Laird Nelson
On Sun, Jan 5, 2014 at 3:56 PM, Laird Nelson ljnel...@gmail.com wrote: What is the Maven Way™ to resolve these Artifacts? For completeness, I also looked at http://maven.apache.org/guides/introduction/introduction-to-artifact-resolution.htmlbut this didn't seem to have ever been completed

Re: Topologically sorted list of Artifacts for use by a plugin?

2014-01-04 Thread Laird Nelson
On Fri, Jan 3, 2014 at 6:17 PM, Martin Gainty mgai...@hotmail.com wrote: MGso I would say you are definitely on the right track Thanks; I'm not sure I am. MGany reason for topological sorting of dependencies? In my original post, I wrote: (As background: I am working with Liquibase

Topologically sorted list of Artifacts for use by a plugin?

2014-01-03 Thread Laird Nelson
Hello; in Maven 3.0.5 and 3.1.x, what is the preferred way, given a MavenProject representing the current pom.xml/project, to obtain a list of its resolved dependency Artifacts in test scope that has been topologically sorted such that the Artifact at the head of the list has the fewest

Re: Topologically sorted list of Artifacts for use by a plugin?

2014-01-03 Thread Laird Nelson
On Fri, Jan 3, 2014 at 2:03 PM, Laird Nelson ljnel...@gmail.com wrote: Hello; in Maven 3.0.5 and 3.1.x, what is the preferred way, given a MavenProject representing the current pom.xml/project, to obtain a list of its resolved dependency Artifacts in test scope that has been topologically

Re: Version resolution question (was: plugin version ranges errors with Maven 3.1.1)

2013-12-06 Thread Laird Nelson
On Fri, Dec 6, 2013 at 3:25 PM, John Dix john@amdocs.com wrote: our organization is big and adding anything to our repository takes a papal bull and a month of testing. +20 for papal bull reference. Best, Laird -- http://about.me/lairdnelson

Re: Property namespaces Was: Changing JDK version without specifying maven-compiler-plugin version

2013-11-27 Thread Laird Nelson
On Wed, Nov 27, 2013 at 6:49 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: the only pity with using properties is that they are not namespaced most of the time (the maven.compiler.* ones being an exception here), output is claimed at least by three mojos IIRC. And skipTests is almost

  1   2   3   4   >