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 253704 - Not able to create Maven project with project Name
Summary: Not able to create Maven project with project Name
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 21:35 UTC by satory
Modified: 2016-09-13 09:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project displayin name (7.27 KB, image/png)
2016-09-03 01:33 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description satory 2015-07-23 21:35:12 UTC
[ JDK VERSION : 1.8.0_45 ]

According to the Netcat Maven Test:
Set up project node display with different pattern

You should be able to create the following:

STEPS:
1. Close all open projects (if any)
2. Create a new Maven project (GAV: com.company:sampleproject:2.0.1-SNAPSHOT
and name "Our sample project")
3. Go to Tools > Options > Java > Maven > Appearance
5. Set "Project node name" to "Default" and push OK


ACTUAL:
   Not able to use the name "Our sample project" since the name cannot have
spaces.

EXPECTED:
   name is a valid element in a pom file, maybe the wizard should provide an
optional name field?
Comment 1 Tomas Stupka 2015-07-27 14:45:09 UTC
is the test spec new? the wizard behaves like that at least for a couple of years, i'm wondering how comes that nobody discovered the problem before. 

Project Name from the wizard isn't actually mapped to <name> from the pom.xml. It seems to be determining the "name" of the folder in which the project is created, and the artifactId.
Comment 2 skygo 2015-08-26 13:39:03 UTC
Hi Tomas,
 I guess we (maven tribe) make some comment on the previous test runs but it's not always easy to handle. (Is it a change by design or a "bug"). I try to edit steps to make it more up to date
Comment 3 alied 2016-09-03 01:33:59 UTC
Created attachment 161883 [details]
Project displayin name
Comment 4 alied 2016-09-03 01:34:40 UTC
cannot reproduce:
Product Version: NetBeans IDE Dev (Build 201609020002)
Java: 1.8.0_102; Java HotSpot(TM) 64-Bit Server VM 25.102-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_102-b14

pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.company</groupId>
    <artifactId>sampleproject</artifactId>
    <version>2.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <name>Our sample project</name>
</project>
Comment 5 skygo 2016-09-13 09:25:15 UTC
Test was updated to change the name via properties of the project