Re: weird error - property substitution not working

2024-05-09 Thread Tomo Suzuki
My guess: Project A’s parent pom in your local Maven repository is outdated. Regards, Tomo On Thu, May 9, 2024 at 21:43 Siddharth Jain wrote: > Hello, > > I have a property defined in parent pom: > > 1.17.3 > > I have project A that has following: > > > com.microsoft.onnxruntime >

Re: Less info please.

2024-05-03 Thread Tomo Suzuki
“-ntp” (no transfer progress) is my favorite command line option. Regards, Tomo On Fri, May 3, 2024 at 06:32 Arbol One wrote: > Debian 12 > NetBeans 21 > Apache Maven 3.8.7 > > Hello. > > The Ant tool produces very little information regarding its work. On the > other hand, Maven displays

Re: A book on Maven

2024-04-30 Thread Tomo Suzuki
I would rather use the getting started guide in the Maven website: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Regards, Tomo On Tue, Apr 30, 2024 at 18:23 Arbol One wrote: > Anyone here can recommend a book on maven for a truly nubby? > Thanks!! > > -- >

Re: Publishing to Maven Central and non-OSS plugin dependencies

2024-02-29 Thread Tomo Suzuki
(I’m just a Maven user) It seems that, for consuming the artifact, the closed-source plugin seems not a dependency. I believe it just works fine. Your company’s support team might get questions like “I tried to build your library myself but the build failed.” Maven has a capability to replace

Re: maven debugging frustrations

2023-12-19 Thread Tomo Suzuki
> > I do not recommend feeling my maven-based pain :) > > But if you happen to know where to get some pain relief, I'd love to know > > > > -Original Message- > > From: Tomo Suzuki > > Sent: Tuesday, December 19, 2023 5:18 PM > > To: Maven Users

Re: maven debugging frustrations

2023-12-19 Thread Tomo Suzuki
What’s the exact error messages? (Maybe I’m too old to feel your pain) If you use Java, you need to know what compilation means (converting Java code to Java bytecode). Your Maven invocation was telling it was failing due to some error messages. On Tue, Dec 19, 2023 at 16:57 wrote: > When my

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

2023-04-15 Thread Tomo Suzuki
at 12:00 PM Tomo Suzuki > wrote: > > > My guess > > > > - Maven profiles activated based on environment > > > > The pom.xml has 2 profiles, both triggered by -P, not (that I know of) by > the environment. In any case, environments are (at least from the de

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

2023-04-15 Thread Tomo Suzuki
My guess - Maven profiles activated based on environment - Download URL was unavailable or - Disk was full when downloading On Fri, Apr 14, 2023 at 15:34 Thad Humphries wrote: > I have *war that I've built on 3 different Macs (maven-war-plugin 3.3.2). > The code is pulled from my local git

Re: Maven build hanging -- how to collect diagnostics?

2022-12-01 Thread Tomo Suzuki
“-X” debug option would be the first step. If it was on Linux, you can try strace command to see what system call it is making (or not). I’m not sure about Windows. In past, I encountered an infinite loop for very strange dependency tree. It’s rare and has been fixed in latest releases. But

Re: maven-clean-plugin and plexus-utils 1.1 (CVE-2017-1000487)

2022-09-22 Thread Tomo Suzuki
Hi Martin, Would you share the output of your [1] setup, where you saw “plexus-utils-1.1.jar is being downloaded“? mvn -X -s settings.xml -Dmaven.repo.local=repository org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean (Doesn’t the debug flag explain why it’s downloading it?) Regards,

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

2021-04-29 Thread Tomo Suzuki
Hi Niels, (Thank you for using the libraries-bom! I'm one of the maintainers of the BOM.) I don't know how to do it in Maven. However, I often see people using dependabot or renovatebot integrated with their repositories. An example pull request by renovatebot:

Re: BOM vs Parent inheritance

2021-02-04 Thread Tomo Suzuki
> Is it because the oci-java-sdk is 2 hops from my pom and the jackson-bom is 3 hops? Yes, my experience tells that the distance from your pom matters. > Is there anything I can do to control this such that the versions defined in my parent "win"? No, I think you can only import jackson-bom of

Re: maven enforcer plugin questions

2020-12-05 Thread Tomo Suzuki
> though the changes were innocuous In such case, usually run “mvn help:effective-pom“ to figure out the difference. In my experience, enforcer rules (requireUpperBounds, dependencyConvergence) are deterministic and reliable. Would you be willing to share a minimum reproducible project as a

Re: Version ranges: bug or feature

2020-11-10 Thread Tomo Suzuki
ange results in checking all snapshot versions in > all snapshot repositories available > > so 6.7.1-SNAPSHOT, 6.7.2-SNAPSHOT, 6.7.3-SNAPSHOT etc are being checked ... > Is this expected > > > https://ci-builds.apache.org/job/OpenMeetings/job/openmeetings/133/consoleFull > > > &

Re: Version ranges: bug or feature

2020-11-10 Thread Tomo Suzuki
I avoid using version ranges because it introduces unexpected results in the dependency graphs. > [6.7.0,7.0.0-SNAPSHOT) I felt the intention of the range is the highest version before 7.0.0-SNAPSHOT (without including 7.0.0-SNAPSHOT version). As per [1], this range includes versions such as

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

2020-10-31 Thread Tomo Suzuki
Hi Raivo, Interesting problem. Would you share the entire error message and minimum reproducible pom.xml? Tomo On Sat, Oct 31, 2020 at 07:17 Raivo Rebane wrote: > Hello > > If I use single httpclient.jar it doesn't find HttpClient.class > > if I duplicate dependencies wuidth addisional

Re: My maven module dependencies got wipe out randomly

2020-10-13 Thread Tomo Suzuki
Hi Dan, (I don't use openapi-generator-maven-plugin) I had a similar situation where my Maven plugin (Linkage Checker enforcer rule , which reads dependencies of a project) stopped working when I

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

2020-09-14 Thread Tomo Suzuki
> *any* explicit pom.xml cannot be overridden by a property expression given on > the command line. I also encountered the problem when my Maven project has multiple main classes and I wanted to run them by switching "mvn exec:java -Dexec.mainClass=...' while keeping the default one in pom.xml.

Re: does order of dependencies in dependemcymanagement matter?

2020-07-08 Thread Tomo Suzuki
The order does not matter. I usually sort them alphabetically so that I can easily find duplicates. On Wed, Jul 8, 2020 at 02:11 彭宁均 wrote: > hi, > guys! > in my team, we use dependencymanagement to manage the version of hundreds > dependencies. Now i want to adjust the order of dependencies to

Re: Maven Artifacts not consumable after Introducing ci-friendly approach - revision tag

2020-06-13 Thread Tomo Suzuki
. Compile test-parent project with goal "clean install". It will compile > > and install all child projects. > > 2. Now compile child2 project, it would give compilation error due to > > dependency of child1 project. > > > > > > > > On Sat, Jun 13

Re: Maven Artifacts not consumable after Introducing ci-friendly approach - revision tag

2020-06-12 Thread Tomo Suzuki
other > child module child1 then I am not able to compile child2 project. > > On Fri, Jun 12, 2020 at 3:39 PM Tomo Suzuki > wrote: > > > (Assuming yy-utils is the one of the child project) > > Run ”mvn install” in yy-utils module first. > > > >

Re: Maven Artifacts not consumable after Introducing ci-friendly approach - revision tag

2020-06-12 Thread Tomo Suzuki
(Assuming yy-utils is the one of the child project) Run ”mvn install” in yy-utils module first. On Fri, Jun 12, 2020 at 01:56 Hanish Bansal wrote: > Hi All, > > We have maven Multi Module Project, where we have recently implemented > version control process as mentioned in below documentation

Re: How to exclude certain dependencies from being added to the Class-Path in maven?

2020-06-11 Thread Tomo Suzuki
I see that you accepted the answer. Nice. On Thu, Jun 11, 2020 at 8:29 AM wrote: > Hello, > > > > I would like to know how to exclude certain dependencies from being added > to the Class-Path using maven. I posted a detailed StackOverflow question > here:

Re: slf4j-jcl-1.0.1: Checksum validation failed

2020-05-29 Thread Tomo Suzuki
The discrepancy has been resolved as per the ticket. On Tue, May 26, 2020 at 10:15 PM Tomo Suzuki wrote: > Hi Olivier, > > Thank you for your response! I just created a ticket for them: > https://issues.sonatype.org/browse/MVNCENTRAL-5833 > > On Sun, May 24, 2020 at 04:56 O

Re: Unable to update version for provided transient dependencies

2020-05-28 Thread Tomo Suzuki
Hi Mitchell, Does your "mvn dependency:tree" contain the unwanted logging library? If yes, that's strange. Maven does not automatically include Provided transitive dependencies as far as I know. If not, then it's Storm that brought the library by reading the dependency graph in their way. On

Re: slf4j-jcl-1.0.1: Checksum validation failed

2020-05-26 Thread Tomo Suzuki
; You should report this issue here > https://issues.sonatype.org/projects/MVNCENTRAL > > On Sat, 23 May 2020 at 02:04, Tomo Suzuki > wrote: > > > Hi Maven users, > > > > Does anyone know why slf4j-jcl-1.0.1's checksum is invalid in Maven > > Central? >

Re: Maven brings “test” transitive dependency as “compile”

2020-05-23 Thread Tomo Suzuki
Debraj, I couldn't reproduce the problem in my setting. Netty-common appears as test scope. https://gist.github.com/suztomo/69f854bddd102b3fe83eae8f0720c494 Would you be willing to create a minimum reproducible project? Hopefully it builds only artifacts available on the public Internet (no

slf4j-jcl-1.0.1: Checksum validation failed

2020-05-22 Thread Tomo Suzuki
Hi Maven users, Does anyone know why slf4j-jcl-1.0.1's checksum is invalid in Maven Central? I'm investigating the following warning message: [WARNING] Could not validate integrity of download from https://repo1.maven.org/maven2/org/slf4j/slf4j-jcl/1.0.1/slf4j-jcl-1.0.1.pom: Checksum validation

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Tomo Suzuki
Hi Debraj, That's strange. "mvn dependency:tree -Dverbose" gives more information. "mvn help:effective-pom" may give you some information for netty-comon. By any change, does the parent (or poms imported by parent) declare dependencyManagement for netty-common? On Fri, May 22, 2020 at 9:31 AM

Re: Launching full Maven programmatically

2020-04-16 Thread Tomo Suzuki
I'm interested in that problem too. In the project below, we use PlexusContainer to instantiate MavenProject class from pom file:

Re: Global setting for --no-transfer-progress

2020-04-07 Thread Tomo Suzuki
I tried MAVEN_OPTS, which did not work (it's not for Java virtual machine): suztomo-macbookpro44% export MAVEN_OPTS='--no-transfer-progress' suztomo-macbookpro44% mvn compile Unrecognized option: --no-transfer-progress Error: Could not create the Java Virtual Machine. Error: A fatal exception has

Re: Build Failed

2020-03-19 Thread Tomo Suzuki
In the command prompt, would you run ping repo.maven.apache.org and ping repo1.maven.org and share the result? On Thu, Mar 19, 2020 at 08:07 John Patrick wrote: > Did it previously work from this machine? > Are you being a firewall or proxy server? > What version of maven are you using? > What

Re: Querying Maven Central Index by Class Name

2020-01-30 Thread Tomo Suzuki
020 at 15:38 Robert Scholte wrote: > > > > > Try > > > > > https://search.maven.org/search?q=fc:com.google.common.util.concurrent.MoreExecutors > > > > > > > > > On https://search.maven.org/ you can click on Advanced options to see > &g

Re: Querying Maven Central Index by Class Name

2020-01-25 Thread Tomo Suzuki
cutors > > > On https://search.maven.org/ you can click on Advanced options to see > all possibilities > > Robert > On 24-1-2020 20:33:21, Tomo Suzuki wrote: > Hi Maven users, > > Does anybody know how to query class names in Maven Central Index > (nexus-maven-reposito

Querying Maven Central Index by Class Name

2020-01-24 Thread Tomo Suzuki
Hi Maven users, Does anybody know how to query class names in Maven Central Index (nexus-maven-repository-index.gz) [1] to get Maven artifacts that contain the class? I'm exploring ways to find Maven artifacts by a class name. For example, I want to find which versions of Guava had class

Re: Unknown lifecycle phase " ".

2020-01-07 Thread Tomo Suzuki
r: Oracle Corporation, runtime: > /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home/jre > > Default locale: en_US, platform encoding: UTF-8 > > OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac" > > On Tue, Jan

Re: 2 issues with maven version range

2019-11-26 Thread Tomo Suzuki
tand from a maths point of view and from a order point of view > > the ordering is correct but from an ease of use, end developers point > > of view, i should just be able to use "[4,5)" > > > > thoughts? > > > > On Mon, 25 Nov 2019 at 20:40, Tomo S

Re: 2 issues with maven version range

2019-11-25 Thread Tomo Suzuki
I believe your cases do not work with version ranges. Version ranges depend on the order of the versions, and thus you cannot filter "-guava". The ordering of version is defined in org.eclipse.aether.util.version.GenericVersion in maven-resolver-util. Example code to check: //

Re: POM parent/import relationship visualization

2019-10-29 Thread Tomo Suzuki
Hi Mark, Thank you for response. I tried "Graph" button with NetBeans 11.0, but it didn't help my case: [image: image.png] On Tue, Oct 29, 2019 at 1:51 PM Mark Eggers wrote: > > On 10/29/2019 9:01 AM, Tomo Suzuki wrote: > > Hi Marco, > > > > Thank you for resp

Re: POM parent/import relationship visualization

2019-10-29 Thread Tomo Suzuki
Hi Andy, "mvn dependency:tree" did not explain why I get grpc-api:1.24.0 in "dependencyManagement" section. Hi Thomas, Thank you. It worked in the same way as NetBeans: $ mvn help:effective-pom -Dverbose ... io.grpc grpc-api 1.24.0 *What I'm

Re: POM parent/import relationship visualization

2019-10-29 Thread Tomo Suzuki
Hi Marco, Thank you for response. NetBeans' "Effective" almost worked. It showed the problematic artifact "grpc-api:1.24.0", which I was looking for, and showed it's from "grpc-bom". Great. But I also want to see where this grpc-bom coming from. [image: image.png] Regards, Tomo

POM parent/import relationship visualization

2019-10-28 Thread Tomo Suzuki
Hi Maven users, Do you know any visualization tool to show relationship (import/parent) of POMs? Background: Today, I encountered a situation where I had to dig parent/import relationship of multiple POMs. I had to read pom.xml via search.maven.org for each POM artifact. Detail:

Re: Company-wide pom and dependency management best practices

2019-08-06 Thread Tomo Suzuki
Hi Nick, > I see where the different versions for a dependency are coming from? I use "mvn dependency:tree -Dverbose=true" to get the detail of tree. It shows unselected nodes. > how can I make sure that the dependencies in the Spring Boot import take preference over the other dependency

Re: Finding out what the versions plugin did

2019-07-07 Thread Tomo Suzuki
Hi Mark, I would either 1. try display-dependency-updates and other display-* goals: https://www.mojohaus.org/versions-maven-plugin/examples/display-dependency-updates.html https://www.mojohaus.org/versions-maven-plugin/display-property-updates-mojo.html 2. leverage the backup file(s)

Re: Checksum validation failed, no checksums available

2019-06-29 Thread Tomo Suzuki
Hi James, You’re using Google’s Maven repository mirror (the URL tells so). It’s configured by your settings.xml. I would try switching back to Maven Central by removing the mirror setting. If switching back to Maven central solves the warnings, then it’s Google’s mirror problem. If the warnings

[maven-resolver-api] DefaultRepositorySystemSession to Use a Mirror Repository via settings.xml

2019-06-18 Thread Tomo Suzuki
Hi Maven users, Is it possible to configure maven-resolver-api's DefaultRepositorySystemSession using settings.xml? My settings.xml contains a Maven central mirror and I want maven-resolver-api to respect it. However, DefaultRepositorySystemSession always has NullMirrorSelector and seems to have