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 236307 - Create UI for changing proxy profiles (at home/ at work etc.)
Summary: Create UI for changing proxy profiles (at home/ at work etc.)
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 08:23 UTC by ssazonov
Modified: 2016-07-07 08:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
CreatingMavenWebApp (166.73 KB, image/png)
2013-09-24 08:23 UTC, ssazonov
Details
Step 01 (68.33 KB, image/png)
2013-09-25 09:50 UTC, ssazonov
Details
Step 02 (51.12 KB, image/png)
2013-09-25 09:50 UTC, ssazonov
Details
Step 03 (44.36 KB, image/png)
2013-09-25 09:50 UTC, ssazonov
Details
Step 04 (224.75 KB, image/png)
2013-09-25 09:51 UTC, ssazonov
Details
Output - Project Creation (6.30 KB, text/plain)
2013-09-25 09:51 UTC, ssazonov
Details
BetterOutput (125.03 KB, image/png)
2013-09-25 13:15 UTC, ssazonov
Details
setting.xml (10.54 KB, text/xml)
2013-09-25 13:16 UTC, ssazonov
Details
BetterOutput (1.23 KB, text/plain)
2013-09-25 13:17 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-09-24 08:23:27 UTC
Created attachment 140406 [details]
CreatingMavenWebApp

I tried to create new Maven Web Application and get BUILD FAILURE: ... No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Standa\.m2\repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1] ...

see attached image.

Product Version: NetBeans IDE 7.4 RC1 (Build 201309152201)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 1 Martin Janicek 2013-09-25 08:58:10 UTC
Could you please describe what exact steps should I follow to be able to reproduce the problem? It's impossible to find out if the problem is on NetBeans side or in your configuration only with the given image and short description.
Thanks in advance!
Comment 2 ssazonov 2013-09-25 09:49:36 UTC
Ok, beginning I'd like to say I'm not too familiar with web application, I work on Java SE, so I am a case of user, who expects, that if he install complete NetBeans bundle and leave all options as default everything will fork properly.

So, I have installed NetBeans IDE 7.4 RC1 full bundle and tried to create new Maven Web Application in a few steps (please see attached screens: Step 01 - 04).

>> Finally, project, have not bean created because of many errors (see Output - Project Creation). I think, it's important problem, because project have not bean created.
Comment 3 ssazonov 2013-09-25 09:50:13 UTC
Created attachment 140441 [details]
Step 01
Comment 4 ssazonov 2013-09-25 09:50:32 UTC
Created attachment 140442 [details]
Step 02
Comment 5 ssazonov 2013-09-25 09:50:46 UTC
Created attachment 140443 [details]
Step 03
Comment 6 ssazonov 2013-09-25 09:51:05 UTC
Created attachment 140444 [details]
Step 04
Comment 7 ssazonov 2013-09-25 09:51:25 UTC
Created attachment 140445 [details]
Output - Project Creation
Comment 8 Martin Janicek 2013-09-25 10:54:36 UTC
(In reply to ssazonov from comment #2)
> I am a case of user, who expects, that if he install complete NetBeans bundle > and leave all options as default everything will fork properly.

Ok, thanks for explanation. It should work properly in general but there are some cases when we cannot be able to configure the IDE with respect to client specifications.

For example if you are working behind a proxy, you need to configure Maven to be able to use it (it can be done in your home/.m2/setting.xml --> see [1] for more details). Please check that first and if it's not your case I'll think about the possible cause of the problem further:)

[1] http://maven.apache.org/guides/mini/guide-proxies.html
Comment 9 ssazonov 2013-09-25 13:15:30 UTC
Thank you for advice, Martin, yes I am connected throw Oracle proxies, it may causes the problem. I'm using Win7, so I expected setting.xml will be in "C:\Users\Standa\.m2\..." directory, finally I found them in "C:\Program Files\NetBeans 7.4 RC1\java\maven\conf\settings.xml", than I changed it as mentioned. Now the output of project creator looks a little different, but it still filed and does not create the poject :(

(see BetterOutput, settings.xml)
Comment 10 ssazonov 2013-09-25 13:15:57 UTC
Created attachment 140467 [details]
BetterOutput
Comment 11 ssazonov 2013-09-25 13:16:15 UTC
Created attachment 140468 [details]
setting.xml
Comment 12 ssazonov 2013-09-25 13:17:44 UTC
Created attachment 140469 [details]
BetterOutput
Comment 13 Martin Janicek 2013-09-25 13:32:12 UTC
Ok, it still looks like the IDE can't connect with the Maven repository. It's probably because you changed wrong settings.xml (please read [1] --> you shouldn't change netbeans.home/java/maven/conf/settings.xml directly).

Second paragraph could help you I guess. Try it and we can continue if that won't help either ;)


[1] http://wiki.netbeans.org/FaqMavenProxySettings
Comment 14 ssazonov 2013-09-25 14:53:15 UTC
Thank you so much, I have added

<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>www-proxy.uk.oracle.com</host>
      <port>80</port>
    </proxy>
  </proxies>
</settings>

inside .../.m2/settings.xml directory and now it works properly, project have bean created and all dependence have bean downloaded :)

I think it may be useful enhance to implement GUI for creating proxy profiles to switch between them. For example, user at work may use one proxy profile when he come home he simply switch to another proxy profile. For addition there may be hint in Output - Project Creator, something like "You may check proxy settings in Tools > Options ..."
Comment 15 Martin Janicek 2013-09-26 08:28:54 UTC
(In reply to ssazonov from comment #14)
> I think it may be useful enhance to implement GUI for creating proxy
> profiles to switch between them. For example, user at work may use one proxy
> profile when he come home he simply switch to another proxy profile. 

Thanks for that idea, definitely sounds interesting!
Comment 16 Martin Janicek 2014-07-30 12:37:13 UTC
Passing to core maven. I like the idea from comment 14 if we find some time to do that in the future.
Comment 17 Martin Balin 2016-07-07 08:37:25 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss