Calling a Mojo from within another Mojo

2006-09-07 Thread Andres Almiray
Hi, I've been searching the docs at the maven site and there is no mention of this, is it possible ? What I want to do is re-run the Cobertura report Mojo with 'xml' format if the actual format is 'html'. This is because Cobertura doesn't provide a 'friendly' API to its report facilities. BTW, t

Maven Dependencies Pop Quiz

2020-03-26 Thread Andres Almiray
Hello everyone! If I can ask you for 15 minutes of your time, I've put of a 14 question pop quiz on dependency resolution. I'm hopeful that this quiz will let us realize a few things about the dependency resolution mechanism and its rules, perhaps address concerns in the future and make Maven bett

Re: Maven Dependencies Pop Quiz

2020-03-26 Thread Andres Almiray
e who don't. To understand recursion, we must first understand recursion. On Thu, Mar 26, 2020 at 7:04 PM jieryn wrote: > Kind of frustrating to not be shown my score at the end... > > On Thu, Mar 26, 2020 at 1:01 PM Andres Almiray wrote: > > > > Hello everyone! > > &

Maven Dependencies Pop Quiz - Results

2020-04-06 Thread Andres Almiray
Hi! As promised I've collected all responses and blogged about the results at the following URL http://andresalmiray.com/maven-dependencies-pop-quiz-results/ Please feel free to share with your colleagues and friends. Questions and answers are available at https://docs.google.com/document/d/1e

Launching full Maven programmatically

2020-04-16 Thread Andres Almiray
Hi, I'm looking for a way to launch Maven programmatically in such a way that I can get access to fully resolved Model and MavenProject instances, and not just for a single project but also for all projects that belong to a Reactor. At first I used this code try { FileReader reader = new Fil

Re: Launching full Maven programmatically

2020-04-16 Thread Andres Almiray
Thanks Matthieu, I'll have a look. Though I failed to specify: the embedded API I'm looking for should work anywhere and not just within the confinement of a maven plugin where Maven components and services exist, that is, this API should work as a blackbox and in standalone mode. Cheers, Andres

Re: Launching full Maven programmatically

2020-04-17 Thread Andres Almiray
gt; > > > The way this jenkins project loads the Maven Project Object Model is > > > > somehow wrong or at least not complete. > > > > > > > > IMO the POM loading is better done in maven-flatten-plugin. > > > > > > > > Matthieu &g

Merged configuration between parent & child?

2020-10-15 Thread Andres Almiray
Hello everyone, I wonder if it's possible to define a plugin's configuration on both parent & child in such a way that the resulting configuration is merged, first the parent's then the child's. My use case is defining a set of annotation processors in the maven-compiler-plugin at the parent, als

Re: Merged configuration between parent & child?

2020-10-15 Thread Andres Almiray
configuration-in-complex-projects/ > > /Anders > > On Thu, Oct 15, 2020 at 12:25 PM Andres Almiray > wrote: > > > Hello everyone, > > > > I wonder if it's possible to define a plugin's configuration on both > parent > > & child in such

Re: BOM vs Parent inheritance

2021-02-04 Thread Andres Almiray
I'm quite interested in this conversation as in my experience the process of producing & consuming BOMs is still misunderstood. Regarding 3rd party dependencies in a BOM, I've seen 2 main usages of BOMs. - library BOM: defines *only* those modules belonging to the same multi-project. Examples: ht

Releasing a subset of the Reactor

2021-02-05 Thread Andres Almiray
Hello everyone, Does anyone know if it's possible to release justa subset of the Reactor when using the maven-release-plugin? The Layrry build includes a set of modules (examples and integration tests) that should not be part of the release. And added hurdle is that there are "duplicate" modules

Re: Releasing a subset of the Reactor

2021-02-05 Thread Andres Almiray
sts don't need to be in Central, > but all other modules should. In this scenario, the integration tests are > versioned (tagged in Git) together with the actual code, but they don't get > uploaded. > > HTH, > > Maarten > > > [1] https://github.com/mthmu

Resolve root directory in a multi-project build

2021-02-05 Thread Andres Almiray
Hello everyone, Is there a way to reliably resolve the value of the root directory for a given multi-project build? Unfortunately ${session.executionRootDirectory} does not seem to work for all cases, it might work when used inside a plugin's section but does not when used outside of plugins TIA

Re: Resolve root directory in a multi-project build

2021-02-05 Thread Andres Almiray
shoot back: WHY do you need the root of a multi module build and > > FROM WHAT you need it? Extension? > > Are you sure you can expect maven is invoked from root? Could it be > simpler > > just to pass in as some parameter maybe, instead of doing all sorts of > > h

Re: Releasing a subset of the Reactor

2021-02-05 Thread Andres Almiray
n case) > putting those submodules into a profile, enabled by default, but disabled > during release? (e.g. through a "-P !tests" or "-Dit-tests=false" in > and the appropriate activation for the profile) > > On Fri, Feb 5, 2021 at 2:16 PM Andres Almiray wrote: > >

Computing and publishing checksums

2021-02-15 Thread Andres Almiray
Hello there, What's the recommended way to compute and publish checksums (several algorithms such as MD5, SHA256, SHA512) for all artifacts (POMs y binary JARs at the very least, sources & javadocs may be excluded). I'm aware that reproducible builds[1] requires publishing checksums in a .buildin

Re: Computing and publishing checksums

2021-02-15 Thread Andres Almiray
15, 2021 at 11:51 PM Hervé BOUTEMY wrote: > Hi Andres, > > Le lundi 15 février 2021, 21:52:03 CET Andres Almiray a écrit : > > Hello there, > > > > What's the recommended way to compute and publish checksums (several > > algorithms such as MD5, SHA256, SHA

Re: Resolve root directory in a multi-project build

2021-02-18 Thread Andres Almiray
"rootlocation" there, >> you >>>>>>>> should find 4 places): >>>>>>>> >>>>>>>> https://github.com/SarekTest/Sarek/blob/master/pom.xml >>>>>>>> -- >>>>>>>> Alexander

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

2021-06-09 Thread Andres Almiray
FWIW I wrote a command line utility named Gum a year ago that fulfills this purpose (invoke Maven from anywhere within the project structure), as well as invoking the build using the Maven wrapper (when it exists). This utility is found at https://github.com/kordamp/gm By default it will invoke b

Color output

2021-08-02 Thread Andres Almiray
Hello everyone, What is the recommended way for logging text with color? I'd like to print out text where some portions of it should have different colors. Cheers, Andres --- Java Champion; Groovy Enthusiast https://andresalmiray.com https://www.linkedin.co

Re: Color output

2021-08-02 Thread Andres Almiray
; Guess you're looking for MessageBuilder interface, which lives in > maven-shared-utils. There are two implementations, the > PlainMessageBuilder and AnsiMessageBuilder. The latter one generates the > colours on the terminal. > > HTH, > > Maarten > > On 02/08/2021 1

Re: [ANN]switch from maven to gradle

2022-06-14 Thread Andres Almiray
Hi Manuel, welcome to the list. Please find answers inlined. Sent from my primitive tricorder > On 14 Jun 2022, at 20:10, Manuel Dahmen wrote: > > hello, > switch from maven to gradle, publish on maven central, is it possible from > maven? Yes, it’s possible to switch a project built with M

Plugin's triggers late error

2022-08-24 Thread Andres Almiray
Hello everyone, Here's something that's been bugging me for a while: In a plugin's block (in this case JReleaser) there are elements that are mapped to Map instances (no pun intended) such that for example In this case is of type Map, thus is the entr

Re: [DISCUSSION] Multi platform deploys/releases

2023-06-25 Thread Andres Almiray
Hi there! I’d suggest looking at JReleaser. The tool supports the aforementioned use case and many others. JReleaser mat be configured as a Maven plugin. As a matter of fact the mvnd project accepted and merged a PR that configures JReleaser to publish releases. Unfortunately the code was turn

Re: no maven 3.9.10 available in sdkman

2025-06-21 Thread Andres Almiray
Maven 3.9.10 is available via Sdkman. However it’s not set as the default, or rather it wasn’t until today. Marco will update the package shortly. I was able to install 3.9.10 using sdkman today this morning. Hate to say it but it works on my machine 🤷‍♂️ Please check your settings and give it