Hi,

at least under Windows 10 and Maven 3.5.4, the handy Check Out... feature
at [Maven project] > Dependencies > [artifact] > View Artifact Details >
Project > Source Control Management > Check Out... is broken. After filling
the dialog and pressing CheckOut, the Maven error "The goal you specified
requires a project to execute but there is no POM in this directory ..." is
occurring every time.

It is caused by a space after -Dpassword in the Maven command line:
...mvn.cmd -DcheckoutDirectory=... -DconnectionUrl=... -Dusername=<user>
-Dpassword =<password> ... scm:checkout

Instead, it should be "...  -Dpassword=<password> ...".

I have done some analysis:
* The according code is at
https://github.com/apache/incubator-netbeans/blob/2d76c29ffbafd5d92a6cdbc4a66a9b51f63fa0eb/java/maven/src/org/netbeans/modules/maven/actions/scm/ui/CheckoutUI.java#L359
* It's there since ever:
http://hg.netbeans.org/main/diff/8559551465d2/maven/src/org/netbeans/modules/maven/actions/scm/ui/CheckoutUI.java
* I am pretty sure it was working for me some years ago (didn't code
intensively for longer). Maybe it depends on how Windows is interpreting
the space in 7 vs. 10 or it's the Maven bat vs. cmd command, etc.
* I have removed the space in CheckoutUI.java, complied and tested. It
fixes the issue.

Maybe someone could execute this easy patch? I was wondering if I should
submit a (micro) change request but as per
https://netbeans.apache.org/participate/submit-pr.html , I shall create a
Jira issue first. But sorry, how to do so? I know that it's possible to
commit Exceptions from within NetBeans, but how shall I create a Jira issue
without an Exception and no corresponding account?

Thanks a lot for your great work and for considering this request,
Mark

Reply via email to