mvn as used in Eclipse m2e gets parse error because of mistake in Maven 4.0.0 schema

2023-10-17 Thread David Karr
I have a feeling this has been covered before, but I'll ask just in case. I have a pom.xml that inherits from a parent pom, and the child pom has the following plugin definition: -- maven-compiler-plugin 3.8.0 11

Re: Why does one of our archetypes work, and the other gets "The defined artifact is not an archetype"

2023-10-11 Thread David Karr
2023 at 10:56 AM David Karr wrote: > Ok, I'll address some points in order. My current command line is this: > -- > mvn -e archetype:generate -DgroupId=com.att.idp -DartifactId=MyApplication > -Dpackage=com.att.idp -DarchetypeGroupId=com.att.idse > -Darch

Re: Why does one of our archetypes work, and the other gets "The defined artifact is not an archetype"

2023-10-09 Thread David Karr
chetype-simple > -DarchetypeVersion=1.5-SNAPSHOT" to generate a project from it > > Regards, > > Hervé > > On 2023/10/06 16:11:36 David Karr wrote: > > Thanks for the responses. I've gone through this, but I still don't see a > > solution. > &g

Re: Why does one of our archetypes work, and the other gets "The defined artifact is not an archetype"

2023-10-06 Thread David Karr
reference documentation > that explains much more: > https://maven.apache.org/archetype/maven-archetype-plugin/index.html > > > > I'm not sure mini guide was updated as it should > > > > Regards, > > > > Hervé > > > > On 2023/10/05 20:38:

Why does one of our archetypes work, and the other gets "The defined artifact is not an archetype"

2023-10-05 Thread David Karr
I support and maintain a platform used by a couple hundred SpringBoot/JAX-RS/Maven/K8S services. When new services are created, a Maven archetype is used to create the service skeleton. This has worked fine for quite a while. We're now working on a variation using SpringMVC instead of JAX-RS, an

How to control ordering of transient dependencies?

2023-08-29 Thread David Karr
I support a large number of SpringBoot services built with Maven. I recently noticed that one of our transient dependencies has a conflict with another transient dependency, as it has several FQCNs that are identical to ones in the second artifact, but with different content. In most of those ser

Re: Confused about how to override a transient artifact version

2023-07-28 Thread David Karr
es 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 Sat, 29 Jul 2023 at 01:29, David Karr > wrote: > > > In general, I know how to override transient artifact versions. Yo

Confused about how to override a transient artifact version

2023-07-28 Thread David Karr
In general, I know how to override transient artifact versions. You add an "exclusion" for the artifact on the dependency that is including that dependency, and then you manually add that dependency in the same pom where you added the exclusion. In my case, the version I want is defined in a bom i

How to get Maven to give me ALL the dependency errors, instead of just the first one

2023-06-01 Thread David Karr
We have a situation in our build environment where Maven concludes it can't get certain artifacts, resulting in a build failure message like this: [ERROR] Failed to execute goal on project ..: Could not resolve dependencies for project ...:jar:1.1.0-SNAPSHOT: The following artifacts could not be r

Questions about frequency of "Progress" log lines while downloading artifacts

2023-03-08 Thread David Karr
We're looking at performance issues with the intranet repository in our enterprise. I was looking at some Maven build output while downloading artifacts, and I wanted to be clear on exactly what is indicated by some output while downloading artifacts. Here is a somewhat elided block of build outp

How to configure Maven for an overloaded intranet repository?

2022-09-29 Thread David Karr
I work in a very large enterprise that uses a centralized intranet maven repository to get artifacts from. It often has load issues that result in builds failing with "failed to respond". The team that maintains it is working towards eventual mitigations for that, but it will be quite a while bef

Re: JUnit 5 test suites not running again

2022-07-08 Thread David Karr
Inline. On Fri, Jul 8, 2022 at 8:17 AM Karl Heinz Marbaise wrote: > Hi, > > On 08.07.22 16:18, David Karr wrote: > > I had gotten help here with our JUnit 5 transition, and I thought I had > it > > all working, but now I see that I'm back to the state where our JUni

JUnit 5 test suites not running again

2022-07-08 Thread David Karr
I had gotten help here with our JUnit 5 transition, and I thought I had it all working, but now I see that I'm back to the state where our JUnit 5 test suites are being ignored. >From what I understood, I had to ensure that "junit-platform-runner" was excluded as a dependency. What I have seems t

Re: How to properly override junit-platform and junit-jupiter in a parent pom

2022-06-18 Thread David Karr
On Sat, Jun 18, 2022 at 4:17 PM Nils Breunese wrote: > David Karr wrote: > > > We have a bunch of services running Spring Boot 2.3.12, which by default > > uses junit-platform 1.6.3 and junit-jupiter 5.6.3. > > > > We are trying to instead use junit-platform 1

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-18 Thread David Karr
#x27;s a little harder to tell what bom they came from (is that one of the points about a recent discussion about improvements to dependency:tree?) On Sat, Jun 18, 2022 at 3:03 AM Karl Heinz Marbaise wrote: > Hi, > > > On 17.06.22 20:46, David Karr wrote: > > Ok, what is the pro

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
t have to do this in each service pom. On Fri, Jun 17, 2022 at 12:26 PM David Karr wrote: > Ok, so the tree has output like this: > -- > [INFO] +- com.att.idp:idp-seed-sdk-core:jar:2.7.0-SNAPSHOT:compile > [INFO] | +- org.junit.jupiter:junit-jupit

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
Please examine output of dependency:tree and look where is added > junit-platform-runner > > pt., 17 cze 2022 o 20:47 David Karr > napisał(a): > > > Ok, what is the proper way to do that, considering I have the follo

Re: Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
: > Do you have on your classpath - junit-platform-runner? > Please remove it. > > > pt., 17 cze 2022 o 20:23 David Karr > napisał(a): > > > I'm posting a new note, as this might be a different issue. > > > > I recently got good advice on this list a

Surefire not running JUnit 5 tests after fixing how junit-bom artifacts are specified

2022-06-17 Thread David Karr
I'm posting a new note, as this might be a different issue. I recently got good advice on this list about how to properly specify the version overrides for the junit-bom artifacts. When I implemented that, I saw that I was consistently getting the correct versions for those artifacts. However, I

Re: How to properly override junit-platform and junit-jupiter in a parent pom

2022-06-16 Thread David Karr
If it matters, I see that in our parent bom artifact, we are importing "spring-boot-dependencies". On Thu, Jun 16, 2022 at 5:27 PM David Karr wrote: > Sorry, can you clarify exactly what you mean by that? > > On Thu, Jun 16, 2022 at 4:14 PM Karl Heinz Marbaise > wrot

Re: How to properly override junit-platform and junit-jupiter in a parent pom

2022-06-16 Thread David Karr
;t use spring-boot-parent? > > Kind regards > Karl Heinz Marbaise > > > On 16.06.22 23:54, David Karr wrote: > > We have a bunch of services running Spring Boot 2.3.12, which by default > > uses junit-platform 1.6.3 and junit-jupiter 5.6.3. > > > > We are t

How to properly override junit-platform and junit-jupiter in a parent pom

2022-06-16 Thread David Karr
We have a bunch of services running Spring Boot 2.3.12, which by default uses junit-platform 1.6.3 and junit-jupiter 5.6.3. We are trying to instead use junit-platform 1.8.2 and junit-jupiter 5.8.2. All the artifacts and versions we need are in junit-bom-5.8.2. We want to control this in our pare

Re: Kubernetes Build Environment

2022-06-05 Thread David Karr
Along the lines of Bernd's response, I would (as we have done in our own builds) use Maven to build the artifacts that we deploy to our intranet repositories, but we do everything else in Jenkins pipeline script. We just call "kubectl" for k8s configuration steps, and when it comes down to integrat

Re: Questions about surefire issue causing "buffer overflow" and apache JIRA problem

2022-05-31 Thread David Karr
> [1] https://lists.apache.org/thread/r86q92w8pfb1g3rg8tzbt810cjt6vdcq > > wt., 31 maj 2022 o 15:47 David Karr > napisał(a): > > > I noticed the following issue: > > https://issues.apache.org/jira/browse/SUREFIRE-2056 > > > > I searched for it because we are seeing this

Questions about surefire issue causing "buffer overflow" and apache JIRA problem

2022-05-31 Thread David Karr
I noticed the following issue: https://issues.apache.org/jira/browse/SUREFIRE-2056 I searched for it because we are seeing this in one of our builds. I could use some more information about this. This is apparently a bug in 3.0.0-M6, which is fixed in 3.0.0-M7, which is not released yet. I verif

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 "arc

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

2022-03-30 Thread David Karr
e.org/guides/mini/guide-creating-archetypes.html it > will probably do what you want. > Actually, I was mistaken. The service generation process does use a Maven archetype. > From: David Karr > Date: Wednesday, March 30, 2022 at 10:47 AM > To: Maven Users List > Subject: Ho

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

Strategies for automatically fixing local maven repo corruption?

2022-03-23 Thread David Karr
Our enterprise has builds for a couple of hundred services running many times a day, on a set of Jenkins build nodes, most of which are Maven builds.The builds use a settings.xml that doesn't override the "localRepository", so it will use a local repository on the build node that is used by all bui

What steps will install dependent artifacts in local maven repo

2022-03-22 Thread David Karr
Our org's builds have been using Java 8 for quite a while. We're starting to move some builds to Java 11. We're seeing some builds failing with the following: - Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile failed: An API incompatibilit

Re: Can't get Surefire to run any JUnit 5 tests

2022-03-19 Thread David Karr
t; > > > > > > [INFO] T E S T S > > > > > [INFO] --- > > > > > [INFO] Running pkg.BDSHelperTest > > > > > [INFO] Tests run: 1, Failures: 0, Errors: 0,

Can't get Surefire to run any JUnit 5 tests

2022-03-18 Thread David Karr
I, along with two other people on my team, have spent days and days now trying to figure out why we cannot get Surefire to execute JUnit 5 tests. We've all been working independently, so we don't all take the same path, but it didn't really matter, as all three of us are pretty much stuck at the sa

Re: zip file is empty

2022-02-27 Thread David Karr
On Sun, Feb 27, 2022 at 4:05 PM Nils Breunese wrote: > After reading the various responses to this thread with people recognizing > this issue on various operating systems, I’ve opened an issue in the Maven > issue tracker: https://issues.apache.org/jira/browse/MNG-7425 > > Nils. > > > Op 18 feb.

Suddenly getting "NoSuchMethodError" from Maven internals without any obvious change

2019-01-28 Thread David Karr
I've already asked this on StackOverflow ( https://stackoverflow.com/questions/54385789/suddenly-getting-nosuchmethoderror-org-codehaus-plexus-compiler-compilerconfig), but I'm getting nowhere, and all of our builds are blocked by this. This is what we're seeing on the CI server: -

Re: Generate SonarQube analysis files

2019-01-17 Thread David Karr
On Wed, Jan 16, 2019 at 11:31 PM Vega Castañeda, Javier < javier.vega-castan...@capgemini.com> wrote: > Hello, > > I have set up a CI project with Eclipse, Jenkis, Git, Maven, Sonar and > Nexus.The idea is that files are generated from the sonar analysis as part > of the build to be able to proces

Re: Need to fully understand bad implications of combined aggregator and parent pom

2016-12-05 Thread David Karr
Why would there be plugin duplications? Are you thinking there would be plugin definitions in the aggregator pom? The point of the aggregator pom is that it defines the GAV of the artifact and has the modules list and NOTHING else. On Mon, Dec 5, 2016 at 11:27 AM, Mirko Friedenhagen wrote: > He

Re: Why isn't maven-dependency-plugin copying my artifacts anymore?

2016-03-10 Thread David Karr
Ok. Could you remove the jars and then run it again? On Thu, Mar 10, 2016, 20:58 Uwe Barthel wrote: > Hi David, > > I use your pom.xml (but removed parent and org.opendaylight dependencies) > and it works well with: > > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; > 2015-11-10T1

Re: build error on strutsel

2015-07-24 Thread David Karr
One thing I should mention about your use of the "Struts-EL" library (which I wrote, like, 15 years ago). It was a stopgap solution to somewhat integrate Struts with JSP expressions, but only in JSP 1.2 containers. If you use it in a JSP 2.0 or newer container, you'll likely get confusing results.

Re: Best way to use closed-source jars with maven repository

2014-07-25 Thread David Karr
It's conceivable you don't have to mess with any sort of repackaging. The problem is that the MQ classes that your container loads have to be in a specific location, with a specific name. Simply deploy your unmodified application into a container with an altered classpath, where those "special" j

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread David Karr
I suggest you pursue this on the Sonar user list, then. On Sun, Dec 8, 2013 at 11:55 AM, Omar@Gmail wrote: > Thanks David, > > Yes Sonar on separate server. > > Also please see > http://www.mail-archive.com/users@maven.apache.org/msg132123.html > > > On 8 December 20

Re: Sonar with Maven: Fail to connect to database: Cannot loa d JDBC driver class 'oracle.jdbc.OracleDriver'

2013-12-08 Thread David Karr
I assume that your Sonar server is not the box you're running Maven on? What Sonar properties are you setting in your settings.xml? Feel free to omit the value for each if you need to. In the Sonar installation instructions there is a section titled "Adding the JDBC Driver" which talks about add

Re: maven profiles - load config.properties based on environment

2013-03-30 Thread David Karr
As Stephen states, and you've realized intuitively, this is not what Maven is for. A simple way to do what you're trying to do is simply to package all of the config files for each environment in your artifact, although perhaps without the production one (which typically has production credentials

Re: Create Windows executable JAR

2013-02-07 Thread David Karr
If you're just trying to build a windows executable, I've been able to use "launch4j" to make this happen. It works perfectly fine for what I've used it for. On Thu, Feb 7, 2013 at 9:34 AM, Jeff MAURY wrote: > Hello, > > I have the following request: > I want to build with Maven a Windows execu

Re: Referencing a parent POM without relativePath

2012-11-23 Thread David Karr
I had also discovered the difference between the missing vs. empty "relativePath" element. Although it was initially disconcerting that I had to specify an empty "relativePath" element to get what I assumed was the most reasonable behavior, I can also see the logic of the alternative with the defa

Re: Maven site can not find parent

2012-11-12 Thread David Karr
Concerning the empty "relativePath" element, this will typically be empty when you can't guarantee that the parent is in the parent directory. it's a common practice to separate the responsibilities of the aggregator pom from the parent pom. When that is the case, if you don't have the empty "rel

Re: Separate unit test / functional test directories?

2012-04-04 Thread David Karr
On Wed, Apr 4, 2012 at 2:06 PM, Russell Gold wrote: > I see that the maven lifecycle includes separate phases for unit tests and > functional tests, but I don't see how to take advantage of that. The > failsafe plugin, as far as I can tell, uses the exact same directories as > the surefire one. Is

Re: Mvn command line options

2012-03-24 Thread David Karr
On Sat, Mar 24, 2012 at 8:45 AM, sarmahdi wrote: > Hello, > > I did the mvn.bat --help and it gave me a list of options. > > I need to know that IF i want to write a batch or shell script for three > different projects. how can i do that. > > /echo Starting Maven build process > > cd c:\demo1\wo

Re: Error during compiling xsd's using maven xjc

2011-03-16 Thread David Karr
On Wed, Mar 16, 2011 at 5:40 AM, arvindv6 < arvind.venugo...@verizonbusiness.com> wrote: > Hi > > When i try to compile and generate java files using jaxb through xjc maven > plugin i am getting the error. > > Please suggest how to use the jaxb:extensionBindingPrefixes by disabling > the > strict

Strategies for converting from Ant

2010-09-23 Thread David Karr
I work on a pretty large project that uses Ant for builds. We're doing some research on converting to Maven. I'd like to describe some of the elements of our situation, hopefully to find some conceptual "cookbook" strategies for those aspects. The "application" consists of the aggregation of seve