Re: Authoring Maven Mojos for Maven 3.9.x - Maximum bytecode version=Java14

2023-10-16 Thread Garret Wilson
Wait, really? I have an annotation processor being developed now with Java 17, and parts of it soon will need to move to a Maven plugin. This means that I'll have to downgrade all the code to Java 14?? In 2023? Are there any workarounds? The issue #94 you mentioned has already been closed as

Re: Authoring Maven Mojos for Maven 3.9.x - Maximum bytecode version=Java14

2023-10-16 Thread Garret Wilson
aded, only those annotated with JSR330 annotations. And yes, Maven 3.9.6 could upgrade Sisu to the latest version, basically lifting this limitation. HTH T On Mon, Oct 16, 2023 at 9:19 PM Garret Wilson wrote: Wait, really? I have an annotation processor being developed now with Java 17, and parts

Re: Authoring Maven Mojos for Maven 3.9.x - Maximum bytecode version=Java14

2023-10-16 Thread Garret Wilson
On 10/16/2023 4:36 PM, Tamás Cservenák wrote: … no, this applies to "sisu managed components" ONLY. So not ALL the code needs to be downgraded, only those annotated with JSR330 annotations. After reading and trying to understand https://maven.apache.org/maven-jsr330.html , does this mean

Re: Authoring Maven Mojos for Maven 3.9.x - Maximum bytecode version=Java14

2023-10-16 Thread Garret Wilson
On 10/16/2023 4:59 PM, Tamás Cservenák wrote: You'd use Plexus? In 2023? I don't know what I'd use. I'm asking. I haven't written a Maven plugin yet. I'm just reading the latest documentation, and the [Plugin Developers Centre](https://maven.apache.org/plugin-developers/) seems to say at

Re: escaping single quote for Exec Maven Plugin `exc.args`

2023-10-15 Thread Garret Wilson
On 10/15/2023 1:31 AM, Alexander Kriegisch wrote: … Let us settle on only using double quotes to enclose arguments containing spaces. Then, we do not need to escape single quotes and can use them literally. But we do need to escape nested double quotes. Let's make sure we don't confuse

Re: escaping single quote for Exec Maven Plugin `exc.args`

2023-10-15 Thread Garret Wilson
On 10/15/2023 9:24 AM, Garret Wilson wrote: On 10/15/2023 1:31 AM, Alexander Kriegisch wrote: … Let us settle on only using double quotes to enclose arguments containing spaces. Then, we do not need to escape single quotes and can use them literally. But we do need to escape nested double

Re: [ANN] Maven Surefire 3.2.1 released

2023-10-25 Thread Garret Wilson
Could you clarify whether this means that the plugin will not work correctly, and whether we should wait for a patch version that uses the correct dependencies instead of upgrading our POMs to use this announced version 3.2.1? Thanks, Garret On 10/24/2023 7:42 AM, Thomas Broyer wrote: This

escaping single quote for Exec Maven Plugin `exc.args`

2023-10-14 Thread Garret Wilson
Here's a fun one for your weekend. As you know from (almost) the beginning of time we could invoke a Java application using Maven using the Maven Exec Plugin, as in the following (although Maven's `--quiet` may be a recent addition): ```bash mvn exec:java

Re: finding source of outdated dependencies

2023-11-09 Thread Garret Wilson
OM imports another POM and ...), and if you use verbose with effective, you will see the source of flattened things, at least T On Thu, Nov 9, 2023 at 9:18 PM Garret Wilson wrote: On 11/9/2023 5:10 PM, Tamás Cservenák wrote: Howdy, Did you try to take a peek at effective POM? Hi. The eff

finding source of outdated dependencies

2023-11-09 Thread Garret Wilson
In my Maven project (an aggregate project with child projects) I issue the following command for the Versions Maven Plugin:     mvn versions:display-dependency-updates There are a couple of outdated dependencies I'm not sure where are coming from: [INFO] The following dependencies in

Re: finding source of outdated dependencies

2023-11-09 Thread Garret Wilson
:04 PM Garret Wilson wrote: In my Maven project (an aggregate project with child projects) I issue the following command for the Versions Maven Plugin: mvn versions:display-dependency-updates There are a couple of outdated dependencies I'm not sure where are coming from: [INFO

Re: improving the Maven BOM pattern

2023-06-14 Thread Garret Wilson
The file tree didn't go across the list so well. Here's another try below: On 6/14/2023 4:05 PM, Garret Wilson wrote: … Over the years I've changed how I define "Bill of Material" POMs for my large, aggregated projects. Recently I've settled on a pattern which I feel is a

Re: improving the Maven BOM pattern

2023-06-14 Thread Garret Wilson
On 6/14/2023 5:53 PM, Gary Gregory wrote: I am wondering if you've looked at the CycloneDx and SPDX Maven plugins? These two seem to be the most used ATM for SBOMs. Gary I had never heard of these plugins or of SBOMs. I did a quick bit of research; according to [How to create SBOMs in Java

improving the Maven BOM pattern

2023-06-14 Thread Garret Wilson
Hi, everyone. I understand this list to be a general forum for Apache Maven users, so as such I'm sharing some ideas I've had related to BOMs. Over the years I've changed how I define "Bill of Material" POMs for my large, aggregated projects. Recently I've settled on a pattern which I feel is

Maven Artifact Resolver not seeing latest plugins on Maven Central on my machine

2023-05-24 Thread Garret Wilson
solver on my machine to get "stuck" at an earlier point in time, and/or to skip checking Maven Central altogether for newer versions of many plugins? Garret Wilson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.

Re: Maven Artifact Resolver not seeing latest plugins on Maven Central on my machine

2023-05-24 Thread Garret Wilson
the latest versions rather than relying on the cached information? Garret On 5/24/2023 10:40 AM, Delany wrote: Try renaming `C:\Users\user\.m2\repository\` Does the issue persist? Delany On Wed, 24 May 2023, 18:04 Garret Wilson, wrote: I'm writing to this list on the advice of Andrzej Jarmoniuk

Re: Maven Artifact Resolver not seeing latest plugins on Maven Central on my machine

2023-05-25 Thread Garret Wilson
Good morning and thanks for such an interesting history of Maven evolution, Tamás. See below on discussion for next troubleshooting steps: On 5/25/2023 2:23 AM, Tamás Cservenák wrote: … I really cannot tell who or what (my guess) corrupted the "update check" related files. This is the part

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-31 Thread Garret Wilson
On 7/31/2023 1:02 PM, Garret Wilson wrote: … Let me confirm something: if I disable the Nexus Staging Maven Plugin by using `none` in a child POM, what will happen when a developer types `mvn deploy`? Nothing? I only ask because Tamás had mentioned the Maven Deploy Plugin. But I'm looking

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-31 Thread Garret Wilson
On 7/31/2023 1:27 PM, Delany wrote: … In any case, what repository on the Internet is configured to allow anonymous uploads? The settings.xml must always be populated with credentials for a deployment to take place. If you fear someone accidentally uploading artefacts to random repos then

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-31 Thread Garret Wilson
On 7/31/2023 3:07 AM, Delany wrote: Perhaps you're getting confused because you conflate 2 issues: … prevent general configuration like from being inherited. … preventing plugin configuration from being inherited. I do not conflate them—I do not think they are the same thing. I said they are

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-08-02 Thread Garret Wilson
On 8/2/2023 10:45 PM, Garret Wilson wrote: … I won't explain here what's going on; I intend to write a blog post about it some day. The end result is that if the `com.globalmentor:globalmentor-root` POM is in effect, the `maven.deploy.skip` property is set to `true`; for any other descendant

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-08-02 Thread Garret Wilson
On 8/1/2023 7:42 PM, Garret Wilson wrote: … Now the child POMs can turn off deployment by simply setting `maven.deploy.skip` to `false`, and kill two birds with one stone: deployment will be disabled whether the Nexus Staging Plugin or the Maven Deploy Plugin was used. In my previous

Re: How to force Maven to put a dependency on the module-path?

2023-08-01 Thread Garret Wilson
On 7/26/2023 1:42 PM, Martin Desruisseaux wrote: … If a dependency is on the classpath, then the dependency is loaded as an unnamed module, its "module-info" file is ignored and the services that it contains are not discovered. Can you elaborate on the last point a little more? I haven't

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-08-03 Thread Garret Wilson
On 8/3/2023 7:31 AM, Delany wrote: Quite honestly this is a horrendous abuse of configuration, not to mention design and security principles, and thoroughly inelegant. I 100% agree with you on your assessment of the _implementation_. If you know of a more elegant implementation without

elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
I have a "root" POM which I use as the inheritance ancestor of all my projects: https://github.com/globalmentor/globalmentor-root By default it's configured to use the [Nexus Staging Maven Plugin](https://github.com/sonatype/nexus-maven-plugins/blob/main/staging/maven-plugin/README.md). It

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
quot;oss" but is more like "free"), with its own proprietary REST API... T On Sun, Jul 30, 2023 at 11:37 PM Garret Wilson wrote: On 7/30/2023 6:32 PM, Tamás Cservenák wrote: There is no need for another plugin... well, let me explain: all the "vanilla" plugins of Ma

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 3:45 PM, Thomas Broyer wrote: The easiest way to opt-in is to configure the plugin in of the parent POM, and then only "apply" to chosen projects by declaring the plugin in the (only needs the groupId and artifactId then) Let me make sure I'm understanding what you're

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 6:32 PM, Tamás Cservenák wrote: There is no need for another plugin... well, let me explain: all the "vanilla" plugins of Maven (install, deploy, release) support everything that aforementioned plugin does: install at end, deploy at end, stage/deploy, there is ONLY two things they

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 4:37 PM, Mantas Gridinas wrote: Sounds like a job for profiles, … It is not a job for profiles. If I put it in a profile, a developer has to only mistakenly use `-P nexus` or whatever the profile is, and our super-secret million-dollar project gets published. I want it to be

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
can die happy in feeling that at any rate you have not wasted your time but have done your best ~~~ Lord Baden-Powell On Mon, 31 Jul 2023 at 01:30, Garret Wilson wrote: On 7/30/2023 8:16 PM, Nils Breunese wrote: … Can I ask why you publish this root POM as a public artifact to Maven Central

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 9:18 PM, Nick Stolwijk wrote: I took a quick look at the Maven-Nexus-plugin and there is an option to disable it (skipNexusStagingDeployMojo), so I would start there. I in fact did start there. I don't know if you happened to read this part of my question which started this

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 4:00 PM, Delany wrote: What happens if you add this to the pluginManagement/plugin section? false Delany Delany, I think you are referring to the `` tag for build plugins documented here:

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
: And how about not using this plugin? Even it's maintainer dropped it, is EOL. Furthermore, things this plugin does means is (or is to be) unusable with Maven4. So is a dead end. A new project should not start using it, really. Hth T On Sun, Jul 30, 2023, 20:29 Garret Wilson wrote: I have

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 7:34 PM, Nick Stolwijk wrote: I am missing the purpose of publishing the parent pom. Is it because other projects can inherit of it, Yes. or is it because your own projects (that you want to be published) are inherited from it? Yes. In the second case, you can use the

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 6:32 PM, Tamás Cservenák wrote: There is no need for another plugin... well, let me explain: all the "vanilla" plugins of Maven (install, deploy, release) support everything that aforementioned plugin does: install at end, deploy at end, stage/deploy, there is ONLY two things they

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-07-30 Thread Garret Wilson
On 7/30/2023 8:16 PM, Nils Breunese wrote: … Can I ask why you publish this root POM as a public artifact to Maven Central? 1. To be a good open-source citizen and help others with all the goodies this POM provides (many of them which should be in Maven by default but are not). 2. To

Re: elegant way to disable Nexus staging/deployment in child POMs

2023-08-01 Thread Garret Wilson
On 7/30/2023 3:28 PM, Garret Wilson wrote: … I also see that there is a `skipNexusStagingDeployMojo`, but that appears to be neither a configuration property nor a user property, but only a "plugin flag" which is "passed in from the CLI" using `-D`. Is there a "ski

Re: BOM files referencing optional dependencies

2023-06-17 Thread Garret Wilson
Hi, Ceki. My understanding is that, yes, if they are part of the main library (i.e. not transitive dependencies from some other library), then they should also be included in the BOM. The BOM is usually imported under the `` section, which is simply the place where you are managing which

Re: [DISCUSSION] Multi platform deploys/releases

2023-06-25 Thread Garret Wilson
On 6/25/2023 2:10 PM, Tamás Cservenák wrote: Multiple times come up on ML questions from users about "multi platform" deploys/releases, where, AFAIK, some (usually) OS platform dependant (usually native binary), comes to play. … - how are people doing it today? For my projects I've spent years