RE: Re: Re: Version Management in 'mvn dependency:tree'

2023-10-31 Thread yukai zhao
Thank you for your response! Additionally, I've noticed that in this situation, if I delete 3.12.0 from my local repository and then recompile the project, Maven still downloads 3.12.0. Is this behavior normal? On 2023/11/01 03:45:49 Greg Chabala wrote: > On Tue, Oct 31, 2023 at 10:27 PM yukai

Re: Re: Version Management in 'mvn dependency:tree'

2023-10-31 Thread Greg Chabala
On Tue, Oct 31, 2023 at 10:27 PM yukai zhao wrote: > has the project actually introduced the org.apache.commons:commons-lang3 > with version 3.12.0 during the actual compilation process? > Well, no. It says 3.12.0 was omitted, due to being a duplicate, hence why it was not even mentioned

RE: Re: Version Management in 'mvn dependency:tree'

2023-10-31 Thread yukai zhao
I apologize for my unclear description! Allow me to explain my problem specifically. You are right; it is indeed a confusion. Firstly, I compiled a project using Maven. This step was completed with the command mvn clean install. Below is part of the output (I have omitted some information for

Re: Version Management in 'mvn dependency:tree'

2023-10-31 Thread Greg Chabala
On Tue, Oct 31, 2023 at 11:27 AM wrote: > Can't quite make sense of all this; given that you got no replies, maybe > no one else understood either. I second this sentiment. All I could tell is it seems like there's some confusion about interpreting the dependency:tree output, and perhaps

Re: deploying java app

2023-10-31 Thread Mantas Gridinas
Install phase isn't all that necessary. Iirc it's the last one in the process. So you can use either verify (which is the integration test phase) or package (which is jar generation phase and runs after unit tests) On Tue, Oct 31, 2023, 19:04 Peter Carlson wrote: > This works well, except I

Re: deploying java app

2023-10-31 Thread Peter Carlson
This works well, except I dont want this: [INFO] Installing /home/peter/workspace/SDCP/target/sdcp.jar to /home/peter/.m2/repository/com/howudodat/sdcp/1.0-SNAPSHOT/sdcp-1.0-SNAPSHOT.jar [INFO] Installing /home/peter/workspace/SDCP/pom.xml to

RE: Version Management in 'mvn dependency:tree'

2023-10-31 Thread mark.yagnatinsky
Can't quite make sense of all this; given that you got no replies, maybe no one else understood either. Could you explain a bit better? -Original Message- From: yukai zhao Sent: Monday, October 30, 2023 9:10 PM To: users@maven.apache.org Subject: Version Management in 'mvn

Re: deploying java app

2023-10-31 Thread Arnaud bourree
For me best solution is assembly plugin : https://maven.apache.org/plugins/maven-assembly-plugin/ You can chose dir format if you don't want zip or equivalent Arnaud Le mar. 31 oct. 2023, 17:01, Delany a écrit : > Hi Peter, > > Firstly, compile and package are part of the same lifecycle (the

Re: deploying java app

2023-10-31 Thread Delany
Hi Peter, Firstly, compile and package are part of the same lifecycle (the default lifecycle), so its not necessary to specify both. Then you can add this profile to your pom so you don't have to run the dependency plugin separately. dispatch ${project.artifactId}

deploying java app

2023-10-31 Thread Peter Carlson
I currently use the below commands to prepare my java application: mvn clean compile package dependency:copy-dependencies Then I manually copy the files with:   cp target/myapp-1.0-SNAPSHOT.jar /mnt/remote_app/myapp.jar   cp target/dependency/* /mnt/remote_app/libs/ I'm wondering: