I used the release candidate of the OSX installer that has been
retracted.  I had already unlocked the Security & Privacy panel of System
Preferences.

When I used File Open Project of NetBeans and moved it to my user
directory, I got a prompt to allow Apache NetBeans 13 to access my Desktop
(which I denied) but looking at the Files and Folders part of Security &
Privacy, I saw that Apache NetBeans 13.app was added with the three special
folders (Downloads, Document, Desktop) and had checked Download & Documents
for access but not Desktop.

I delete Apache NetBeans 13.app (and its 3 subfolders) from panel with the
“-" and was able to retrigger the requests when I tried to access and while
the panel was unlocked.  Not sure that will work for you or is part of the
configuration for the NetBeans.app application.  The “13” app is shown
right below the “12.6” app in the Files and Folders panel.

Dave


On Mar 8, 2022 at 2:57:40 PM, Peter Ream <todive...@gmail.com> wrote:

> I know what the problem is, I have a work around, but don’t know how to
> fully resolve. Applications that want access to folders ~/Desktop,
> ~/Downloads, or ~/Documents have to first get access permission from the
> user. I don’t know how this is done, an API request, first access to a file
> within, or something else. Anyway, NB12.6 requested access which I
> authorized for ~/Documents (my netbeans project folders reside here).  NB13
> (downloaded and installed with Carl Mosca’s installer) never requests
> access rights. As a result, “Apache Netbeans 12.6.app”, (see attached)
> has an entry in “System Preferences | Files and Folders”, while NB13 does
> not.   As a result, I am unable to navigate any of the special folders in
> NB13. To open and get the error, you have to supply path to project in
> “File Name: “ input box, then click “Open Project.” Then the error I noted
> in my earlier post.
>
> I can reproduce the same situation in NB12.6 by unticking “Documents
> Folder” in Files and Folders. Can no longer navigate the special folders,
> and same open failure.
>
> How does “Apache Netbeans 13.app” request access to ~/Documents? There is
> +/- to add applications, but it is always grayed out (not user addable).
> Give “Full Disk Access” does not work. I went down the quarantine route,
> but don’t think that is the issue. The install.sh uses curl to download and
> I read curl downloads are not quarantined.
>
> My work around:  I moved my projects out of ~/Documents. NB13 then works
> fine. If you don’t have your projects under one of the 3 special folders,
> you’ll never see the problem.
>
> I’m out of ideas and I’m guessing it has something to do with signing the
> app, and hope the MacOS installer will resolve this (non)issue.
>
> On 2022/03/06 16:53:39 Peter Ream wrote:
>
> I installed NB13 using carljmosca/netbeans-macos-bundle: NetBeans
>
> installation script for Mac OS X (github.com)
>
> <https://github.com/carljmosca/netbeans-macos-bundle> on MacOS 12.2.1 on
>
> MacBook Air M1. The install went without a hitch. However none of my maven
>
> projects will open. I get:
>
>
> 1 problem was encountered while building the effective model
>
> [FATAL] Non-readable POM /Users/user/Documents/Java
>
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml:
>
> /Users/user/Documents/Java
>
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml (Operation
>
> not permitted) @
>
>  for project  at /Users/user/Documents/Java
>
> Projects/NetBeansProjects/Maven/Test/DRHandicapMonitor/pom.xml
>
>
> When I try “Resolve Problem”, I get:
>
>
> cd /Users/user/Documents/Java
>
> Projects/NetBeansProjects/Maven/Test/Handicap;
>
> JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
>
> "/Applications/NetBeans/Apache NetBeans
>
> 13.app/Contents/Resources/NetBeans/java/maven/bin/mvn" -DskipTests=true
>
> --fail-at-end package
>
> shell-init: error retrieving current directory: getcwd: cannot access
>
> parent directories: Operation not permitted
>
> pwd: error retrieving current directory: getcwd: cannot access parent
>
> directories: Operation not permitted
>
> pwd: error retrieving current directory: getcwd: cannot access parent
>
> directories: Operation not permitted
>
> chdir: error retrieving current directory: getcwd: cannot access parent
>
> directories: Operation not permitted
>
> chdir: error retrieving current directory: getcwd: cannot access parent
>
> directories: Operation not permitted
>
> pwd: error retrieving current directory: getcwd: cannot access parent
>
> directories: Operation not permitted
>
> Scanning for projects…
>
>
> There appears to be a problem with accessing the POM. I have “Files and
>
> Folders” and “Full Disk Access” set for NB13.
>
>
> Any ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

Reply via email to