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

2023-12-21 Thread Thomas Broyer
Shouldn't you use the jar-no-fork *goal* of 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

Re: maven debugging frustrations

2023-12-19 Thread Thomas Broyer
In `mvn -X` you should find the arguments to javac (beware that empty arguments are not displayed there, rather than being shown as "" for instance), which would allow you to run javac on your own, taking Maven out of the equation. Le mar. 19 déc. 2023, 23:28, a écrit : > Indeed, if there were

Re: what javac is actually used?

2023-12-03 Thread Thomas Broyer
Afaict, running with debug logs (mvn -X) will print the arguments passed to the compiler, such that they can be passed to javac with Maven pushed out if the equation. They can then be inspected and tweaked, and then maven-compiler-plugin configuration (hopefully) adjusted to what's expected. Le

Re: [ANN] Maven Surefire 3.2.1 released

2023-10-24 Thread Thomas Broyer
inates > * [SUREFIRE-2182] - Log starter implementation on DEBUG level > > ** Dependency upgrade > * [SUREFIRE-2188] - Upgrade to Parent 40 > > > Enjoy, > > -The Apache Maven team > > - >

Re: passing compiler args via a properties file

2023-09-24 Thread Thomas Broyer
ts, so I think the question remains unanswered: can Maven load a property's value from a file? (possibly through a plugin; I have looked at build-helper-maven-plugin and apparently it doesn't support it) -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

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

2023-07-31 Thread Thomas Broyer
Le dim. 30 juil. 2023, 21:36, Garret Wilson a écrit : > 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 plug

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

2023-07-30 Thread Thomas Broyer
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) That only works if you're calling Maven with lifecycle phases though, I think it'll error out if you

Re: improving the Maven BOM pattern

2023-06-15 Thread Thomas Broyer
I must say I haven't seen any project using the approach described in the Maven doc. Most projects I've seen use the root POM as both the aggregator POM and the parent POM, and have their BOM in a submodule. Sometimes the root POM is only the aggregator and the parent POM is a submodule as well.

Re: MavenCLI failing in Jenkins

2023-04-20 Thread Thomas Broyer
aven project doesn't itself provide Docker images AFAICT so at least there cannot be any confusion between two "official" images. -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: What could cause a missing JAR in WEB-INF?

2023-04-15 Thread Thomas Broyer
O] | | +- xerces:xercesImpl:jar:2.11.0:provided > [INFO] | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.22:provided > ... > [INFO] +- com.megginson.sax:xml-writer:jar:0.2:compile > [INFO] | \- xml-apis:xml-apis:jar:1.0.b2:compile > > So for some reason the machines see a different requirement for > xml-apis-*.

Re: What could cause a missing JAR in WEB-INF?

2023-04-14 Thread Thomas Broyer
Have you tried diffing the effective-pom on the various machines? How about running with debug logs? Does the waven-war-plugin maybe outputs why it picks or excludes dependencies from the war? Le ven. 14 avr. 2023 à 21:34, Thad Humphries a écrit : > I have *war that I've built on 3 different

Re: Windows Installer / MacOS dmg

2022-10-16 Thread Thomas Broyer
Doesn't JDK 18 come with jpackage for exactly that use case? Not sure how/if you can drive it from Maven but you should be able to prepare everything with dependency:copy-dependencies or the maven-assembly-plugin and then run jpackage manually to produce the installers. Le dim. 16 oct. 2022 à

Re: java.lang.ClassNotFoundException: com.google.common.base.Preconditions

2022-07-24 Thread Thomas Broyer
IIRC exec:java doesn't fork a new JVM so the java.class.path is the one from Maven itself. Your dependencies are "only" in a custom classloader. You might want to try exec:exec with java as the executable. Le dim. 24 juil. 2022 à 20:46, Siddharth Jain a écrit : > we are running into the dreaded

Re: Where can find a working plugin test example

2022-06-28 Thread Thomas Broyer
TL;DR: it doesn't use the maven-plugin-testing-harness but maven-invoker-plugin, and that's what I've been using as well. Le mar. 28 juin 2022 à 07:59, Martin Höller a écrit : > Hi! Stephan! > > Some years ago I had a similar problem while developing > vdldoc-maven-plugin [1]. I found all the

Re: How does Maven really treat "bundle" packaging type?

2022-06-20 Thread Thomas Broyer
Le lun. 20 juin 2022 à 20:38, Pawel Veselov a écrit : > TL;DR: > > Is there a way, and what is the correct one if there is, to prevent a > package being downloaded from a particular repository (or lock it to > being downloaded from a particular one, though I thought the answer to > that one is

Re: Splitting a dependency tree with the assembly plugin

2022-05-07 Thread Thomas Broyer
How about first building a distribution for each module separately (each in its own Maven module) and then assemble them into a single distribution? Le sam. 7 mai 2022 à 18:49, Mark Raynsford a écrit : > Hello! > > I'm running into a problem when trying to produce an application > distribution.

Re: Maven Reactor and plugin "local" dependencies

2022-05-06 Thread Thomas Broyer
, I maintain some Maven plugin and archetypes, and have to deal with Maven as a consumer of libraries I contribute to (lately having to make tests with artifact relocation and BOMs) Am not saying either "maven is the best", but I am convinced "maven can be > better", MUCH

Re: Maven Reactor and plugin "local" dependencies

2022-05-06 Thread Thomas Broyer
omes before annotation-user in the aggregator POM (it also runs the whole build, rather than '-pl annotation-user -am', using that you should see that you need to explicitly add annotation-processor to the project list on the command line) -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven Reactor and plugin "local" dependencies

2022-05-06 Thread Thomas Broyer
procase generated using a couple of org.apache.maven.archetypes:maven-archetype-simple archetype:generate invocations, exec-maven-plugin failed with a NPE when looking up the executableDependency, which is probably a bug in the plugin, but my point was to demonstrate issues with the Maven lifecycles, even prior to execute the plugin's goal. If you do not want/cannot afford to add the package phase to that invocation, your only alternative (to my knowledge) is to 'mvn install -pl submoduleA' prior to 'mvn -pl submoduleB exec:java'. -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven Reactor and plugin "local" dependencies

2022-05-06 Thread Thomas Broyer
ut there are exceptions). In other words, I should be able to 'cd' into a project and 'mvn verify' it and it should Just Work™ without relying on some "ambient" state such as "when did I last 'mvn install' that thing? am I actually using the 'correct version' of it?". -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven Reactor and plugin "local" dependencies

2022-05-06 Thread Thomas Broyer
lugin:scaffold -Dwhatever' (note that I haven't included -am here). You could argue this is somehow "broken", I wouldn't disagree, but then don't argue that Maven itself is not somehow "broken by design" or at a minimum "limited" in its capabilities: there are cases w

Re: Maven Reactor and plugin "local" dependencies

2022-05-05 Thread Thomas Broyer
Because it is an antipattern? https://www.cloudbees.com/blog/maven-and-install-hack If you do rely on "mvn install", which one of your commit is your snapshot in your local repository from? How can you tell? And it gets worse if you deploy snapshots to a repository, as now it could also be from

Re: What steps will install dependent artifacts in local maven repo

2022-03-23 Thread Thomas Broyer
Jenkins build nodes, and I'm > > not > > > certain whether those build nodes are shared with other projects in > > our > > > large enterprise. I'm trying to determine that. > > > > > > We may determine that because of these issues, we will have to specify > > a > > > fresh empty local repository for every build, which will obviously > > make our > > > builds take longer. > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: What steps will install dependent artifacts in local maven repo

2022-03-22 Thread Thomas Broyer
Le mar. 22 mars 2022 à 23:37, Nick Stolwijk a écrit : > Also, org.codehaus.groovy:groovy-eclipse-batch:RELEASE is not in > Maven Central. Yes it is: https://search.maven.org/artifact/org.codehaus.groovy/groovy-eclipse-batch About the RELEASE version:

Re: What steps will install dependent artifacts in local maven repo

2022-03-22 Thread Thomas Broyer
This is totally unexpected behavior to me: an external artifact whose content would be different depending on which JDK downloaded it. Would you mind sharing the maven-compiler-plugin declaration with the ecj dependency? (to try replicating the issue and understand it) Le mar. 22 mars 2022 à

Re: Plugin goal that will trigger "verify"

2022-03-10 Thread Thomas Broyer
On Thu, Mar 10, 2022 at 5:22 AM Nils Breunese wrote: > Thomas Broyer wrote: > > > Le mer. 9 mars 2022 à 23:48, Nils Breunese a écrit : > > > >> The Maven build lifecycle consists of phases [0] and you can bind plugin > >> goals to phases. As far as I know

Re: Plugin goal that will trigger "verify"

2022-03-09 Thread Thomas Broyer
Le mer. 9 mars 2022 à 23:48, Nils Breunese a écrit : > Steve Hannah wrote: > > > I'm trying to achieve better integration into VSCode with my project > > archetype. The way that the VSCode maven extension seems to prefer to > work > > is for users to explicitly "run" a goal from a plugin of the

Re: Local repository accessed by multiple Maven instances - how is it solved ?

2021-10-04 Thread Thomas Broyer
ying my Jenkinsfile. > > Moreover, does anyone know how this problem is solved technically ? Using > files lock ? Can anybody explain ? > > Thanks you and thanks the Maven team for keeping up the good work at such > pace ! > > François MAROT > > > * https://issues.ap

Re: maven-surefire-plugin jdkToolchain meets forkCount

2021-08-26 Thread Thomas Broyer
maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:84) > [ERROR] at > > org.apache.maven.plugin.surefire.InPluginVMSurefireStarter.runSuitesInProcess(InPluginVMSurefireStarter.java:87) > [ERROR] ... 16 more > > I don't like guessing what is going on here, but i'm not in a position to > go that extra mile and "Run Maven with -Dmaven.surefire.debug, and attach > to the running process with a debugger." > > In a nutshell my question is "how can I build with a JDK 9 or above using a > toolchain and without being limited to a single test fork?" > > Thanks, > Delany > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Attaching dependency-reduced POM to build using Maven Assembly or Shade

2021-04-25 Thread Thomas Broyer
Well, maven-shade-plugin does "attach" the dependency-reduced POM: https://github.com/apache/maven-shade-plugin/blob/768092f38b0b1650217642cf10b7b0c381cbf707/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java#L1191 At least when you install or deployed, that POM gets

Re: Running tests from a test jar

2021-03-31 Thread Thomas Broyer
Dependencies declared with scope=test in the original project (google-cloud-storage) won't come in transitively, you'd have to copy/paste them. Ideally, if that use case were to be officially supported, the project would have to publish the tests as a normal JAR at different coordinates, so it

Re: Add command-line options to the javadoc plugin?

2021-03-27 Thread Thomas Broyer
? https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html#additionalOptions Though many (all?) options can be set directly through plugin properties. Le sam. 27 mars 2021 à 02:35, leerho a écrit : > I can't find adequate documentation on how to add command line arguments / >

Re: maven-assembly-plugin v3.3.0 - how to modify generated MANIFEST.MF

2021-02-18 Thread Thomas Broyer
Use the 'archive' property of the assembly plugin itself (not in the assembly descriptor): http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#archive Le jeu. 18 févr. 2021 à 11:23, Jean-Pierre Urkens a écrit : > Hi all, > > > > I am trying to generate a ‘jar’ assembly that

Re: License - 301 Moved Permanently

2021-02-14 Thread Thomas Broyer
Well, at a minimum, http:// is redirecting to https:// so that explains the 301. Le dim. 14 févr. 2021 à 21:13, Anthony Whitford a écrit : > I just noticed that my generated Site isn’t properly including the MIT > License. > > In my pom.xml, I have: > > > > The MIT License >

Re: Releasing a subset of the Reactor

2021-02-05 Thread Thomas Broyer
. Ask any system administrator. > >> There are 10 types of people in the world: Those who understand binary, > and > >> those who don't. > >> To understand recursion, we must first understand recursion. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: BOM vs Parent inheritance

2021-02-03 Thread Thomas Broyer
Actually, I'd say those BOMs probably shouldn't declare jackson. The project's dependencies should be enough, and you explicitly declare the version you need/want to use. In the case of the OCI BOM, it seems quite clear that it mistakenly inherits dependency management from it's parent POM: most

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Thomas Broyer
ith regards, > > Nick Stolwijk > > ~~~ Try to leave this world a little better than you found it and, when > your turn comes to die, you can die happy in feeling that at any rate you > have not wasted your time but have done your best ~~~ > > Lord Baden-Powell > > > On

Re: Preferred way to execute Maven goals/phases from Maven plugins

2020-11-02 Thread Thomas Broyer
u can die happy in feeling that at any rate you > have not wasted your time but have done your best ~~~ > > Lord Baden-Powell > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven Plugins & Confusing Versioning

2020-10-06 Thread Thomas Broyer
(sorry for the delay) On Sat, Oct 3, 2020 at 5:27 PM Karl Heinz Marbaise wrote: > Hi, > > On 03.10.20 11:47, Thomas Broyer wrote: > > Wait, you mean that you don't even follow your own rules for versions ⁉️ > > where milestones sit between beta and RC versions. > >

Re: Maven Plugins & Confusing Versioning

2020-10-03 Thread Thomas Broyer
Wait, you mean that you don't even follow your own rules for versions ⁉️ where milestones sit between beta and RC versions. Le sam. 3 oct. 2020 à 09:57, Enrico Olivelli a écrit : > Lukas, > The general rule is that we are not releasing unstable versions so it is > generally safe and good to

Re: How should I represent a library with two configurations in Maven Central?

2020-09-21 Thread Thomas Broyer
+1 Use version suffixes, and think about deploying Gradle Module Metadata so Gradle users can see them as variants of one another and more accurately pick a version: https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html and e.g. https://github.com/google/guava/pull/3683

Re: Excluding source files even if they are referenced

2020-09-14 Thread Thomas Broyer
nerated though. So compilation will succeed, but the output will be "incomplete" (but maybe that's what you want after all). [1] https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#excludes [2] https://blog.ltgt.net/most-build-tools-misuse-javac/ -- Thomas Broye

Re: does order of dependencies in dependemcymanagement matter?

2020-07-09 Thread Thomas Broyer
endemcymanagement matters? > > and also, does order of plugins in pluginmanagement matters? > > > > > > thanks! > > -- > Regards, > Tomo > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: How to download zip instead of jar from maven repo...

2020-07-07 Thread Thomas Broyer
Narc:1.6 > (/root/.m2/repository/org/codenarc/CodeNarc/1.6/CodeNarc-1.6.jar): No > plugin descriptor found at META-INF/maven/plugin.xml -> [Help 1] > > What's this about? > > Thanks, > Linus. > > > On Tue, 7 Jul 2020, 22:20 Thomas Broyer, wrote: > > > This

Re: How to download zip instead of jar from maven repo...

2020-07-07 Thread Thomas Broyer
> > > However, I encounter an error downloading the dependencies since maven > expects a codenarc:jar file but a zip file is provided instead. > > How do I force Maven to download the zip file instead, preferably > configuring it within the pom? > > > Regards, > Linus. > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Reactor module dependency tree resolution

2020-04-24 Thread Thomas Broyer
r of building the modules, depending on how > those modules depend on each other. This (what I will call) reactor module > tree is exactly the information I need. > > Is there a way to access this information from a plugin? ${reactorProjects} > does not tell me that. Or am I miss

Re: Overwriting the "central" from settings.xml when importing bom pom files

2020-03-15 Thread Thomas Broyer
Not a direct answer but what if you use a rather overriding the "central" ? https://maven.apache.org/guides/mini/guide-mirror-settings.html Le dim. 15 mars 2020 à 18:17, tic01 a écrit : > Hi team, > > When resolving bom artifacts, the following method is invoked - >

Re: Problem with the maven-compiler-plugin

2020-03-13 Thread Thomas Broyer
What is it that you think is not working? (fwiw, javaP -version prints the version of javaP, not the version the class was compiled with/to; that would be a 51.0 or similar anyway, not a 1.7) Le ven. 13 mars 2020 à 08:26, Nelligan, Steven M a écrit : > *It appears that the

Re: build maven project without setting compiler source and target

2020-02-17 Thread Thomas Broyer
> It's basically: I use different systems all with different jdk > > installed > > - so when just clone the most recent version from github I always have > > to set the correct version manual as netbeans doesn't seem to be handle > > that by itself - and I could find an option to just get rid of it at > > all. > > > > Thanks in advance, > > > > Matt > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: versioning by hashes to speedup multi-module build (a'la nix package manager)

2020-02-02 Thread Thomas Broyer
Le dim. 2 févr. 2020 à 17:48, Anton Vodonosov a écrit : > Hello. > > In order to speed up the build of a multi-module project, I'd like to > reuse artifacts of modules that haven't changed. > Manual versioning is tedious and error-prone. > > Is it possible to automatically assign versions to

Re: How to avoid forking in a maven build?

2019-12-31 Thread Thomas Broyer
ns --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory > /home/sb/workspaces/ws03/authservice/authservice.definitions/src/main/resources > ... > > A lot of the forking messages to be repeated, so I worry that it does > some op

Re: Configure default execution phase

2019-12-23 Thread Thomas Broyer
That would reconfigure which phase the mojo is bound to (if any, which is not the case if the Liquibase plugin) when executed as part of the build lifecycle; it won't allow you to fork a lifecycle when calling the goal directly. Le lun. 23 déc. 2019 à 15:02, Mark Prins a écrit : > You should be

Re: Configure default execution phase

2019-12-23 Thread Thomas Broyer
It's hardcoded in the plugin (and this is why you have things like sources:jar and sources:jar-no-fork depending on how you need/want to invoke it) Le dim. 22 déc. 2019 à 18:04, Stanimir Stamenkov a écrit : > I'm having a POM like: > > > > > >

Re: A "?"/.m2 folder is created by Maven

2019-12-14 Thread Thomas Broyer
IIRC, Java's user.home system property does not depend on $HOME but on the home of the current user as declared in /etc/passwd If you want to set/change it, you need to set the system property with -Duser.home=… (with Maven, you'd set it in $MAVEN_OPTS; I think you could also use $_JAVA_OPTS to

Re: 2 issues with maven version range

2019-12-01 Thread Thomas Broyer
in your dependency tree, and dependencyManagement can be used to pin the version you want to actually use. See https://github.com/google/guava/issues/2914 and https://docs.google.com/document/d/1NYGbfz56C0Oh4IGymXjeQUVK4FcRiqDbpc4vGLnDMrY/edit?usp=sharing (which I found out after writing the above, and didn't read in full yet) -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: POM parent/import relationship visualization

2019-10-29 Thread Thomas Broyer
tuation where I had to dig parent/import > > relationship of multiple POMs. I had to read pom.xml via > search.maven.org > > for each POM artifact. > > Detail: > > https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1001 > . > > I wish I can trouble

Re: Maven compiler plugin - test compiler arguments with double dash

2019-10-09 Thread Thomas Broyer
te Member / Mobey Forum Member > > This message is private and confidential. Any views or opinions > expressed are solely those of the author and do not necessarily represent > those of Infobip d.o.o. If you have received this message in error, please > notify us immediately via email to customer.supp...@infobip.com customer.supp...@infobip.com> or telephone +442032864231. > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Same snapshot deploy number for entire build - possible

2019-09-13 Thread Thomas Broyer
n-timestamp-NN > > > > > > > > where NN auto-incremented at each maven module and the number varies > > > > > > > > Is there a way to use same snapshot NN for the entire multi-module > > maven > > > > build? > > > > > > > > If I have to implement a solution, would it be as an extension or I > > have > > > > to tinker with maven-deploy-plugin? > > > > > > > > Very appreciated any advice > > > > > > > > -D > > > > > > > > > > > > > > > > > > > > > > > > > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: the surefire maven plugin and codehaus

2019-06-29 Thread Thomas Broyer
On Sat, Jun 29, 2019 at 4:50 PM Tibor Digana wrote: > Where do we use dependency with groupId "org.codehaus.mojo"? > I wasn't replying to the surefire part of the OP, Tibor; only about org.codehaus.mojo groupId and whether those are "dead components".

Re: the surefire maven plugin and codehaus

2019-06-29 Thread Thomas Broyer
> BR018923), Registered Branch Office: 25 Canada Square, London, E14 5LQ; FIS > Investment Systems LLC is a limited liability company formed in the USA > registered on file with the Office of the Delaware Secretary of State, > Division of Corporations (File No. 0881255), Head Office: 377 E. > Butterfield Road, Suite 800, Lombard, IL 60148, USA | Calls to and from the > companies may be recorded for quality purposes. | All of the named > companies are part of FIS (Fidelity National Information Services, Inc.). > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Problem with use of enforcer-plugin after upgrading the Apache parent POM (18->21)

2019-06-24 Thread Thomas Broyer
--------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven adjusts transitive compile-scope dependency to test-scope

2019-05-14 Thread Thomas Broyer
There might be a rule in the enforcer plugin (I haven't checked). If one really wanted to change the dependency scope, he could add an exclusion in the Y dependency to break the transitivity. Fwiw, whenever you change your dependencies, it's a good idea to run mvn dependency:tree and look at the

Re: Using maven-dependency-plugin:unpack in "mvn compile" build

2019-03-24 Thread Thomas Broyer
Rule of thumb: in a react build, don't ever use any lifecycle phase prior to package, and if you want to skip tests, use -DskipTests or -Dmaven.test.skip. Corollary: stick with "package" and "verify" (I consider "mvn install" is an anti-pattern). BTW, as another rule of thumb, use "processClasses"

Re: Maven plugin with annotations: default lifecycle phase?

2019-02-12 Thread Thomas Broyer
Adding the plugin won't be enough, you'll have explicitly name the mojo in an . What defaultPhase does is that you don't have to specify a in the . Actually, you can even list all mojos in the same even if they're bound to different default phases: … … … mojo1

Re: Puzzling Aether behaviour

2018-12-22 Thread Thomas Broyer
Le ven. 21 déc. 2018 20:23, Robert Scholte a écrit : > There are a couple of things happening here. > > 1. dependencies are checked even though they are downloaded > This ensures that the build doesn't rely on *your* *local* repository. At > any time anybody should be able to build the project,

Re: Running a plugin only once after the whole build pass

2018-11-26 Thread Thomas Broyer
This needs to be built into the plugin that will do the aggregation. The mojo needs to be marked as being an "aggregator": https://maven.apache.org/developers/mojo-api-specification.html On Mon, Nov 26, 2018 at 12:55 PM Neeraj Mahajan wrote: > Hi , > > I have multi module project and each

Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
; > > > Here's my latest attempt : > > > > https://ibb.co/g4atCq > > > > https://ibb.co/kppH5A > > > > I am so sorry to trouble you again but > > I really hope how should I make the my URL correct. Do > > I move all the jsp to above image fo

Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
to above image folder and just below > WEB-INF ? > > Tks & regards, > Karen > > --- On Sun, 11/4/18, Karen Goh wrote: > > > From: Karen Goh > > Subject: Re: Need advice to put my bootstrap template in Maven archetype > web app > > To: "Thomas Broy

Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-02 Thread Thomas Broyer
On Thu, Nov 1, 2018 at 5:55 AM Karen Goh wrote: > > > On Tue, 10/30/18, jieryn wrote: > > Subject: Re: Need advice to put my bootstrap template in Maven archetype > web app > To: "Maven Users List" , karenwo...@yahoo.com > Date: Tuesday, October

Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin

2018-10-17 Thread Thomas Broyer
How about, say, maven-compiler-plugin's annotationProcessorPaths? Le mer. 17 oct. 2018 12:29, Andreas Janning a écrit : > Hello maven users, > > I have just released a new open source maven plugin: The Go Offline Maven > Plugin. > > It can be used to download all dependencies and plugins

Re: Attaching Java Agent to Tests Using Custom Plugin

2018-10-16 Thread Thomas Broyer
Have a look at how JaCoCo does it, as AFAICT it has exactly the same needs: https://www.eclemma.org/jacoco/trunk/doc/maven.html (source code: https://github.com/jacoco/jacoco/tree/master/jacoco-maven-plugin/src/org/jacoco/maven ) TL;DR: prepare-agent goal sets a property that you can then use to

Re: Running integration tests twice against different webapp configurations

2018-10-12 Thread Thomas Broyer
Alternatively, if possible, you could possibly run the app with both configurations in parallel (two executions of jetty-maven-plugin in pre-integration-test and post-integration-test phase, using different ports), and run you tests twice, for each app / port (two executions of failsafe at

Re: JDK Version for new project generated by mvn archetype:generate

2018-09-11 Thread Thomas Broyer
Either change the artifact (if you can) so it generates a pom.xml with the appropriate source/target version [1], or indeed change the project pom.xml (after it's been generated by the archetype) [1] and possibly a profile for JDK 9+ that uses , assuming the target is <= 8; otherwise use instead

Re: Could not resolve dependencies error

2018-08-29 Thread Thomas Broyer
On Wed, Aug 29, 2018 at 8:36 AM Guido van Brakel < guido.vanbra...@outlook.com> wrote: > Hi, > > We have an issue with Maven not finding a certain dependency, anyone able > to help this Maven. Keep in mind that I’m quite newbie to Maven, and just > try run a build > > [ERROR] Failed to execute

Re: Integration testing of command line tools?

2018-08-21 Thread Thomas Broyer
One approach could be to have a main() overload taking an additional Environment argument to abstract access to environment variables, system properties, and standard I/O; and returning an int as the possible System.exit() value. That way, you can easily stub the environment for tests. Your

Re: maven - pom.xml file

2018-07-24 Thread Thomas Broyer
What you're looking for is https://maven.apache.org/pom.html (from https://maven.apache.org/ click "User Center" then "POM Reference") Le mar. 24 juil. 2018 19:40, Angelo Moreschini a écrit : > How course I found the document at link : " > http://maven.apache.org/xsd/maven-4.0.0.xsd; > > But

Re: Distribution management

2018-07-10 Thread Thomas Broyer
altDeploymentRepository (or alternatively altReleaseDeploymentRepository/altSnapshotDeploymentRepository) sounds like THE solution to this problem: https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#altDeploymentRepository mvn deploy

Re: Java 9 modules for Maven components for Java 9 based pluggins

2018-06-28 Thread Thomas Broyer
On Thu, Jun 28, 2018 at 5:59 PM Karl Heinz Marbaise wrote: > Hi, > > On 28/06/18 12:59, Václav Haisman wrote: > > Hi. > > > > Is there any effort to make Maven Java 9 friendly and provide modules? I > > have hit some issues when I was trying to compile a 3rd party Maven > plugin > >

Re: Release a snapshot version

2018-06-27 Thread Thomas Broyer
It looks like you just want to deploy your snapshot to a repository; in that case you'll want to simply "mvn deploy", without even using the maven-release-plugin (for the reasons Karl Heinz gave) Le mer. 27 juin 2018 18:30, Ravindranatha Panikar, Renjith < rr...@allstate.com> a écrit : > I am

Re: mvn dependency:purge-local-repository

2018-06-15 Thread Thomas Broyer
On Fri, Jun 15, 2018 at 5:45 PM Karen Goh wrote: > Hi, > > I run into a problem in my Spring Boot Web project and then there's an > advice following this URL : > > https://github.com/spring-projects/spring-boot/issues/12398 > > But, when I run mvn dependency:purge-local-repository, I get another

Re: maven-license plugin's license-list

2018-05-22 Thread Thomas Broyer
No, AFAICT, it's the list of all licences known to the plugin, irrespective of "applicability" and/or your dependencies. On Tue, May 22, 2018 at 5:20 PM Désilets, Alain < alain.desil...@nrc-cnrc.gc.ca> wrote: > This may sound a bit nit-picky, but I need to be 100% about this... > > > I am using

Re: javadoc:jar and generated sources

2018-03-15 Thread Thomas Broyer
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! So running 'mvn javadoc:jar' alone indeed won't run your protoc plugin, which won't add the generated sources as a compile source

Re: Running tomcat maven plugin in a multi modules project

2018-01-14 Thread Thomas Broyer
uary 2018 at 03:25, Thomas Broyer <t.bro...@gmail.com> wrote: > > > On Sat, Jan 13, 2018 at 3:20 PM Thomas Broyer <t.bro...@gmail.com> > wrote: > > > > > Tomcat Maven plugin has built-in support for reactors, so run it at > root > >

Re: Running tomcat maven plugin in a multi modules project

2018-01-13 Thread Thomas Broyer
On Sat, Jan 13, 2018 at 3:20 PM Thomas Broyer <t.bro...@gmail.com> wrote: > Tomcat Maven plugin has built-in support for reactors, so run it at root > rather than within the web submodule (possibly with "-pl web -am"). It will > automatically compile all (needed) sub

Re: Running tomcat maven plugin in a multi modules project

2018-01-13 Thread Thomas Broyer
Tomcat Maven plugin has built-in support for reactors, so run it at root rather than within the web submodule (possibly with "-pl web -am"). It will automatically compile all (needed) submodules and launch Tomcat, and with auto-deploy will automatically reload the webapp to pickup changes in any

Re: using includes in maven-source-plugin induces sources are not found anymore

2017-11-02 Thread Thomas Broyer
maven-assembly-plugin would likely be less ugly. Have you tried that? Le jeu. 2 nov. 2017 22:26, MAISONOBE Luc a écrit : > Hi, > > MAISONOBE Luc a écrit : > > > Hervé BOUTEMY a écrit : > > > >> Hi, > > > > Hi Hervé, > > > >> >

Re: Strange NoSuchMethodError in plugin, any idea?

2017-10-10 Thread Thomas Broyer
rrupt jar > > Robert > > On Tue, 10 Oct 2017 15:51:34 +0200, Thomas Broyer <t.bro...@gmail.com> > wrote: > > > Hi all, > > > > A net.ltgt.gwt.maven:gwt-maven-plugin user reported to me today [1] that > > after updating the plugin from the latest release

Strange NoSuchMethodError in plugin, any idea?

2017-10-10 Thread Thomas Broyer
Hi all, A net.ltgt.gwt.maven:gwt-maven-plugin user reported to me today [1] that after updating the plugin from the latest release to the latest snapshot, he faces a NoSuchMethodError on org.codehaus.plexus.util.StringUtils.isBlank(Ljava/lang/String;)Z. Between the two tested versions, I updated

Re: Maven Extension Idea: iJar support

2017-10-04 Thread Thomas Broyer
See https://melix.github.io/javaone-2017-max-incremental/ for how Gradle does it (and so it uses it not only for incremental compilation, but also compilation avoidance). Bazel's ijars are a similar mechanism to avoid unnecessary work. On Wed, Oct 4, 2017 at 5:19 PM Thomas Broyer <t.

Re: Maven Extension Idea: iJar support

2017-10-04 Thread Thomas Broyer
AFAIK, the ijar (for "interface jar") is a standard JAR, with standard *.class files *except* that the method bodies and private members have been stripped out (and timestamps are normalized too). That way, if you change a method implementation, or a private member (add/remove private field or

Re: Where does shaded JAR get its POM?

2017-09-04 Thread Thomas Broyer
AFAIK, as soon as you use a in a dependency, the transitive dependencies from its POM aren't used (actually, Maven might even not download the POM at all in this case); so you should be OK using shaded. Note however that, this shaded JAR still depends on Guava, SLF4J API and Immutables, so you'll

Re: There must be a better way.

2017-08-30 Thread Thomas Broyer
r the last thing that is done in the execution. > > Sadly it's done only for the regular jar. Not the jar-with-dependencies > > one. > > > > And yes I've updated the versions in the new build file. So assembly > > plugin and shade plugin both run with 3.1.0. > >

Re: There must be a better way.

2017-08-30 Thread Thomas Broyer
You're using both m-assembly-p's jar-with-dependencies and m-shade-p, could it be a conflict between them? (or possibly you don't look at the correct JAR) If you use m-shade-p, you don't need m-assembly-p's jar-with-dependencies; m-shade-p does the same thing, better, and does more (class

Re: Auditing version ranges

2017-08-15 Thread Thomas Broyer
Maven Enforcer Plugin's Require Upper Bound Dependencies might be enough for your use-case (also notice there's a Require Release Dependencies rule to prohibit snapshot dependencies) http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html Le mar. 15 août 2017 12:06, Mark

Re: If anyone ever wanted to download a bunch of deps specified in a Maven POM for an Ant build

2017-06-11 Thread Thomas Broyer
Wouldn't have dependency:copy-dependencies helped here rather than sed/grep/wget? (maybe not, devil is in the details and I just skimmed through your script) https://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Le dim. 11 juin 2017 20:53, Paul Hammant

Re: dependency:analyze controversial result

2017-05-17 Thread Thomas Broyer
activemq-all, as its name suggests, bundles third-party dependencies in its JAR (rather than declaring them as dependencies), and it happens to include slf4j: http://grepcode.com/snapshot/repo1.maven.org/maven2/org.apache.activemq/activemq-all/5.11.1 So I suppose, the first run finds slf4j classes

Re: Continuous Delivery with Maven now possible?

2017-05-04 Thread Thomas Broyer
How about everybody read their mail? (see below) On Thu, May 4, 2017 at 6:10 PM Curtis Rueden wrote: > Hi Dan, Karl & everyone, > > > See Karl's Blog > > Link, please? > […] > > > > On 03/05/17 20:39, Dan Tran wrote: > > > > > > > >> Hi > > > >> > > > >> I have been

Re: Gentoo packaging / reproducibility of Maven-based Java projects

2017-03-20 Thread Thomas Broyer
Disclaimer: I don't know Gentoo. On Mon, Mar 20, 2017 at 4:19 PM Curtis Rueden wrote: > > The main question I have is about Maven plugins: since Maven builds do some > bootstrapping, but Gentoo builds are not supposed to download things from > the network, it means we might

Re: [Help] Force maven[-surefire] to run in parallel

2017-03-15 Thread Thomas Broyer
Hi, On Wed, Mar 15, 2017 at 2:11 PM Luis Henrique de Souza Melo < l...@cin.ufpe.br> wrote: > Hi, > > I am a student at the Federal University of Pernambuco, and our group is > having some issues with Maven to run some tests in a huge amount of > projects. > > We plan to run all theses

Re: Possible to use maven API to get another projects binaries ?

2017-03-08 Thread Thomas Broyer
Le mar. 7 mars 2017 12:49, Tushar Kapila a écrit : > So is my best bet to make a OS Process, collect the output and parse > the text to get files created like the following maven run snippet: > > > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > [INFO] ---

  1   2   3   >