Hello,

I am having the same issue on MacOs 12.3.1 with M1 chip and NetBeans 12.6.
I suppose there is a problem with NetBeans reading the Path variable from
the system, as building works fine in the terminal.

The following workaround made the issue disappear:
# create symlink from homebrew svn to usr local
sudo ln -s /opt/homebrew/bin/svn /usr/local/bin/svn
Quit NetBeans
# add the following lines to the top of netbeans.conf
PATH=$PATH:/usr/local/bin
export PATH

Start NetBeans.

I hope this helps.

Alex

On 2022/03/25 19:36:49 Mark Eggers wrote:
> Hi,
>
> Thanks for responding.
>
> I can't check since the Macintosh user is not around at present.
> However, while reading brew documentation it says that there are soft
> links to /usr/local/bin for all the installations.
>
> If I was writing an installation system, that's how I would do it. That
> way you can upgrade by installing software in one place and moving the
> links. If the upgrade causes grief, you can just move the links back. If
> the upgrade is good, you can then uninstall the older version.
>
> I do that with lots of frequently  upgraded software on my Linux
platforms.
>
> . . . just my two cents
> /mde/
>
> On 3/25/2022 1:08 AM, Juan Miguel Escribano wrote:
> > Hi,
> >
> > I think I installed Subversion with brew too, but my path to it is :
/usr/local/opt/svn/bin
> > ¿Could you check it?
> >
> > Juan Miguel
> >
> >> El 25 mar 2022, a las 0:06, Mark Eggers <it...@yahoo.com.INVALID>
escribió:
> >>
> >> I'm trying to help a user on a Macintosh use NetBeans 13. I do not
have a Macintosh.
> >>
> >> Our pom.xml has the buildnumber-maven-plugin that runs in the validate
phase. It populates some properties (revision and branch) to be added to a
couple of files via resource filtering.
> >>
> >> This works fine on Windows and Linux. It also works fine on the user's
Macintosh on the command line.
> >>
> >> The build failed error only occurs on a Macintosh when running from
aproject->Clean and Build in NetBeans.
> >>
> >> The error happens when executing the following (part of mvn -X):
> >>
> >> Executing: /bin/sh -c cd '/Users/auser/NetBeansProjects/aproject' &&
'svn'
> >>     '--username' 'auser' '--password' '*****' '--no-auth-cache'
> >>     '--non-interactive' 'info'
> >>
> >> The error is:
> >>
> >> Failed to execute goal
> >> org.codehaus.mojo:buildnumber-maven-plugin:3.0.0:create (default) on
> >> project aproject:
> >>     Cannot get the revision information from the scm repository :
> >>     Exception while executing SCM command.:
> >>     Error while executing command.
> >>     Error while executing process.
> >>     Cannot run program "svn" (in directory
> >>     "/Users/auser/NetBeansProjects/aproject"): error=2,
> >>     No such file or directory
> >>
> >> aproject->Subversion->Update->Update to HEAD works as expected.
> >>
> >> The Preferences->Team->Subversion->Preferred Client (CLI) has the path
/usr/local/bin.
> >>
> >> Opening a Terminal window in NetBeans (Window->IDE Tools->Terminal),
changing to /Users/auser/NetBeansProjects/aproject and executing mvn
package works as expected.
> >>
> >> Subversion was installed via brew. NetBeans was installed from the
.dmg.
> >>
> >> I'm currently at a loss.
> >>
> >> Any ideas would be welcome.
> >>
> >> . . . just my two cents
> >> /mde/
> >
> >
> > ---------------------------------------------------------------------
> > 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