This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231112 - [74cat] cannot create maven repository
Summary: [74cat] cannot create maven repository
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 07:10 UTC by muellermi
Modified: 2013-06-20 05:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.78 KB, text/plain)
2013-06-12 07:10 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-06-12 07:10:22 UTC
Product Version = NetBeans IDE Dev (Build 201306112301)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

In our institute, we use windows, with profiles and user dirs stored on a file server. Till NB 7.3.1 (dev), this had be no problem.
But with the current development version, almost everything is a mess: Cpuld not install as standard user (issue 230809).
Could not create a project on unc path (workarround: use local path)

And now, cannot create maven projects, because NB cannot access the local repo any more:

cd D:\Projects\TestJSF; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_21" "\"C:\\Program Files\\NetBeans Dev 201306112301\\java\\maven\\bin\\mvn.bat\"" --non-recursive clean
Could not create local repository at \\Fileserver1\User$\muellermi\.m2\repository -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
Comment 1 muellermi 2013-06-12 07:10:25 UTC
Created attachment 135664 [details]
IDE log
Comment 2 muellermi 2013-06-12 13:44:37 UTC
I just downloaded final 7.3.1: No such problem.

Hopefully this can be solved in Dev (current Build 201306112301) soon.
Comment 3 Milos Kleint 2013-06-13 05:49:15 UTC
\\Fileserver1\User$\muellermi\.m2\repository

is a correct path? Especially the User$ part..

also does your 7.3 build use the same JDK and maven? there have been quite a few Runtime.exec()/ProcessBuilder related security fixes in jdk 7u21 and that's what appears to be manifesting here as well.. because the error comes from the maven JVM that we spawn using ProcessBuilder only.

It's important both what JVM the IDE is using and what also what JVM is maven running on.
Comment 4 muellermi 2013-06-13 06:15:03 UTC
Yep, the share is valid.

If you use windows explorer to browse your network, you may see a couple of shares. You'll never see shares like c$ (drive c:), which exist by default. Try to explore \\yourserver\c$, and you'll get it. Be default you need some administrative rights. In the same way, it is possible to hide shares, where a normal user has access rights. Just append the "$" when assigning a name for this share.

And yesterday, I downloaded and installed the final version of NB 7.3.1. No problem on the same machine(s).

See issue 220809, installer problem. It seems to have the same cause. There must be a library for unc path inthe dev version, which has been changed some days or weeks ago.
Comment 5 muellermi 2013-06-13 06:17:01 UTC
Issue has a typo. Correct one is issue 230809.
Comment 6 Milos Kleint 2013-06-13 06:34:13 UTC
(In reply to comment #4)
> 
> See issue 220809, installer problem. It seems to have the same cause. There
> must be a library for unc path inthe dev version, which has been changed some
> days or weeks ago.

but the error 
Could not create local repository at
\\Fileserver1\User$\muellermi\.m2\repository -> [Help 1]

is coming from the maven JVM. There are no netbeans originating unc path library that we would inject into maven's JVM.


Please verify that both 7.3.1 and dev builds are running on the same JVM. Can you build using maven (same version, same JDK used) on the cmd line?
Comment 7 muellermi 2013-06-13 11:51:33 UTC
Hm, I haven't tried from the command line yet, nor will have time this week :(
But, fresh installation of NB 7.3.1 yesterday on the same machine, using the same JVM has no such problem.
Comment 8 Milos Kleint 2013-06-14 06:02:39 UTC
(In reply to comment #7)
> Hm, I haven't tried from the command line yet, nor will have time this week :(
> But, fresh installation of NB 7.3.1 yesterday on the same machine, using the
> same JVM has no such problem.

Ok, please test and also attach the IDE log files from 7.3.1 and dev builds. 

I've double checked that both 7.3.1 and dev are using the same maven 3.0.5.
Comment 9 Milos Kleint 2013-06-18 08:29:46 UTC
please reopen with the 7.3.1 log file.

also with regard to issue 230809 - have you tried to reproduce this issue with a build that has the given issue resolved? The current problem could be a result of a mis-installation
Comment 10 muellermi 2013-06-19 20:59:54 UTC
There seems to be no such problem in current version anymore.
Comment 11 Milos Kleint 2013-06-20 05:58:18 UTC
ok, changing to worksforme, please reopen if the problem resurfaces