Re: maven-source-plugin question

2024-12-03 Thread Andrei Ivanov
appens and what you think should happen? > > > Thanks > T > > On Tue, Dec 3, 2024 at 11:03 AM Grégory Jevardat De Fombelle > wrote: > > > > I have a simple question that I could not answer myself by looking at > documentations and trying to solve it different ways.

Re: maven-source-plugin question

2024-12-03 Thread Tamás Cservenák
have a simple question that I could not answer myself by looking at > documentations and trying to solve it different ways. > > My build lifecycle is : > I use the jaxb maven plugin to generate sources in a custom folder, directly > in my src/main/java/custompackage. > I post process

maven-source-plugin question

2024-12-03 Thread Grégory Jevardat De Fombelle
I have a simple question that I could not answer myself by looking at documentations and trying to solve it different ways. My build lifecycle is : I use the jaxb maven plugin to generate sources in a custom folder, directly in my src/main/java/custompackage. I post process the generated

Re: maven compiler plugin question

2024-11-12 Thread Stanimir Stamenkov
[Re-sending to the list.] On Tue, Nov 12, 2024, 10:37 Grégory Jevardat De Fombelle wrote: Ok I found the exact explanation: This specific library has a MANIFEST file containing a classpath as follow: Class-Path: .:lib Obviously it breaks the rule of class separator. Shouldn't the manifest

RE: [EXTERNAL] Re: RE: RE: RE: Re: maven compiler plugin question

2024-11-12 Thread Grégory Jevardat De Fombelle
To: Maven Users List Subject: [EXTERNAL] Re: RE: RE: RE: Re: maven compiler plugin question It's a dirty workaround but you could run ant task to replace the manifest in that jar, asuming you don't care about signatures. jar uvf foo.jar META-INF/MANIFEST.MF Where the new manifest is th

Re: [EXTERNAL] RE: RE: RE: Re: maven compiler plugin question

2024-11-12 Thread Mantas Gridinas
parator. > > So I'am not sure how to deal with this situation with maven and or javac. > > > -Original Message- > From: Alexander Kriegisch > Sent: Tuesday, November 12, 2024 9:31 AM > To: Maven Users List > Subject: [EXTERNAL] RE: RE: RE: Re: maven co

Re: [EXTERNAL] Re: maven compiler plugin question

2024-11-12 Thread Martin Desruisseaux
Le 2024-11-12 à 08 h 29, Grégory Jevardat De Fombelle a écrit : Actually I wanted to use arg files to solve the too long class path on Windows... I though fork would be enough but there is something else that I don't understand. Just for information, the proposed 4.0.0-beta-2 version of the c

RE: [EXTERNAL] RE: RE: RE: Re: maven compiler plugin question

2024-11-12 Thread Grégory Jevardat De Fombelle
From: Alexander Kriegisch Sent: Tuesday, November 12, 2024 9:31 AM To: Maven Users List Subject: [EXTERNAL] RE: RE: RE: Re: maven compiler plugin question On Windows, the path separator is not a colon but a semicolon. Am 12. November 2024 15:25:58 GMT+07:00 schrieb "Grégory Jevardat De Fombel

RE: [EXTERNAL] RE: RE: Re: maven compiler plugin question

2024-11-12 Thread Alexander Kriegisch
lved and there is no issue on the >compiler side >Cheers > >-Original Message- >From: Grégory Jevardat De Fombelle >Sent: Tuesday, November 12, 2024 8:38 AM >To: Maven Users List >Subject: [EXTERNAL] RE: RE: Re: maven compiler plugin question > >I spotted the

RE: [EXTERNAL] RE: RE: Re: maven compiler plugin question

2024-11-12 Thread Grégory Jevardat De Fombelle
compiler plugin question I spotted the generated option files in the target folder and the javac.bat script to launch java using this option file. So now I'am even more puzzled as these options files are supposed to solve the too long class path issue ! ... To follow -Original Messa

RE: [EXTERNAL] RE: Re: maven compiler plugin question

2024-11-11 Thread Grégory Jevardat De Fombelle
ardat De Fombelle Sent: Tuesday, November 12, 2024 8:29 AM To: Maven Users List Subject: [EXTERNAL] RE: Re: maven compiler plugin question Indeed, you are right. Actually I wanted to use arg files to solve the too long class path on Windows... I though fork would be enough but there is some

RE: [EXTERNAL] Re: maven compiler plugin question

2024-11-11 Thread Grégory Jevardat De Fombelle
To: users@maven.apache.org Subject: [EXTERNAL] Re: maven compiler plugin question Hello Le 2024-11-11 à 13 h 16, Grégory Jevardat De Fombelle a écrit : > I have difficulties finding documentation on the support of Java arguments > files on the maven compiler plugin. > I'd like to put my

Re: maven compiler plugin question

2024-11-11 Thread Martin Desruisseaux
Hello Le 2024-11-11 à 13 h 16, Grégory Jevardat De Fombelle a écrit : I have difficulties finding documentation on the support of Java arguments files on the maven compiler plugin. I'd like to put my long classpath in a file and use it as in javac documentation for : javac @classpath I

{SUSPECTED SPAM}maven compiler plugin question

2024-11-11 Thread Grégory Jevardat De Fombelle
Hello I have difficulties finding documentation on the support of Java arguments files on the maven compiler plugin. I'd like to put my long classpath in a file and use it as in javac documentation for : javac @classpath In maven I started to generate this file and try to add it in the co

Re: Question on shading and missing dependencies

2024-05-14 Thread Lars Francke
Hi Piotr, thanks for opening that issue. That's a great idea and would be useful to have going forward. And Martin, what you describe can be described using SBOMs as well, so it's a good fit. Cheers, Lars On Tue, May 14, 2024 at 1:15 AM Martin Desruisseaux wrote: > > Le 2024-05-13 à 22 h 52, P

Re: Question on shading and missing dependencies

2024-05-13 Thread Martin Desruisseaux
Le 2024-05-13 à 22 h 52, Piotr P. Karwasz a écrit : If the CycloneDX Maven plugin learns to use those SBOMs as metadata source instead of POM files, your problem should be solved. I'm not familiar with CycloneDX, but I think that if any SBOM is used with a shaded artifact, then the metadata s

Re: Question on shading and missing dependencies

2024-05-13 Thread Piotr P. Karwasz
Hi Lars, On Mon, 13 May 2024 at 17:46, Lars Francke wrote: > The problem is that SBOM tools have no realistic chance to gather that > information if all they have is a final artifact and the POMs that > were published as is the case here. An increasing number of Maven artifacts publish CycloneDX

Re: Question on shading and missing dependencies

2024-05-13 Thread Lars Francke
d by the shade plugins. > > After reading your second mail, "keepDependenciesWithProvidedScope" may be > the best easy option you have right now, in a not-ideal world. > > François > > Le lun. 13 mai 2024 à 17:07, Lars Francke a écrit : > > > To add to my question I just found that

Re: Question on shading and missing dependencies

2024-05-13 Thread Francois Marot
, "keepDependenciesWithProvidedScope" may be the best easy option you have right now, in a not-ideal world. François Le lun. 13 mai 2024 à 17:07, Lars Francke a écrit : > To add to my question I just found that the shade plugin has an option > called "keepDependenciesWithProvidedScope"[

Re: Question on shading and missing dependencies

2024-05-13 Thread Lars Francke
To add to my question I just found that the shade plugin has an option called "keepDependenciesWithProvidedScope"[1] which might have helped here. [1] <https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html#keepDependenciesWithProvidedScope> On Mon, May 13, 2024

Question on shading and missing dependencies

2024-05-13 Thread Lars Francke
Hi, we're hunting vulnerabilities in our dependency tree and I have a question that came up while doing so. We are using HBase (I'm a committer there as well) and HBase has (had) a dependency on the now retired HTrace: org.apache.htrace htrace-core4 HTrace

Re: a question about the Maven Resolver Ant Tasks uber JAR

2024-03-01 Thread Tamás Cservenák
Re-reading your "I tried to make a JAR that included the Maven Resolver Ant Tasks uber JAR plus some extra stuff"... The Maven Resolver Ant Tasks uber JAR contains _relocated_ classes (see POM). Hence, using this uber JAR to create another uber JAR is not recommended (or make sure there are no sh

Re: a question about the Maven Resolver Ant Tasks uber JAR

2024-03-01 Thread Alan Snyder
So how should this issue be resolved? Should the exclusion be removed? > On Feb 28, 2024, at 9:33 PM, Thorsten Heit wrote: > > Hi, > >> For reasons that I may no longer believe, I tried to make a JAR that >> included the Maven Resolver Ant Tasks uber JAR plus some extra stuff. >> I figured I

Re: a question about the Maven Resolver Ant Tasks uber JAR

2024-02-28 Thread Thorsten Heit
Hi, For reasons that I may no longer believe, I tried to make a JAR that included the Maven Resolver Ant Tasks uber JAR plus some extra stuff. I figured I could do that by resolving the Maven Resolver Ant Tasks and including all those artifacts in my JAR. But that did not work. The resulting J

Re: a question about the Maven Resolver Ant Tasks uber JAR

2024-02-28 Thread Tamás Cservenák
Howdy, This is probably an oversight, as Resolver does use SLF4J and yes, in Maven for example jcl-over-slf4j is used. Or a bug? As jcl-over-slf4j is here: https://github.com/apache/maven-resolver/blob/maven-resolver-1.9.18/maven-resolver-transport-http/pom.xml#L81-L86 Can you post some reproduce

a question about the Maven Resolver Ant Tasks uber JAR

2024-02-28 Thread Alan Snyder
For reasons that I may no longer believe, I tried to make a JAR that included the Maven Resolver Ant Tasks uber JAR plus some extra stuff. I figured I could do that by resolving the Maven Resolver Ant Tasks and including all those artifacts in my JAR. But that did not work. The resulting JAR fail

Re: Question about HTTP blocking WARN

2024-01-20 Thread Alexander Kriegisch
ult-http-blocker (http://0.0.0.0/): Blocked mirror for >> repositories: [glassfish-repository ( >> http://download.java.net/maven/glassfish, default, releases+snapshots)] >> >> but build continues and finishes successfully. >> >> Seems to be in nifi-nar plugin. >&

Re: Question about HTTP blocking WARN

2024-01-09 Thread Asaf Mesika
ven/glassfish, default, releases+snapshots)] > > but build continues and finishes successfully. > > Seems to be in nifi-nar plugin. > > Gruß, > Stefan > > -Original Message- > From: Asaf Mesika > Sent: Sunday, January 7, 2024 12:22 PM > To: Maven Users List &

RE: Question about HTTP blocking WARN

2024-01-09 Thread Stefan CORDES
+snapshots)] but build continues and finishes successfully. Seems to be in nifi-nar plugin. Gruß, Stefan -Original Message- From: Asaf Mesika Sent: Sunday, January 7, 2024 12:22 PM To: Maven Users List Subject: Re: Question about HTTP blocking WARN Hi Stefan, Not sure I follow. Are you

Re: Question about HTTP blocking WARN

2024-01-07 Thread Asaf Mesika
> > And so I guess the > > nifi-nar-maven-plugin > > has some "build-in" repositories which refer to http:// > > > Gruß, > Stefan > > Gruß, > Stefan > > -----Original Message- > From: Asaf Mesika > Sent: Thursday, January 4, 2024 5:06 PM

RE: Question about HTTP blocking WARN

2024-01-04 Thread Stefan CORDES
has some "build-in" repositories which refer to http:// Gruß, Stefan Gruß, Stefan -Original Message- From: Asaf Mesika Sent: Thursday, January 4, 2024 5:06 PM To: Maven Users List Subject: Re: Question about HTTP blocking WARN I appreciate the help, Stefan. I tried de

Re: Question about HTTP blocking WARN

2024-01-04 Thread Asaf Mesika
xus-snapshots via "http://"; in > one of your settings.xml or pom.xml) > > > Gruß, > Stefan > > -Original Message- > From: Asaf Mesika > Sent: Tuesday, January 2, 2024 1:25 PM > To: Maven Users List > Subject: Re: Question about HTTP blocking WARN > &g

RE: Question about HTTP blocking WARN

2024-01-04 Thread Stefan CORDES
From: Asaf Mesika Sent: Tuesday, January 2, 2024 1:25 PM To: Maven Users List Subject: Re: Question about HTTP blocking WARN Here is the content of the file you wrote: ➜ pulsar git:(pip-323-implementation) ✗ cat ~/.m2/repository/org/mongodb/bson/4.4.2-SNAPSHOT/_remote.repositories #NOTE: This

Re: Question about HTTP blocking WARN

2024-01-02 Thread Asaf Mesika
uild > tries to download ? > > Gruß, > Stefan > > -Original Message- > From: Asaf Mesika > Sent: Wednesday, December 13, 2023 7:41 PM > To: Maven Users List > Subject: Re: Question about HTTP blocking WARN > > How do I unblock ? I searched in .mvn directo

RE: Question about HTTP blocking WARN

2023-12-13 Thread Stefan CORDES
: Question about HTTP blocking WARN How do I unblock ? I searched in .mvn directory and found nothing. I don’t have a settings file On Wed, 13 Dec 2023 at 17:50 wrote: > Sorry, I failed to read your email carefully enough. > Idea: try un-blocking HTTP, and see where it ends up downloading > th

RE: Question about HTTP blocking WARN

2023-12-13 Thread mark.yagnatinsky
Look at the second answer to this stack overflow question (the one with 151 votes, not the one with 209) https://stackoverflow.com/questions/67001968/how-to-disable-maven-blocking-external-http-repositories Direct link to answer: https://stackoverflow.com/a/68394404/3273929 (but read the question

Re: Question about HTTP blocking WARN

2023-12-13 Thread Asaf Mesika
riginal Message- > From: mark.yagnatin...@barclays.com.INVALID > > Sent: Wednesday, December 13, 2023 10:47 AM > To: users@maven.apache.org > Subject: RE: Question about HTTP blocking WARN > > > CAUTION: This email originated from outside our organisation - > mark.yag

RE: Question about HTTP blocking WARN

2023-12-13 Thread mark.yagnatinsky
Sorry, I failed to read your email carefully enough. Idea: try un-blocking HTTP, and see where it ends up downloading things from. -Original Message- From: mark.yagnatin...@barclays.com.INVALID Sent: Wednesday, December 13, 2023 10:47 AM To: users@maven.apache.org Subject: RE: Question

RE: Question about HTTP blocking WARN

2023-12-13 Thread mark.yagnatinsky
See release notes for 3.8.1: https://maven.apache.org/docs/3.8.1/release-notes.html -Original Message- From: Asaf Mesika Sent: Wednesday, December 13, 2023 6:07 AM To: users@maven.apache.org Subject: Question about HTTP blocking WARN CAUTION: This email originated from outside our

Question about HTTP blocking WARN

2023-12-13 Thread Asaf Mesika
Hi, I'm running Apache Maven 3.8.5 (using Maven Wrapper) for building Apache Pulsar. I get the following WARN: [WARNING] Could not transfer metadata org.mongodb:bson:4.4.1-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/mon

Re: question on maven dependency scope

2023-10-02 Thread Greg Chabala
> there will be a common core but i will provide premium > features as addons. ... what is the best way to achieve my goal? I would suggest using compile or runtime as the scope, depending on how you implement the addons, but mark them as optional dependencies.

RE: question on maven dependency scope

2023-10-02 Thread mark.yagnatinsky
That sounds like it might actually work -Original Message- From: Siddharth Jain Sent: Sunday, October 1, 2023 8:47 PM To: Maven Users List Subject: question on maven dependency scope CAUTION: This email originated from outside our organisation - siddh...@gmail.com Do not click on

question on maven dependency scope

2023-10-01 Thread Siddharth Jain
hello. https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope - *provided* This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for

AW: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-09-11 Thread Bernhard Schuhmann
Wondering why no one mentioned https://github.com/highsource/jaxb-tools yet? Some good people have resurrected the project after the original maintainer passed away. Given the still existing need for the plug-ins, I’m thankful someone filled the void and not just created yet another fork of the

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-25 Thread Falko Modler
I'd recommend https://github.com/patrodyne/hisrc-basicjaxb#hisrc-basicjaxb Cheers! Am 24.08.2023 um 20:21 schrieb David Hoffer: That one works great as a general purpose XJC tool and supports JAXB4 but unfortunately to use any of the plugin options -XtoString -Xequals -XhashCode -Xcopyable Re

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-25 Thread Delany
Try this https://github.com/aspan/jaxb2-basics Delany On Thu, 24 Aug 2023 at 20:21, David Hoffer wrote: > That one works great as a general purpose XJC tool and supports JAXB4 but > unfortunately to use any of the plugin options > > -XtoString > -Xequals > -XhashCode > -Xcopyable > > Requires th

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-24 Thread David Hoffer
That one works great as a general purpose XJC tool and supports JAXB4 but unfortunately to use any of the plugin options -XtoString -Xequals -XhashCode -Xcopyable Requires the use of jaxb2-basics according to the docs which is ancient and stuck in JDK8 and prior. So, not an option for a JDK17 Ja

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread Delany
This one has JAXB4 support https://github.com/phax/maven-jaxb2-plugin Delany On Tue, 22 Aug 2023 at 22:04, David Hoffer wrote: > I think that is based on: > > org.jvnet.jaxb2.maven2 > maven-jaxb2-plugin > > Which, I can't get to work with JDK17 and to be compatible with the rest of > my app ha

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread David Hoffer
I think that is based on: org.jvnet.jaxb2.maven2 maven-jaxb2-plugin Which, I can't get to work with JDK17 and to be compatible with the rest of my app has to be at Java EE 10. I'm currently trying to use: org.codehaus.mojo jaxb2-maven-plugin 3.1.0 As it's current; seems to support JDK17 Java 1

Re: JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread Delany
Try here https://stackoverflow.com/a/32336886/2746335 Delany On Tue, 22 Aug 2023 at 21:16, David Hoffer wrote: > I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17 project. > I'm using version 3.1.0. I can get it to generate the Java code but can't > find any way to add support for

JAXB2 Maven Plugin XJC Goal JDK17 Question

2023-08-22 Thread David Hoffer
I'm wanting to use the JAXB2 Maven Plugin's XJC goal in a JDK17 project. I'm using version 3.1.0. I can get it to generate the Java code but can't find any way to add support for optional things like: toString equals hashCode defaultValue Can someone point me in the right direction on how to add

Question on multi-module reactor sorting

2023-04-17 Thread Zhoucheng Li
Hi all, I encountered a build issue recently that no one in the team has seen, which I believe it's caused by multi-thread racing but I can't prove it tbh. Maven version tested: 3.6.3 & 3.9.1 Java: open-jdk 11 Our project contains multiple modules and is declared in parent pom. And let's say if

Re: question java 1.7 support

2022-03-26 Thread John Patrick
Most people and use cases have the Java Home is the same version you put in source/target/release. The part I was trying to highlight was, if you set release and have Java Home and Path to Java 1.7 (as the title of the email indicates), then it won't work, so you need to use source and target. If

Re: question java 1.7 support

2022-03-26 Thread Alexander Kriegisch
John Patrick schrieb am 26.03.2022 16:12 (GMT +07:00): > I thought maven.compiler.release only supports Java 9 and newer (The > -release argument for the Java compiler, supported since Java9). Small correction: The javac compiler option '--release N' exists since JDK 9, but you can also compile t

Re: question java 1.7 support

2022-03-26 Thread John Patrick
is for Java 7. For Java 17 it should be just 17. > > > The email subject says “ question java 1.7 support” > But yeah should be simply 17 > Use release flag rather than sources and target > > > > > > > Nils. > > > > > On Sat, 26 Mar 2022 at 13:

Re: question java 1.7 support

2022-03-25 Thread Olivier Lamy
On Sat, 26 Mar 2022 at 2:06 pm, Nils Breunese wrote: > Olivier Lamy wrote: > > > should be 1.7 not 1.17 ;) > > No, 1.7 is for Java 7. For Java 17 it should be just 17. The email subject says “ question java 1.7 support” But yeah should be simply 17 Use release flag rathe

Re: question java 1.7 support

2022-03-25 Thread Nils Breunese
Olivier Lamy wrote: > should be 1.7 not 1.17 ;) No, 1.7 is for Java 7. For Java 17 it should be just 17. Nils. > On Sat, 26 Mar 2022 at 13:48, Alexander Ushakov < > alexander.ushakov.em...@gmail.com> wrote: > >> Hello! >> >> I am trying to play with Apache Kafka and craft next pom.xml >> >>

Re: question java 1.7 support

2022-03-25 Thread Olivier Lamy
should be 1.7 not 1.17 ;) On Sat, 26 Mar 2022 at 13:48, Alexander Ushakov < alexander.ushakov.em...@gmail.com> wrote: > Hello! > > I am trying to play with Apache Kafka and craft next pom.xml > > ```xml > > xmlns="http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-

Re: question java 1.7 support

2022-03-25 Thread Nils Breunese
Alexander Ushakov wrote: > >org.apache.maven.plugins >maven-compiler-plugin >3.1 > > 1.17 > 1.17 > > > > (…) > > results with error > > ``` > [ERROR] Failed to execute goal > org.apache.ma

question java 1.7 support

2022-03-25 Thread Alexander Ushakov
Hello! I am trying to play with Apache Kafka and craft next pom.xml ```xml http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";> 4.0.0 streams.examples

Re: Question for Maven Plugin developers/maintainers

2022-02-01 Thread Hervé BOUTEMY
= the maven-script part of https://maven.apache.org/plugin-tools/index.html Le mardi 1 février 2022, 09:16:36 CET Tamás Cservenák a écrit : > Howdy, > > Yes, the reason for this question was to deprecate the "scripting" bit of > maven-plugin-tools, as many of us did not

Re: Question for Maven Plugin developers/maintainers

2022-02-01 Thread Tamás Cservenák
Howdy, Yes, the reason for this question was to deprecate the "scripting" bit of maven-plugin-tools, as many of us did not see such a beast in a while T On Tue, Feb 1, 2022 at 2:10 AM Manfred Moser wrote: > Fair enough and good examples for using beanshell in the pom.

Re: Question for Maven Plugin developers/maintainers

2022-01-31 Thread Manfred Moser
Fair enough and good examples for using beanshell in the pom. My point was mostly that there are alternatives. Also from all I understand Tamás asked about implementing part of a plugin in beanshell. That is what you are avoiding by doing it in the POM. And if you were to implement a plugin I w

Re: Question for Maven Plugin developers/maintainers

2022-01-31 Thread Alexander Kriegisch
I am replying to Manfred rather than to Tamás, because I am only contributing to one plugin, and it is not using any Beanshell stuff. But I do use Beanshell scripting in a few projects where it is difficult too avoid, because I have not found any proper plugins to do what I need. Examples include:

Re: Question for Maven Plugin developers/maintainers

2022-01-31 Thread Manfred Moser
I think beanshell is long dead. Any plugin that uses it would be for a very old Maven version and would need a lot of work when upgrading. So we should be okay to deprecate And in terms of ANT .. if there are any out there.. similar things will apply and https://maven.apache.org/plugins/maven-a

Re: Question for Maven Plugin developers/maintainers

2022-01-30 Thread Maarten Mulders
On 28/01/2022 14:52, Tamás Cservenák wrote: Howdy, We'd like to get some feedback from anyone who implemented, maintained or plans to implement a Maven Plugin (Mojo): Did any of you see a Maven Plugin that is NOT implemented in Java (but uses Ant or Beanshell scripting)? If I recall correctl

Re: Question for Maven Plugin developers/maintainers

2022-01-28 Thread Karl Heinz Marbaise
On 28.01.22 14:52, Tamás Cservenák wrote: Howdy, We'd like to get some feedback from anyone who implemented, maintained or plans to implement a Maven Plugin (Mojo): Did any of you see a Maven Plugin that is NOT implemented in Java (but uses Ant or Beanshell scripting)? No... Currently imp

Question for Maven Plugin developers/maintainers

2022-01-28 Thread Tamás Cservenák
Howdy, We'd like to get some feedback from anyone who implemented, maintained or plans to implement a Maven Plugin (Mojo): Did any of you see a Maven Plugin that is NOT implemented in Java (but uses Ant or Beanshell scripting)? Currently implementing Maven Plugins with these scripting solutions

Re: Question on dependencies not listed by the maven dependency:tree command

2022-01-05 Thread Alexander Kriegisch
It includes Log4J with scope 'provided'. You can see it in the POM, and it is also listed in a separate category on the mvnrepository.com info page. -- Alexander Kriegisch https://scrum-master.de Bhagyasri K schrieb am 05.01.2022 17:57 (GMT +07:00): > Hello, > > I am using *pax-logging-log4j2*

Question on dependencies not listed by the maven dependency:tree command

2022-01-05 Thread Bhagyasri K
Hello, I am using *pax-logging-log4j2* as a direct dependency in my pom.xml. The artifact page has log4j2 as one of the dependencies as per mavenrepository . But when I run the mvn dependency:tree command, I am no

Re: Dumb question: How to deploy a command line app?

2021-09-22 Thread Anders Hammar
One can also use the assembly plugin [1] to create a distributable file that contains all this. That's what I would do. The standard build process will only build the artifact and put it in the maven repo, which is what you're seeing currently. [1] https://maven.apache.org/plugins/maven-assembly-p

Re: Dumb question: How to deploy a command line app?

2021-09-22 Thread Mantas Gridinas
Use dependencies plugin and copy-dependencies goal. This will copy over all of your dependencies into target/dependency folder. .m2 catalog already contains your dependencies but in reapective subfolders. Ex. foo.bar:parser would be under .m2/repository/foo/bar/parser On Thu, Sep 23, 2021, 09:00 B

Dumb question: How to deploy a command line app?

2021-09-22 Thread Bruno Melloni
Given that the whole point of using Maven is to "not have to worry about dependencies" I am having the most ironic (and probably trivial) problem: - Using Maven in Eclipse. - I wrote a very simple utility.  It builds as part of a JAR that will normally be used by other apps, but this utility c

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

2021-08-19 Thread Bernd Eckenfels
List Betreff: RE: Question on installing Maven from Red Hat (RHEL8), missing .m2 directory for users Thanks for the reply. I've worked with different version of RHEL for sometimes now and its my understanding that Red Hat packages older versions of software because they know it "sh

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

2021-08-19 Thread christopher.mil...@gd-ms.com
che.org Subject: Re: Question on installing Maven from Red Hat (RHEL8), missing .m2 directory for users External E-mail --- CAUTION: This email originated from outside GDMS. Do not click links or open attachments unless you recognize the sender and know the content is safe. Please note th

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

2021-08-18 Thread Michael Osipov
Please note that: Am 2021-08-18 um 17:44 schrieb christopher.mil...@gd-ms.com: [user_a@rhel8-maven3 bin]$ mvn --version Apache Maven 3.5.4 (Red Hat 3.5.4-5) ^^^ Custom distributions are discouraged and not supported by us. -

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

2021-08-18 Thread Greg Chabala
The .m2 directory will be created automatically on first use, as I recall. A non-trivial command that pulls some artifacts should be enough. You would only be concerned with creating it yourself if you need to set up specific values in settings.xml, which is your responsibility to create if needed.

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

2021-08-18 Thread christopher.mil...@gd-ms.com
Hi, this is on RHEL8, trying to standardized on how we install Maven where I work, so it's the same for each user. Make it easy for setup and troubleshoot. >From a RHEL8 workstation, I'm running the following command, as we have a >repository to pull from: dnf install maven -y DNF pulls i

Maven Compiler + Annotations processor question

2020-04-20 Thread Arnaud Héritier
Hi team, That's a long time I didn't play with annotations processors and there is something I don't understand. Maybe I get it wrong with annotations processors and/or with Maven What I want to accomplish is very similar to this post on stackoverflow: https://cloudbees.atlassian.net/wiki/sp

Re: [compiler-plugin] Question about multiple compiler executions

2020-04-02 Thread Lasse Lindqvist
le everything. > > For this to work, I have to set > false to use > incremental compilation (reversed property, this is a known issue). > On the shell it works just fine. > > My question is: Is this setup "using maven the intended way"? I am > asking, because no

[compiler-plugin] Question about multiple compiler executions

2020-04-02 Thread Benjamin Marwell
have to set false to use incremental compilation (reversed property, this is a known issue). On the shell it works just fine. My question is: Is this setup "using maven the intended way"? I am asking, because no IDE supports this right now. Each time I touch a file which will be proce

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-19 Thread Hervé BOUTEMY
Le samedi 18 janvier 2020, 23:37:04 CET Enrico Olivelli a écrit : > > yes, it's tempting to do so, but if this parameter is not documented, it's > > because it's read-only then is not expected to be overridden. And given > > you're > > not the first one I saw to override it, MNG-5001 is absolutely

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-18 Thread Enrico Olivelli
Il sab 18 gen 2020, 22:27 Hervé BOUTEMY ha scritto: > Le samedi 18 janvier 2020, 14:24:29 CET Enrico Olivelli a écrit : > > Hervé > > I don't know why but my change works as expected. > > > > I really can't change the artifact id of the main parent pom because it > > will be a nuisance for consum

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-18 Thread Hervé BOUTEMY
Le samedi 18 janvier 2020, 14:24:29 CET Enrico Olivelli a écrit : > Hervé > I don't know why but my change works as expected. > > I really can't change the artifact id of the main parent pom because it > will be a nuisance for consumers. > > So you think that my patch is working only because of a

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-18 Thread Enrico Olivelli
Hervé I don't know why but my change works as expected. I really can't change the artifact id of the main parent pom because it will be a nuisance for consumers. So you think that my patch is working only because of a bug in Maven core? I shouldn't be able to override finalName. I could change

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-18 Thread Hervé BOUTEMY
WARNING: finalName is read-only There is a bug in Maven 3 that does not check, but this will be fixed in Maven 3.7.0 (see MNG-5001 [1]), then you'll get soon the expected failure Either you should rename parent artifact to zookeeper, then you'll have to rename the current zookeeper to zookeeper-

Re: Question about Apache Parent Pom and source-release-assembly

2020-01-17 Thread Enrico Olivelli
Self answer, I have cloned the execution but I have reused the common assembly descriptor. It is a trade off but it works https://github.com/apache/zookeeper/commit/9053f7c431bb17ed79c2be129b6ba4ba18d15ab1 Enrico Il giorno ven 17 gen 2020 alle ore 08:50 Enrico Olivelli < eolive...@gmail.com> ha

Question about Apache Parent Pom and source-release-assembly

2020-01-16 Thread Enrico Olivelli
Hi, In Apache ZooKeeper community we want to switch to using the "source package" generated by the apache parent pom with the execution of "source-release-assembly". https://github.com/apache/maven-apache-parent/blob/master/pom.xml#L381 What is the *best* way to achieve these goals (without redefi

Re: Maven question - how to pull code from bitbucket repository as dependency

2019-08-01 Thread Jason Young
On Wed, Jun 12, 2019 at 1:04 AM Anders Hammar wrote: > Having a dependency to some other scm repo is not a good approach. If that > changes your build could fail all of a sudden and you want consistency. > This is not true. The "big 3" VCSes each allow you to checkout a specific tag or revision

Re: Maven question - how to pull code from bitbucket repository as dependency

2019-06-12 Thread Matthieu BROUILLARD
If your script is hosted on SVN or git then you can also perhaps do a simple GET on a well know resources (SHA1 or tag) on the raw file directly. That way the download is easy and you have a reproducible build because you target a fixed version of the script. Matthieu On Wed, Jun 12, 2019 at 8:11

Re: Maven question - how to pull code from bitbucket repository as dependency

2019-06-11 Thread Thorsten Heit
Hi, > I have a maven project that builds Java jar files. I wan to run a python > script as one of the goals in the verify phase. I am planning to use the > ant run plugin for running the python script. The python script is stored > in a separate repository that I would like to copy to my project

Re: Maven question - how to pull code from bitbucket repository as dependency

2019-06-11 Thread Anders Hammar
Having a dependency to some other scm repo is not a good approach. If that changes your build could fail all of a sudden and you want consistency. Your Maven project should typically be self contained. Any dependency should be a Maven artifact (that is immutable). /Anders On Wed, Jun 12, 2019 at

Maven question - how to pull code from bitbucket repository as dependency

2019-06-11 Thread Rajesh Deshpande
Hello, I have a maven project that builds Java jar files. I wan to run a python script as one of the goals in the verify phase. I am planning to use the ant run plugin for running the python script. The python script is stored in a separate repository that I would like to copy to my project root fo

Question on shading plugin

2018-12-12 Thread Jerry Peng
Hello all, I have a question about the maven shade plugin. Is there a way to exclude a set of classes from being applied by the shading/relocation rule. I have a use case in which I have a set of classes that need to import the shaded version of a class but another set of classes need to import

Re: Question about the order maven-invoker-plugin executes the tests

2018-10-17 Thread Zoltan Farkas
pomIncludes did not work… wish there was a way to order execution or specify some dependencies… thanks —Z > On Oct 16, 2018, at 10:59 PM, Zoltan Farkas > wrote: > > Thanks, my issue is that I am testing a plugin that validates API backward > compatibility and I have: > > project v1, proje

Re: Question about the order maven-invoker-plugin executes the tests

2018-10-16 Thread Zoltan Farkas
Thanks, my issue is that I am testing a plugin that validates API backward compatibility and I have: project v1, project v2, project v3, project v4 where the artifact produced by project 2 is validated against the artifact produced by project 1, artifact produced by project v3 validated agai

Re: Question about the order maven-invoker-plugin executes the tests

2018-10-16 Thread Anders Hammar
Typically no test project should depend on other test projects, so you shouldn't need to specify the order. But you could have some setup projects that need to be run before the test projects. You can specify those with the setupIncludes param [1]. Having said that, you could try specifying the or

Question about the order maven-invoker-plugin executes the tests

2018-10-16 Thread Zoltan Farkas
Is there a way to control the order the tests configured at: src/it/projects ? thanks! —Z - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Question about using a custom StackTraceWriter with the maven-surefire-plugin

2018-03-17 Thread Zoltan Farkas
Is it possible to register a custom writer with the maven-surefire-plugin? let me know. thank you. —Z - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: maven-resolver question: difference between DependencySelector and DependencyFilter?

2018-02-26 Thread Laird Nelson
On Mon, Feb 26, 2018 at 5:46 PM Laird Nelson wrote: > I'm noticing that when I rely on the default DependencySelector installed > by MavenRepositorySystemUtils#newSession(), which incorporates optionality, > scope, etc., I still get optional dependencies in my collected results. > I meant to inc

  1   2   3   4   5   6   7   8   9   10   >