Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread David Karr
On Wed, Mar 30, 2022 at 11:52 AM Jörg Schaible wrote: > Hi David, > > On Wednesday, 30. March 2022, 19:46:35 CEST David Karr wrote: > > I work in a large company on a large project with hundreds of services, > > most of which are Java Maven projects. We have an "archetype" we use for > > new ser

Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread David Karr
On Wed, Mar 30, 2022 at 11:52 AM Shipp, Scott wrote: > Are you saying that this is not a Maven archetype or that it is? The Maven > archtetype feature allows the POM (and other files) to be templated. It > sounds like exactly what you are looking for. Check out > https://maven.apache.org/guides/m

Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread Jörg Schaible
Hi David, On Wednesday, 30. March 2022, 19:46:35 CEST David Karr wrote: > I work in a large company on a large project with hundreds of services, > most of which are Java Maven projects. We have an "archetype" we use for > new services. It doesn't use the Maven archetype process. There are > par

Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread Shipp, Scott
Are you saying that this is not a Maven archetype or that it is? The Maven archtetype feature allows the POM (and other files) to be templated. It sounds like exactly what you are looking for. Check out https://maven.apache.org/guides/mini/guide-creating-archetypes.html it will probably do what

Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread Bernd Eckenfels
Syntax error sounds like the best thing - using a enforcer plugin to produce an error will not be possible in arbritary locations. And of course you also can add a commit or review hook to block template snippets to be committed. Not sure if any of that is required if you have a commit review p

How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread David Karr
I work in a large company on a large project with hundreds of services, most of which are Java Maven projects. We have an "archetype" we use for new services. It doesn't use the Maven archetype process. There are particular areas in the pom.xml that is generated that really need to be modified by

Re: Getting the groupid, artifact id, and version of the package under test

2022-03-30 Thread Alexander Kriegisch
It is actually easier than that, there is no need to use system properties. You can pass a parameter to an agent's 'premain' and 'agentmain' methods, which have signatures public static void premain( String commandLineOptions, Instrumentation instr ) public static void agentmain( String com

Re: Getting the groupid, artifact id, and version of the package under test

2022-03-30 Thread John Patrick
I would do this via a profile, default value and surefire config, so something like; withJavaAgent -javaagent:C:\JARS\agent.jar maven-surefire-plugin ${myJavaAgent} -DtheGroup=${project.groupId} -DtheArtifact=${project.artifactId} Then if you want to

Call for Presentations now open, ApacheCon North America 2022

2022-03-30 Thread Rich Bowen
[You are receiving this because you are subscribed to one or more user or dev mailing list of an Apache Software Foundation project.] ApacheCon draws participants at all levels to explore “Tomorrow’s Technology Today” across 300+ Apache projects and their diverse communities. ApacheCon showcases t