Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kessselman
On 11/11/2023 11:44 AM, Greg Chabala wrote: Use the sourceReleaseAssemblyDescriptor of maven-assembly-plugin: https://maven.apache.org/apache-resource-bundles/source-release/ Thanks; hadn't seen that one. Definitely a fan of not reinventing wheels. Can that be configured to write the archives

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Greg Chabala
I hesitate to bring it up, but this seems as good a time as any. You've mentioned several times your intent to massage the Xalan Maven build to produce artifacts at parity with the existing Ant build, and not just the contents of artifacts but also where they end up in the directory structure, for

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Bernd Eckenfels
Hello, Joseph Kesselman wrote on 11. Nov 2023 17:27 (GMT +01:00): > ... Right. I was thinking specifically about source assembly, where a good > initial approximation is to include the same files checked into git. If you stick to the maven way, this is pretty trivial: you only need to exclude

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
... Right. I was thinking specifically about source assembly, where a good initial approximation is to include the same files checked into git. Obviously that's wrong for binary assembly, but having the option of "import ignore list into source excludes" would help keep the two in synch. And

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
The "binary" assembly I'm trying to reproduce is the one our And project generated -- the artifact jarfile, plus source and input for the samples, plus the documentation directory -- basically, everything an end-user might want locally. I'm getting close to having that working. Output

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Greg Chabala
I have no first hand experience using it, and only know of its existence as it's mentioned at the bottom the Reproducible Builds docs: https://reproducible-builds.org/docs/jvm/ Notably the maven-assembly-plugin documentation mentions a predefined 'project' descriptor which may also do just what

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
I am using a Maven build structure. Or my best attempt at it as a newcomer to Maven. I've been delaying cutover specifically because I didn't want to pull the trigger without a sanity check. Gary has said he'll try to look at what I've done soon. If anyone else has cycles, I'd welcome review

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Alexander Kriegisch
Let me also chime in, telling an "old war story" from my early days in AspectJ: It used to be a very complex and convoluted Ant multi-module monster. I never dared to even try and understand the build or contribute to the project. Then one day, Andy Clement converted the project to a Maven

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
Don't worry. I'm not trying to reproduce the Ant build logic. I'm trying to be as Maven& idiomatic as I can in the actual build. But if possible I want to produce, from that, a directory which contains somethIng close to what the Ant build would have delivered. Both because I haven't had time

Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-11 Thread Joseph Kessselman
Duh. Just noticed that the FAQ explicitly mentions creating a child module just to achieve this sequencing in multi-module projects. Mea culpa, mea maxima culpa... I'd have hoped something could be done with phase and target, but if not, not. On 11/11/2023 11:44 AM, Joseph Kessselman wrote:

Re: maven-assembly-plugin, bin example is giving me trouble

2023-11-11 Thread Joseph Kessselman
Sorry: https://github.com/apache/xalan-java/tree/xalan-java-mvn-refactored (which currently has the binary assembly commented out). Dependency order... Well, I'm currently running the assembly at the top level, which would presumably mean it has to run after packaging of the contained

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Greg Chabala
> > I was thinking specifically about source assembly, where a good initial > approximation is to include the same files checked into git. > Use the sourceReleaseAssemblyDescriptor of maven-assembly-plugin: https://maven.apache.org/apache-resource-bundles/source-release/

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread Joseph Kesselman
I welcome feedback on where I might have departed from Maven conventions and defaults, or otherwise missed a bet. I actually don't think I'm far off -- maybe not the most elegant solutions possible, but basically using Maven as designed to be used. But I'd sorta appreciate it if folks were

Re: Can the jar plugin respect .gitignore?

2023-11-11 Thread John Patrick
my .gitignore includes target, so that would probably cause more issues with the assembly plugin. On Fri, 10 Nov 2023 at 21:34, wrote: > I think there are two issues with this, first of all git is not the only > SCM, so why prefer it’s file. > > But secondly it is very common that binary

[ANN] Apache Maven Plugin Testing version 4.0.0-alpha-2 Released

2023-11-11 Thread Slawomir Jaranowski
The Apache Maven team is pleased to announce the release of the Apache Maven Plugin Testing version, version 4.0.0-alpha-2 https://maven.apache.org/plugin-testing/ You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugin-testing/download.html