Re: Less info please.

2024-05-03 Thread Bernd Eckenfels
I am afraid there is no good concept to get only relevant output (it’s not trivial) but you can use maven daemon I feel it compresses the output better for interactive consumption. In addition to that some plugins might be especially bad (for your use case) - I would communicate that to the

Re: Maven & Github codespaces

2024-03-31 Thread Bernd Eckenfels
Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00): > …I have old jars somewhere! I should clean my > ~/.m2/repository!  It should work regardless what you have on your local reponczche since it’s versioned. But other question how is that related to what’s in a fresh codespace? Something

Re: Independent verification of reproducible builds

2024-03-28 Thread Bernd Eckenfels
Hello, Railean, Alexander wrote on 28. Mar 2024 15:36 (GMT +01:00): > They need the details of my environment (e.g., OS, version of Java), but > this information is not among the artifacts published on Maven Central. I > was expecting the "buildinfo" file to be distributed too, but it is not >

Re: POM license guidance (and need for documentation/FAQ)

2024-03-27 Thread Bernd Eckenfels
Nils Breunese wrote on 27. Mar 2024 20:33 (GMT +01:00): > That sounds like a good idea when the code is actually licensed under the > “Companyname Commercial License” No, in my case it’s not a existing license (or actually there are of course licenses for the resulting product). But I use the

Re: POM license guidance (and need for documentation/FAQ)

2024-03-27 Thread Bernd Eckenfels
I use name=„Companyname Commercial License“, url=„https://www.companyname.com/terms“, distribution=„manual“ but also think it would be good to have standard distribution and classifier for properitary code. Nils Breunese wrote on 27. Mar 2024 20:02 (GMT +01:00): > I personally omit the

Re: Configuring plugins by composition rather than inheritance

2023-12-05 Thread Bernd Eckenfels
Hello, I think that’s a long-standing restriction of mavens Pom-model, not sure it can easily be solved. Spring boot (and other frameworks) did not make the situation easier with their parent requirement (but then again there is not much alternatives). >From my experience it seems a good idea

Re: what javac is actually used?

2023-12-03 Thread Bernd Eckenfels
Hallo, Dave Dyer wrote on 4. Dec 2023 08:27 (GMT +01:00): > It seems odd to me for maven to have its own javac, It does not, when you use the compiler plugin in the default config it uses the Java compiler from the JDK you started maven with. It just uses the Tool API instead of the cli, but

Re: .sha256 artifact checksums on Central

2023-11-22 Thread Bernd Eckenfels
Michael Osipov wrote on 22. Nov 2023 17:18 (GMT +01:00): > Look at this: > https://repo.maven.apache.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.4.2.jre11/ > > Whatever they did, they did wrong. Microsoft is responsive in their bug tracker, will let them know. But how can you upload a

Re: .sha256 artifact checksums on Central

2023-11-21 Thread Bernd Eckenfels
Bernd Eckenfels wrote on 21. Nov 2023 19:44 (GMT +01:00): > Strange enough central did accept those, but seems to not support it with > Remote Included Strategy (X- headers): Now that I thought about it, another possible explanation: I think -Daether.checksums.algo= rithms=SHA-256 is ef

.sha256 artifact checksums on Central

2023-11-21 Thread Bernd Eckenfels
Hello, I have noticed that Microsoft started to add .sha256 checksums to their POMs instead of .sha1. It looks like Maven Central accepts this, so is this a global policy change?

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: Are "M" versions of Surefire plugin pre-release?

2022-09-06 Thread Bernd Eckenfels
Those M version schemes are quite annoying, but the download site lists M7 as „current stable“ and since ASF projects are not supposed to provide pre-release archives anyway I would say go for it. Especially if you need 3.x.x API/Format/Features. However, the version Progression on this page

Re: Maven multiple requests transaction

2022-07-30 Thread Bernd Eckenfels
Hello, While some repository managers have additional logic (like staging repos where the user can review and integrate the result of single/multiple uploads) the protocol is not particular transactional. It’s a bunch of single file uploads and the Repo managers are more or less smart to do

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

2022-07-25 Thread Bernd Eckenfels
is still there. and maven:exec works for other projects. On Sun, Jul 24, 2022 at 1:19 PM Bernd Eckenfels wrote: > Since exec:java executes in the running JVM it does not reconfigure the > (boot)classpath but provides a configured classloader. It looks like the > measuring agent does

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

2022-07-24 Thread Bernd Eckenfels
Since exec:java executes in the running JVM it does not reconfigure the (boot)classpath but provides a configured classloader. It looks like the measuring agent does not like that. In that Case you need either exec:exec or a plug-in for that purpose. Gruss Bernd -- http://bernd.eckenfels.net

Re: How to tell maven to use https instead of http...

2022-06-19 Thread Bernd Eckenfels
Besides the already suggested maven version update, did you also check your ~/.m2/settings.xml? Gruss Bernd -- http://bernd.eckenfels.net Von: Stefano Fornari Gesendet: Sunday, June 19, 2022 7:11:27 PM An: Maven Users List Betreff: How to tell maven to use

Re: How to retrieve target folder or jar paths from multi-module Maven project

2022-06-09 Thread Bernd Eckenfels
The Maven Help Plugin has some functions, including printing evaluated project parameters. RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) https://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html -- http://bernd.eckenfels.net

Re: Kubernetes Build Environment

2022-06-06 Thread Bernd Eckenfels
Von: Philipp Kraus Gesendet: Monday, June 6, 2022 7:47:34 PM An: Maven Users List Betreff: Re: Kubernetes Build Environment > Am 06.06.2022 um 05:55 schrieb Bernd Eckenfels : > > do you need to test K8s or just have some external containers to set up, > maybe using Te

Re: Kubernetes Build Environment

2022-06-05 Thread Bernd Eckenfels
do you need to test K8s or just have some external containers to set up, maybe using Testcontainers with Docker APi is an alternative? (Advantage is you can simpler test it locally) Another alternative is to use a CI pipeline script/system instead of orchestrating it in maven - at least if

Re: Determine Maven Dependencies after a build

2022-04-14 Thread Bernd Eckenfels
Hello, I think you can’t publish ranges to central, but yes if a dependency has a range each built will resolve the Version new, and unless there is a mother dependency fixing the version you get the latest one in that range from your repo. As others said, just don’t use ranges. Gruss Bernd

Re: CVE-2022-22963 and CVE-2022-22965

2022-04-08 Thread Bernd Eckenfels
Hello Donnel, We need you to do your own research, the Apache Open Source Project Maven is not “your vendor” and also not related with Spring. How should “we” know what and how you are using it? Gruss Bernd -- http://bernd.eckenfels.net Von: DONNELL M GARRETT

Re: How can I tell what value of "maxmem" the maven-compiler-plugin is using by default?

2022-04-01 Thread Bernd Eckenfels
If you don’t provide the fork=true parameter then javac will be started inline and no heap settings are applicable. Beside that the debug (-X) output is correctly showing you the expanded values, if the property is not expanded it was not specified. Gruss Bernd -- http://bernd.eckenfels.net

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

Re: Can anyone confirm the behavior of updatePolicy never for repositories?

2022-03-25 Thread Bernd Eckenfels
-U works on release artifacts as well. Alternatively you can delete the version (either manually in the filesystem or with a maven dependency:purge-local-repository). I think the Never-policy was not meant to deal with errors, it is more about immutability of the actual releases. Gruss Bernd

Re: Strategies for automatically fixing local maven repo corruption?

2022-03-23 Thread Bernd Eckenfels
You should avoid concurrent builds on a local Repo. Either use a “per worker” Repo (all good CI servers should support that, but you can also do it by hand command line option) or use a Container build process. There is also a locking scheme for Maven now, but I would start with Seperate

Re: Want to understand the .dumpstream file contents

2022-03-11 Thread Bernd Eckenfels
Hello, Sounds like the default console logger for the JUL root gets the events and writes them to stdout. Did you try to use an anonymous logger or specify setUseParentHandler(false) on your trace logger? Doesn’t sound very surefire or maven specific, that would also happen in a stand alone

Re: swap space not being used

2022-03-04 Thread Bernd Eckenfels
Unless you use large pages java will automatically use all available virtual memory, maven does not change that. Typically maven will start java launcher with default memory size, so maybe your problem is not related to your limited ram but a general java config? What is the exact memory error

Re: Possible protocol error, handshake_error when using Maven

2022-02-21 Thread Bernd Eckenfels
gth I see incorrect entry. -Original Message- From: Bernd Eckenfels Sent: Monday, February 21, 2022 3:36 PM To: Maven Users List Subject: Re: Possible protocol error, handshake_error when using Maven External E-mail --- CAUTION: This email originated from outside GDMS. Do not click links or o

Re: Possible protocol error, handshake_error when using Maven

2022-02-21 Thread Bernd Eckenfels
hake_error when using Maven No output when running the following command: javac GetURLS.java Just getting GetUrls.class file. Thanks -Original Message----- From: Bernd Eckenfels Sent: Friday, February 4, 2022 12:54 PM To: Maven Users List Subject: Re: Possible protocol error, handshake_

Re: zip file is empty

2022-02-18 Thread Bernd Eckenfels
First thing would be to determine if those are failed downloads or creates (installed from local built). In both cases however failures should not result in that. For downloads you have checksum checks and for build artifacts they are copied from target/ (depending on the plugins used to

Re: Possible protocol error, handshake_error when using Maven

2022-02-04 Thread Bernd Eckenfels
No output when running the following command: javac GetURLS.java Just getting GetUrls.class file. Thanks -Original Message- From: Bernd Eckenfels Sent: Friday, February 4, 2022 12:54 PM To: Maven Users List Subject: Re: Possible protocol error, handshake_error when using Maven

Re: Possible protocol error, handshake_error when using Maven

2022-02-04 Thread Bernd Eckenfels
The javac command creates the .class file the java command executes it (modern java also can execute the .Java file). What is the output of the last java command in your case? (You also might ask internally a developer) -- http://bernd.eckenfels.net Von:

Re: request for documentation update about mirrors

2021-12-08 Thread Bernd Eckenfels
Well, it’s just a file to edit. -- http://bernd.eckenfels.net Von: mark.yagnatin...@barclays.com.INVALID Gesendet: Thursday, December 9, 2021 6:22:46 AM An: users@maven.apache.org Betreff: RE: request for documentation update about mirrors > But if you

Re: request for documentation update about mirrors

2021-12-08 Thread Bernd Eckenfels
Hello, I would define a single caching mirror repository (and maybe exclude all internal repositories which are already HTTPS). The mirror applies automatically to all repos, you don’t need to configure them individually. And you should really really start on enabling HTTPS. It is imho no

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

2021-10-04 Thread Bernd Eckenfels
ti process) solution on a single host. Redis and Hazelcast are more for "farms", where several hosts with many processes (and each with many threads) is bashing local repo (that MAY be on NFS as well). Thanks Tamas On Mon, Oct 4, 2021 at 9:37 PM Bernd Eckenfels wrote: > What’s the problem

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

2021-10-04 Thread Bernd Eckenfels
What’s the problem with adivisory locking, as long as Maven honors the advice it is the same as it’s a redis lock? (But much less footprint). In fact on the same machine it should even work without locking as Long as you use pidfiles? Gruss Bernd -- http://bernd.eckenfels.net

Re: Global pre-installation of Maven extensions w/out ~/.m2/lib/ext

2021-10-04 Thread Bernd Eckenfels
An easy fix is to run maven with one local Repo cache per executor thread. Jenkins has a option for that. Alternatively run the whole build in a container with Repo overlay. (I wish Jenkins had more support to prepopulate those) Gruss Bernd -- http://bernd.eckenfels.net

Re: Questions on best practice for POM Code Convention setup and how to know what tags can be setup where

2021-09-24 Thread Bernd Eckenfels
BTW I find distribution management should be in a parent (shared and hidden) or not in there at all. I prefer my POMs as landscape independent as possible. -- http://bernd.eckenfels.net Von: christopher.mil...@gd-ms.com Gesendet: Friday, September 24, 2021

Re: Questions on best practice for POM Code Convention setup and how to know what tags can be setup where

2021-09-24 Thread Bernd Eckenfels
Check the POM reference about what goes where, and then check the definition of the plugins (the so called mojos) what properties/config they Need. https://maven.apache.org/pom.html In your example you are missing the dependencies which is most likely the most powerful part of the whole

Re: Maven tries to download twice, first one without auth

2021-08-30 Thread Bernd Eckenfels
lt setting for predefined servers located in settings.xml because Maven does not try to communicate with random servers on the internet by itself (in which case disabling preemptive auth may be worth it). Should I create an issue ? Le ven. 20 août 2021 à 23:12, Bernd Eckenfels a écrit

Re: Maven tries to download twice, first one without auth

2021-08-20 Thread Bernd Eckenfels
Hello, This is, for some reason intentional, the client is supposed to only sent auth when challenged. Since this is not done in a smart way it can slow transfers down. There used to be ways to configure it pre-emptively, but not sure if the doc is still valid:

Re: Question on installing Maven from Red Hat (RHEL8), missing .m2 directory for users

2021-08-19 Thread Bernd Eckenfels
If you want to deploy a pre-configured ~/.m2/settings.xml you can do that perfectly fine with ansible, just configure it to generate missing parent directories. It is normal that dot files/dirs in user directory are created only on first use. This is not specific to RedHat, and there is also

Re: Sharing Test Dependencies

2021-07-04 Thread Bernd Eckenfels
We have one case in commons, there rhe -test JAR of VFS can be used by Providers to test their implementation. I did that for my custom provider, but it is a bit ugly. I think that’s mostly due to relying on some src files and also the JUnit setup when I remember correctly. But it did work,

Re: Getting version upgrade advise to upgrade a BOM..

2021-05-03 Thread Bernd Eckenfels
If your bom version is in a property you must run display-properties-update instead https://www.mojohaus.org/versions-maven-plugin/display-property-updates-mojo.html -- http://bernd.eckenfels.net Von: Niels Basjes Gesendet: Monday, May 3, 2021 1:26:58 PM An:

Re: maven-gpg-plugin SHA512

2021-03-14 Thread Bernd Eckenfels
Other question, why not change the defaults to include at least one less challenged checksum? -- http://bernd.eckenfels.net Von: Michael Osipov Gesendet: Sunday, March 14, 2021 9:46:55 PM An: users@maven.apache.org Betreff: Re: maven-gpg-plugin SHA512 Am

Re: Has maven central index stopped updating?

2021-02-12 Thread Bernd Eckenfels
Yes, maven central index has quite regularly problems with beeing stuck or laggy ,-/ Luckily normal maven resolving uses the meta data or direct path instead, which is reachable and shows the 2/12 versions https://repo.maven.apache.org/maven2/org/springframework/security/spring-security-bom/

Re: Maven 3.6.3 configuration enquiry

2021-01-07 Thread Bernd Eckenfels
: Thursday, January 7, 2021 10:38:45 PM An: Maven Users List Betreff: Re: Maven 3.6.3 configuration enquiry Am Donnerstag, 7. Januar 2021, 20:23:27 CET schrieb Bernd Eckenfels: > You did not say what build servers you use, but normally you can have many > different maven versions ins

Re: Maven 3.6.3 configuration enquiry

2021-01-07 Thread Bernd Eckenfels
You did not say what build servers you use, but normally you can have many different maven versions installed in different directories. Usually CI servers are fine to pick one (some like Jenkins can even install them dynamically). If you do it, you need to watch out for not using/inheriting

Re: maven enforcer plugin questions

2020-12-05 Thread Bernd Eckenfels
Hello, Yes. this list can be used to reach users of maven, including maven plugins like the enforcer plugin (a official plugin has the name maven-something-plugin and is hosted on the Maven web site like https://maven.apache.org/enforcer/maven-enforcer-plugin/). But even if it where a third

Re: Reporting in maven. help please

2020-11-29 Thread Bernd Eckenfels
Hello, There are a number of static code analyses which also happen to have a maven plugin (with sire reporting integration), for example pmd, findbugs/spotbugs, checker framework, checkstyle, (static-Code-analysis) Javancss, taglist, l10n status, jdepend and dependency-Check, and a few

Re: Maven plugin to replace text in file

2020-11-08 Thread Bernd Eckenfels
You can use the antrun plugin to run a ant search and replace, or you an call a jruby or groovy script. Or is the exec plugin to run a java class. The resources plugin can replace placeholders, but that does not sound like the right tool for your case. Gruss Bernd -- http://bernd.eckenfels.net

Re: HTTP/2 support in Maven

2020-11-05 Thread Bernd Eckenfels
Hello, I don’t really see where http/2 should have a speed performance compared to http/1.1 as long as both use keepalive. For larger artifacts even the header reduction should be negectible. Having said that, it is of course a good idea to go with the new protocols, but I would not expect

Re: exec:java doesn't find classes from jar files

2020-10-31 Thread Bernd Eckenfels
Hello, I don't think it is a good idea to repackage or relocate common external libraries. It looks like you moved everything to groupid=lib, this is a not very common Maven usage. I am not saying you can't get it to work, but it needs some advanced skills and it is unlikely we can easily help

Re: mvn exec:java don't use jars from project repo

2020-10-30 Thread Bernd Eckenfels
Looks like your Solr.Pom does not define a dependency on httpclient. You can either change that or add it as a runtime dependency to your local Pom. Gruss Bernd -- http://bernd.eckenfels.net Von: Raivo Rebane Gesendet: Friday, October 30, 2020 5:39:38 PM An:

Re: No transfer protocol found

2020-10-30 Thread Bernd Eckenfels
Did you specify „repo“ as the url? I think it needs a valid URL here. -- http://bernd.eckenfels.net Von: Raivo Rebane Gesendet: Friday, October 30, 2020 2:27:05 PM An: users@maven.apache.org Betreff: No transfer protocol found Hello I have trouble I tried

Re: How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread Bernd Eckenfels
You can configure multiple jar creation runs (for example with the assembly or maven-jar-plugin) with include and exclude rules, which creates a second jar with a classifier. But derivations from a default build (one jar per module) should be done only if absolutely necessary. In the Long run

Re: Using Apache Maven, what is the simplest way to include /lib/ directory in the classpath in the pom.xml

2020-10-16 Thread Bernd Eckenfels
Hello, It is really not a good idea to fight maven. If you need something in the classpath for compile, specify it as dependency in the Pom. Otherwise your build cannot be repeated and the project is hard to set up. All tomcat libraries needed to compile should be in the maven repository. If

Re: Why does POM have precedence over -D property expressions?

2020-09-16 Thread Bernd Eckenfels
Hello, While I do agree that it is not very intuitive, I don’t think there is any chance to change this in a compatible way. Also it’s pretty easy to understand: just remember this simplification: you can only define properties, and if the configuration should be affected by them you need to

Re: Strange maven sonar download warning?

2020-08-30 Thread Bernd Eckenfels
Wonder where the questionmark is coming from... is there somewhere in the Pom? -- http://bernd.eckenfels.net Von: Enrico Olivelli Gesendet: Sunday, August 30, 2020 8:24:49 AM An: Maven Users List Betreff: Re: Strange maven sonar download warning? Il Dom 30 Ago

Re: maven failsafe plugin & POJO tests

2020-07-02 Thread Bernd Eckenfels
Hello, The failsafe IntegrationTestMojo essentially is the surefire plugin (but with a different error lifecycle handled by the verifyMojo) and a different default include filter.

Re: 'mvn clean test' crashes

2020-07-01 Thread Bernd Eckenfels
Has the machine enough ram free? Did you try a reboot (sometimes windows memory map seems to be fragmented in a way that java can't start). Does your Pom overwrite command line and/or specify a very big or very small heap? Any crash dumps or hs_err files? Gruss Bernd --

Re: 'mvn clean test' crashes

2020-06-30 Thread Bernd Eckenfels
Anything in the mentioned dump files? Could be a environment variable problem or corrupted Java Home (less likely a problem in the test code). You can also try to specify -DskipTests to see if the rest of the Maven build works. Gruss Bernd -- http://bernd.eckenfels.net

Re: PKIX path building error with Azul ZULU Open JDK 14

2020-06-16 Thread Bernd Eckenfels
Hello, Are you talking about Maven Central, are private Repo or maybe some Proxy certificate? Normally the default cacerts trust Store contains a root certificate which is used by Maven central (and other public sites). For a Repo with company certificate you normally add the company root ca

Re: not storing/getting artifacts in/from local repository

2020-05-08 Thread Bernd Eckenfels
If you turn on debut logging for the build you can grep for the artifact name. In your specific case however I guess it's found in the relative parent of your project. An other option might be any profile which is auto activated. Btw you can use the build helper plugin and ask it to produce the

Re: build maven project without setting compiler source and target

2020-02-16 Thread Bernd Eckenfels
Can you show the actual error message and give a concrete project? Normally Maven works with not specifying target/source as long as your JDK is recent enough. (But it's not ways a good idea, it's better to specify the properties (IDEs normally read them) -- http://bernd.eckenfels.net

Re: Central Index Location

2020-01-30 Thread Bernd Eckenfels
Index generation problems seems to be common on Maven central. You might want to ping the sonatype ops team directly. I did so via twitter and blog, not sure if there is still a way to raise a ticket, but hopefully that should help. Gruss Bernd -- http://bernd.eckenfels.net

Re: warning 3.3.9

2020-01-07 Thread Bernd Eckenfels
> Booch Grady told me industrial strength > software is beyond the > Intellect of maven developers . Is that intended as an insult or just a joke I dont understand? Greetings Bernd

Re: repo.maven.apache.org returning 403 forbidden when running maven

2019-12-31 Thread Bernd Eckenfels
Hello, If you suspect there is something it would require a ticket for Apache Infra I guess. But unless your Organisation got banned it’s more likely it’s a client side filter (proxy, firewall or appliance). Did you look at the html source and possibly the http headers of that error response

Re: Overriding plugin configuration via commandline

2019-11-29 Thread Bernd Eckenfels
yes user properties for plugins only work for default values. If you want to allow overwrite, you need to define the default as a property and overwrite it with system property or in a profile and the use the property in the plugin config. Be aware that it is a good thing if a Pom without

Re: Using the .m2 directory for deployment

2019-11-20 Thread Bernd Eckenfels
Hello, Actually Karaf (OSGi) can watch and deploy bundles directly from the/a local repository. This means it will pick up artifacts as soon as they are locally installed. This works fine for quick turn-arounds in dev environments. I am not so sure if it is a good idea for production

Re: -D args not propagating from release plugin invocation

2019-11-20 Thread Bernd Eckenfels
Normally you need to use the -Darguments="-Dexec.skip=true" for the release plugin to pass on options to the child invocations. mvn -DdryRun -Dexec.skip=true -Darguments="..." release:prepare Gruss Bernd -- http://bernd.eckenfels.net Von: Dani Gesendet:

Re: Maven local repo in a common global directory for multiple parallel execution

2019-05-27 Thread Bernd Eckenfels
Hello, It is the other way around, there might be situations where one job relies on the installed artifacts from the other, in this case you would need a shared Repo. It is however bad style. In all other cases you can use a executor- or even workspace-local local repository if you have

Re: Error occurred during mvn deploy

2019-04-09 Thread Bernd Eckenfels
You can try to open them with jar or an archived or compare them with the central Repo (checksum). If they are incomplete/different or corrupt (maybe contain a html error page) just delete them and run `man package` again. Du you have unfiltered Internet Access? Gruss Bernd --

Re: Enforce rules defined outside the pom.xml or its parent

2019-03-27 Thread Bernd Eckenfels
It’s not what you where asking, but many rules can and should be put into a common parent - helps with local builds as well. Maven enforcer can use rules on the command line it seems: https://issues.apache.org/jira/plugins/servlet/mobile#issue/MENFORCER-142 Besides that some static analysis

Re: Failsafe: Killing self fork JVM. PING timeout elapsed.

2019-03-20 Thread Bernd Eckenfels
I guess a timeout caused by FullGC can happen with TCP as well. Increasing the timeout might not be nice but does look like it would help in both cases. (Problems with stdout are more related to unexpected JVM messages I guess) Gruss Bernd -- http://bernd.eckenfels.net

Re: Confusion with Dependency Paths

2019-02-04 Thread Bernd Eckenfels
Hello, to add to this, after moving the source to src/main/java/* and Fixing the POM (removing the source path and potentialla the resource plugin) you can use eclipse alt+f5 t refresh from the pom, this will configure the ecplise Project layout (.classpath) to detect the same source Folders

Re: Crashes while running "Maven In Five Minutes"

2018-12-08 Thread Bernd Eckenfels
I did: https://github.com/apache/maven-site/pull/57 BTW: should Maybe the minimal Java Version in the generated pom be an parameter or depend on the currently used runtime? Gruss Bernd -- http://bernd.eckenfels.net Von: Hervé BOUTEMY Gesendet: Samstag, 8. Dezember 2018 01:51 An: Maven Users

Re: How to rewrite POMs retaining the XML structure

2018-11-29 Thread Bernd Eckenfels
The Release Plugin does rewrite branch/version and does an exceptionally bad job since you have to manually configure the indention. Would be good to have a common utility for that. Gruss Bernd -- http://bernd.eckenfels.net Von: Marc Rohlfs Gesendet: Freitag,

Re: Security Questions - Maven

2018-11-26 Thread Bernd Eckenfels
Hello, > 1) Is the software compliant with U.S. Federal Information Processing Standard (FIPS) 140-2? Maven is a modular open source, there is no single „Maven“ Body of work. When you use it, It dynamically uses plugins from various Sources, so it is hard to answer General Questions About ist

Re: Ensuring artifact integrity with artifact pinning

2018-11-20 Thread Bernd Eckenfels
It’s an idea I also started a while back, but the problem is, it is not really a good security as long as you do the checksum Test before executing any plugins, which is a bit hard to do. You find some older sample code here https://github.com/ecki/lockdep-maven-plugin Gruss Bernd --

Re: help on installation issue

2018-10-23 Thread Bernd Eckenfels
Can you please show the whole input and output, what start directory did you use (don’t run it in c:\) and also provide the output of the set command. Gruss Bernd -- http://bernd.eckenfels.net Von: Marco Stocchi Gesendet: Dienstag, Oktober 23, 2018 11:20 PM An:

Re: Java 11 and java.xml.bin, etc.

2018-09-13 Thread Bernd Eckenfels
And in addition to Jörgs Questions, do we also have a canonical representation which replacements are actually preferred in ASL land? Gruss Bernd -- http://bernd.eckenfels.net Von: Jörg Schaible Gesendet: Freitag, September 14, 2018 1:16 AM An:

Re: Apache Struts 2.3.35 Upgrade - backward incompatibility in s:if

2018-08-29 Thread Bernd Eckenfels
Hello Miguel, you Need to ask the Apache Struts Project (https://struts.apache.org/mail.html) instead. Gruss Bernd -- http://bernd.eckenfels.net Von: Miguel Almeida Gesendet: Mittwoch, 29. August 2018 18:58 An: Maven Users List Betreff: Apache Struts 2.3.35 Upgrade - backward incompatibility

Re: maven - using multiple src directories

2018-08-01 Thread Bernd Eckenfels
Hello, First of all the normal rule of thumb for Maven is, don’t fight it. If it uses by default one folder for main and test code then this is a good best practice which you should not divert from. Especially not for „multiple packages“, it is quite normal to have them all under a single

Re: mvn deploy is installing localrepo instead of remote repo

2018-05-29 Thread Bernd Eckenfels
Hello, can you share the POM and effective POM and the verbose debug Logs of the Maven run. Generally you would check what the maven-deploy plugin gets for the deploy goal. Most likely problem is using a packaging which has no deploy phase goal. Also check for user properties to skip the

Re: Functionality allowed in a dependency of type=POM

2018-04-21 Thread Bernd Eckenfels
Both modules (of type POM) can contain build steps, however when you reference a POM it will not execute those steps (the steps are executed before - you would deploy the referenced project first). If you want to distribute or repackage the pulled in dependencies you would use the assembly or

AW: maven-archetype-plugin default version

2018-03-27 Thread Bernd Eckenfels
If there is no plugin Management or Defaults it uses the latest Version. -- http://bernd.eckenfels.net Von: Stefan Helfrich Gesendet: Mittwoch, 28. März 2018 00:29 An: users@maven.apache.org Betreff: Re: maven-archetype-plugin default version Thanks for pointing this out, Anders! My question

Re: Not able to read jars in repo intermittently

2018-03-26 Thread Bernd Eckenfels
UIt is correct that maven does not like it when your run install jobs concurrently with jobs reading the same artifacts. In order to avoid this you can have a workspace specific Repository („Local to workspace“ this might have some advantages for isolating different jobs but consumes a lot of

Re: Maven build failure - first install

2018-03-14 Thread Bernd Eckenfels
Hello, Looks like the tutorial is wrong, I only see a 1.1 version of that archetype. Since you normally cannot remove artifacts from Maven Central it looks like this never worked. You can see the content here:

AW: maven-install-plugin: Why it does not install the artifacts

2018-03-13 Thread Bernd Eckenfels
Hello, if you start with a empty POM of type JAR the Default LifeCycle bindings (which include intall plugin) apply. See here: http://maven.apache.org/ref/3.2.2/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -- http://bernd.eckenfels.net Von: Zos Rothko Gesendet:

Re: [m-jlink-p] missing --launcher and other CLI options in alpha1

2018-03-09 Thread Bernd Eckenfels
See `jlink --list-plugins` for the additional options. Gruss Bernd -- http://bernd.eckenfels.net From: Karl Heinz Marbaise <khmarba...@gmx.de> Sent: Friday, March 9, 2018 7:20:42 AM To: Maven Users List; Bernd Eckenfels Subject: Re: [m-jlink-p] missing --la

[m-jlink-p] missing --launcher and other CLI options in alpha1

2018-03-08 Thread Bernd Eckenfels
Hello, I noticed the m-jlink-p (3.0.0-alpha1) misses e.g. --launcher Option (and some more). I wonder is it planned to add a option. Or did I miss a method to specify CLI Options which should be passed to jlink.exe transparently? I guess that would be good especially for those Options which

Re: Error

2018-03-05 Thread Bernd Eckenfels
Hello, # org.codehaus.mojo:exec-maven-plugin:@maven-exec-plugin.version@ It looks like the plugin definition in the POM contains not a valid version number but a placeholder. Not sure if you are supposed to replace it manually with a version number or if the POM you are using is not to be used

Re: Why I can run plugin:goal in command line even though plugin wasonly defined under pluginManagement?

2018-02-26 Thread Bernd Eckenfels
t7's groupId: org.apache.tomcat.maven is not included. Why I can using tomcat7 as prefix for tomcat7-maven-plugin after I add it in of my pom.xml... On Sun, Feb 25, 2018 at 12:36 AM, Bernd Eckenfels <e...@zusammenkunft.net> wrote: > It is true: for plugins where the prefix is not foun

Re: Why I can run plugin:goal in command line even though plugin wasonly defined under pluginManagement?

2018-02-24 Thread Bernd Eckenfels
line: No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] > > Best regards. On Sat, Feb 24, 2018 at 4:39 PM, Bernd Eckenfels <e...@zusammenkunft.net> wrote: > Hello, > > You can always run goals on t

Re: Why I can run plugin:goal in command line even though plugin was only defined under pluginManagement?

2018-02-24 Thread Bernd Eckenfels
Hello, You can always run goals on the command line, even if they are not defined in the POM at all. If maven finds the plugin in the POM it knows what version to use and it allows to specify a Prefix instead of group:artifact[:version]:goal. Gruss Bernd Gruss Bernd --

Re: Looking for recommendations how to best use Maven in a muti-stagePipeline build to only deploy at the end

2018-02-14 Thread Bernd Eckenfels
I am not sure why Nexus does not Support staging repos, I thought this is one of its defining Features? Certainly the ASF is using Nexus this way. Anyway, another solution is to use a Feature of the CI to run a whole Pipeline on a single executor and have this executor have a local maven repo

Re: Special parameters - sha1

2017-11-15 Thread Bernd Eckenfels
ependencies?" At which stage are you referring to? Which dependencies with changed version numbers? Thanks, Eric On Wed, Nov 15, 2017 at 1:11 AM, Bernd Eckenfels <e...@zusammenkunft.net> wrote: > You have to remember that POMs are also the model to describe artifacts, > that why you s

Re: Special parameters - sha1

2017-11-14 Thread Bernd Eckenfels
You have to remember that POMs are also the model to describe artifacts, that why you should stay clear of profiles (especially if the influence artifact coordinates). Personally I have good experience with actually releasing things, but if you want to keep the build identifier, then I would

Re: Special parameters - sha1

2017-11-13 Thread Bernd Eckenfels
These three properties cannot contain any property values? They can only contain constants? Can they contain other command line values, or not even? Can you elaborate why it was deemed necessary to restrict the expansion to a fixed set? What was the reasoning behind that? Thanks, Eric On Mon, No

  1   2   >