Skip to content

Commit

Permalink
Inhance help text
Browse files Browse the repository at this point in the history
  • Loading branch information
4ernovm authored and emilwareus committed Dec 12, 2023
1 parent 4e56b7a commit 6c9c512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/resolution/pm/maven/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ func (j *Job) addDependenciesResolveErrorDocumentation(regex *regexp.Regexp, cmd
strings.Join(
[]string{
message,
"\nTry to run `mvn dependency:tree -e` to get more details",
"\nTry to run `mvn dependency:tree -e` to get more details.",
"If this is a private dependency, make sure you have access to install it.",
}, " "),
)

Expand Down
2 changes: 1 addition & 1 deletion internal/resolution/pm/maven/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestRunCmdErr(t *testing.T) {
},
{
error: " |[ERROR] Failed to execute goal on project jackpot: Could not resolve dependencies for project com.jeteo:jackpot:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.servlet:com.springsource.javax.servlet:jar:2.5.0, javax.servlet:com.springsource.javax.servlet.jsp.jstl:jar:1.2.0 (http://repository.springsource.com/maven/bundles/release) -> [Help 1]\n",
doc: "Could not resolve dependencies for project com.jeteo:jackpot:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.servlet:com.springsource.javax.servlet:jar:2.5.0, javax.servlet:com.springsource.javax.servlet.jsp.jstl:jar:1.2.0 \nTry to run `mvn dependency:tree -e` to get more details",
doc: "Could not resolve dependencies for project com.jeteo:jackpot:war:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.servlet:com.springsource.javax.servlet:jar:2.5.0, javax.servlet:com.springsource.javax.servlet.jsp.jstl:jar:1.2.0 \nTry to run `mvn dependency:tree -e` to get more details. If this is a private dependency, make sure you have access to install it.",
},
}

Expand Down

0 comments on commit 6c9c512

Please sign in to comment.