Bug 248192 - java/netbeans: Fails to build maven projects as non-root: Cannot run program "/usr/local/netbeans-11.3/java/maven/bin/mvn" (project) : error=13, Permission denied
Summary: java/netbeans: Fails to build maven projects as non-root: Cannot run program ...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Koop Mast
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-07-22 19:40 UTC by akruijff
Modified: 2020-07-23 01:40 UTC (History)
1 user (show)

See Also:
linimon: maintainer-feedback? (kwm)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akruijff 2020-07-22 19:40:24 UTC
Hi,

When I compile any given maven project as non root then the following message is shown:
Cannot run program "/usr/local/netbeans-11.3/java/maven/bin/mvn" (in directory "/home/akruijff/NetBeansProjects/mavenproject2"): error=13, Permission denied

ll /usr/local/netbeans-11.3/java/maven/bin/mvn gives:
-rw-r--r--  1 root  wheel  7383 Nov 10  2015 /usr/local/netbeans-11.3/java/maven/bin/mvn

It seems that the permissions are set wrong by the port. It should be -rxxr-xxr-x