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 226348 - Strange behavior around servers in the maven projects
Summary: Strange behavior around servers in the maven projects
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P2 normal with 2 votes (vote)
Assignee: Martin Janicek
URL:
Keywords:
: 226649 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-19 14:03 UTC by Martin Fousek
Modified: 2013-04-02 14:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2013-02-19 14:03:54 UTC
Product Version: NetBeans IDE Dev (Build 20130218-0f0525fff6ef)
(build form the javaee7 branch)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_06-b24
System: Linux version 3.2.0-27-generic running on amd64; UTF-8; en

When I create new project and setup the server, the server is not set and by going thru project properties and by project run I'm always warned that the project was not set.

Steps to reproduce:
1, create new Maven Project and set any server (I used GF 3.1.2.2)
2, go to the project properties->Run tab and you will see your server
but
3, add JSF framework and you will see no server warning
4, close the properties and invoke Run on the project
-> No server selected appears

As you saw I tried more ways but I'm not able to set the server into my maven project. Thanks.
Comment 1 Martin Fousek 2013-02-25 12:56:22 UTC
*** Bug 226649 has been marked as a duplicate of this bug. ***
Comment 2 Martin Janicek 2013-02-28 12:59:10 UTC
Should be fixed in: web-main #c68126fe76f9 (javaee7 branch)
Comment 3 Martin Fousek 2013-02-28 13:36:43 UTC
Thanks Martin.
Comment 4 Quality Engineering 2013-03-05 01:49:59 UTC
Integrated into 'main-golden', will be available in build *201303042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c68126fe76f9
User: Martin Janicek <mjanicek@netbeans.org>
Log: #226348 - Strange behavior around servers in the maven projects
Comment 5 Petr Jiricka 2013-03-18 12:14:59 UTC
I can still reproduce in the latest trunk builds (and I suspect also in the javaee7 builds). Did this break again? I am using GF 4 dev/promoted build.
Comment 6 Martin Janicek 2013-03-18 12:41:58 UTC
Ok, I'll take a look at it later this week
Comment 7 Martin Fousek 2013-03-25 13:45:30 UTC
Just for the record, works for me in the javaee7 branch.
Comment 8 Martin Janicek 2013-04-02 08:10:28 UTC
Reproducible in trunk, I'm working on it..
Comment 9 Martin Janicek 2013-04-02 14:35:36 UTC
The regression in trunk was caused by my changeset (web-main #889e29c0ae19) which was rewriting the code to use ProjectUtils.getPreferences instead of deprecated AuxiliaryProperties. It turns out that these two concepts are not completely interchangeable and thus I had to rewrite the rest of the maven.j2ee code to use the same preferences storage.

Long story short: web-main #a16963ec8744 should fix the problem..