Skip to content

Commit

Permalink
Use dependency:resolve instead of the :list alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed Nov 20, 2024
1 parent 4ebd7a4 commit b4c14ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ NexusMavenProjectParameterizedTest class >> case1 [
[INFO] from pom.xml
[INFO] -------------------------------[ compile ]-------------------------------
[INFO]
[INFO] --- dependency:0.0.0:list (default-cli) @ test1 ---
[INFO] --- dependency:0.0.0:resolve (default-cli) @ test1 ---
[INFO]
[INFO] The following files have been resolved:
[INFO] none
Expand Down Expand Up @@ -65,14 +65,14 @@ NexusMavenProjectParameterizedTest class >> case2 [
version := '2.0.1'.
language := 'java'.

"result of the `mvn dependency:list` command"
"result of the `mvn dependency:resolve` command"
mavenOutput := '
[INFO] ---------------------< org.moose:test2 >----------------------
[INFO] Building ''Nother Moose Nexus Test2 2.0.1 [1/1]
[INFO] from pom.xml
[INFO] -------------------------------[ compile ]-------------------------------
[INFO]
[INFO] --- dependency:0.0.0:list (default-cli) @ test2 ---
[INFO] --- dependency:0.0.0:resolve (default-cli) @ test2 ---
[INFO]
[INFO] The following files have been resolved:
[INFO] org.moose:fame:jar:1.1:compile
Expand Down
6 changes: 3 additions & 3 deletions src/MooseNexus/NexusMavenProject.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ NexusMavenProject >> parse: raw [
[INFO] from `path/`pom.xml
[INFO] -------------------------------[ `type` ]-------------------------------
[INFO]
[INFO] --- dependency:`pluginVersion`:list (default-cli) @ `name` ---
[INFO] --- dependency:`pluginVersion`:resolve (default-cli) @ `name` ---
[INFO]
[INFO] The following files have been resolved:
[INFO] `none | (group:name:type:version:scope)+`"
Expand Down Expand Up @@ -112,10 +112,10 @@ NexusMavenProject >> parse: raw [

{ #category : 'private' }
NexusMavenProject >> read [
"Runs the `mvn` command using the `dependency:list` plugin.
"Runs the `mvn` command using the `dependency:resolve` plugin.
Requires Maven to be installed."

^ LibC resultOfCommand: 'cd ' , directory , ' && mvn dependency:list'
^ LibC resultOfCommand: 'cd ' , directory , ' && mvn dependency:resolve'
]

{ #category : 'private' }
Expand Down

0 comments on commit b4c14ba

Please sign in to comment.