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 156751 - Can't create maven project and NPW cannot be closed
Summary: Can't create maven project and NPW cannot be closed
Status: VERIFIED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 10:33 UTC by Ivan Sidorkin
Modified: 2009-02-19 22:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nb log (48.32 KB, text/plain)
2009-01-14 11:22 UTC, Ivan Sidorkin
Details
maven options (43.81 KB, image/png)
2009-01-14 11:23 UTC, Ivan Sidorkin
Details
output window (72.12 KB, image/png)
2009-01-14 11:24 UTC, Ivan Sidorkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2009-01-14 10:33:25 UTC
Product Version: NetBeans IDE Dev (Build 200901140201)
Java: 1.6.0_10; Java HotSpot(TM) Server VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

full installation

- open new project wizard
- select maven category and press next
- press next
- press finish

new project wizard not closed and can't be closed
Comment 1 Milos Kleint 2009-01-14 10:45:12 UTC
it seems to work for me. please provide more detailed steps to reproduce, include the log file of the IDE etc..

please note that if you haven't created any maven projects before, the downloading of maven plugins, archetypes and so
on will take a long time, but that shall be reflected in the output window processing. The wizard itself will only
close, after the build has finished..
Comment 2 Ivan Sidorkin 2009-01-14 10:51:30 UTC
how long it can take? I wait about 10 minutes

no more details. clean installation. and steps that I described earlier 

reproduced on 2 windows machines
Comment 3 Milos Kleint 2009-01-14 10:56:32 UTC
1. what version of maven are you using? (check the Tools/Options/Misc/Maven dialog)
2. which archetype have you picked?
3. where is the log file?
4. do you get the output window opened?

5. does it work if you a. delete the ergonomics cluster in nb installation and b. wipe the userdir?
Comment 4 Ivan Sidorkin 2009-01-14 11:21:53 UTC
there is no ergonomics cluster in nb installation
clean userdir

maven options - see attachment
archetype - Maven Quickstart Archetype
log - see attachment
output window  - see attachment
Comment 5 Ivan Sidorkin 2009-01-14 11:22:44 UTC
Created attachment 75815 [details]
nb log
Comment 6 Ivan Sidorkin 2009-01-14 11:23:50 UTC
Created attachment 75816 [details]
maven options
Comment 7 Ivan Sidorkin 2009-01-14 11:24:50 UTC
Created attachment 75817 [details]
output window
Comment 8 Milos Kleint 2009-01-14 12:54:40 UTC
it seems that the maven build waits for input in the output window. however it's explicitly instructed not to do so, it
could be a bug in maven core or the maven-archetype-plugin. Since the plugin version is shared but you use "embedded
maven", while me using 2.0.9, it's more probably a bug in the maven embedder. 

a possible workaround is to download the latest release of maven binaries, unzip them and use the Tools/Options dialog
to point the IDE to location of the installation.
Comment 9 Milos Kleint 2009-01-14 15:57:19 UTC
http://hg.netbeans.org/main/rev/592700487f89

it seems the embedded maven won't work with alpha-4 of archetype plugin. Added a workaround that forces alpha-3 in case
embedded maven is used (which seems to work)
Comment 10 Ivan Sidorkin 2009-01-15 07:42:20 UTC
NPW closed now, but project not created.

Output window:
WARNING: You are running embedded Maven builds, some build may fail due to incompatibilities with latest Maven release.
         To set Maven instance to use for building, click here.
[ERROR]Maven encountered an error while loading a plugin for use in your build.
[ERROR]Plugin:
[ERROR]Group-Id: org.apache.maven.plugins
[ERROR]Artifact-Id: maven-archetype-plugin
[ERROR]Version: 2.0-alpha-4
[ERROR]Referenced mojo: generate
[ERROR]brought in via: null
[ERROR]While building project:
[ERROR]Group-Id: org.apache.maven
[ERROR]Artifact-Id: super-pom
[ERROR]Version: 2.1
[ERROR]From file: null
[ERROR]Error message:Failed to load plugin. Reason: Unable to build project for plugin
'org.apache.maven.plugins:maven-archetype-plugin': POM 'org.apache.maven.plugins:maven-archetype-plugin' not found in
repository: Unable to download the artifact from any repository
[ERROR]  org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-4
[ERROR]from the specified remote repositories:
[ERROR]  central (http://repo1.maven.org/maven2)
[ERROR] for project org.apache.maven.plugins:maven-archetype-plugin
[ERROR]Root error message:Unable to download the artifact from any repository
------------------------------------------------------------------------
For more information, run with the -e flag
------------------------------------------------------------------------
BUILD FAILED
------------------------------------------------------------------------
Total time: < 1 second
Finished at: Thu Jan 15 10:34:05 MSK 2009
Final Memory: 49M/99M
------------------------------------------------------------------------
Comment 11 Milos Kleint 2009-01-15 07:52:17 UTC
it seems you don't have the patch yet in yoyr binaries, as the alpha-4 version seems to be used in your case. With the
patch it shall be alpha-3. The fact that the wizard finished is probably caused by the unavailability of the network
access to repo1.maven.org/maven2. That caused the build to fail early (before the actual code that locks up the wizard
gets called)

please reopen if you can reproduce in a production build that contains the patch.
Comment 12 Quality Engineering 2009-01-16 07:31:55 UTC
Integrated into 'main-golden', will be available in build *200901160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/592700487f89
User: Milos Kleint <mkleint@netbeans.org>
Log: #156751 when using embedded maven, just used archetype plugin alpha-3, as 4 locks the ui.
Comment 13 Ivan Sidorkin 2009-01-16 07:45:35 UTC
fix verified