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 250006 - Doing "Execute Goal with Modifiers..." & clicking OK must always have the exact same effect as "Execute Goal"
Summary: Doing "Execute Goal with Modifiers..." & clicking OK must always have the exa...
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-25 09:55 UTC by terje7601
Modified: 2015-01-25 09:55 UTC (History)
0 users

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 terje7601 2015-01-25 09:55:31 UTC
To reproduce:

* create a new Maven Java Application project
* add the following to your pom:
<scm>
    <developerConnection>scm:git:file://localhost/${project.basedir</developerConnection>
    <tag>HEAD</tag>
</scm>
<build>
    <plugins>
        <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.5.1</version>
        </plugin>
    </plugins>
</build>
* initialize a Git repository in the project
* do an initial commit
* run "release prepare" by double-clicking the goal in the Navigator
* right-click "release perform" & do "Execute Goal with Modifiers..."
* click OK (notice the "workingDirectory=" in the dialog)
* and...yep, your project is gone due to the workingDirectory property having been set to your project root by NetBeans

This is just one example (and a very frustrating one, if I may say) where doing "Execute Goal with Modifiers..." & clicking OK does obviously not have the same effect as just doing "Execute Goal".

NetBeans must guarantee that these 2 actions always have the exact same effect, on any Maven goal, at any time.