This is an automated email from the ASF dual-hosted git repository.
mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new cf5e6c3b39 maven project wizard should set groupId #4343.
new 07a7166200 Merge pull request #4356 from mbien/set_group_id
cf5e6c3b39 is described below
commit cf5e6c3b393bd5f370adb633b84bf99c424a897d
Author: Michael Bien <[email protected]>
AuthorDate: Sat Jul 9 13:58:56 2022 +0200
maven project wizard should set groupId #4343.
- the groupId text field was ignored so far
- this fixes a bug which breaks the project if no package is provided
- since the package is used as fallback to generate a groupId
which hid the issue
---
.../maven/newproject/idenative/IDENativeMavenWizardIterator.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/java/maven/src/org/netbeans/modules/maven/newproject/idenative/IDENativeMavenWizardIterator.java
b/java/maven/src/org/netbeans/modules/maven/newproject/idenative/IDENativeMavenWizardIterator.java
index c528b93ecd..b3913e19ed 100644
---
a/java/maven/src/org/netbeans/modules/maven/newproject/idenative/IDENativeMavenWizardIterator.java
+++
b/java/maven/src/org/netbeans/modules/maven/newproject/idenative/IDENativeMavenWizardIterator.java
@@ -94,6 +94,8 @@ public abstract class IDENativeMavenWizardIterator implements
WizardDescriptor.I
return new FileBuilder(w.getTemplate().getPrimaryFile(),
w.getTargetFolder().getPrimaryFile().getParent()).
param(TemplateUtils.PARAM_PACKAGE, (String)
wiz.getProperty("package")).
param(TemplateUtils.PARAM_PACKAGING, (String) this.packaging).
+ param(TemplateUtils.PARAM_GROUP_ID, (String)
wiz.getProperty("groupId")).
+ param(TemplateUtils.PARAM_ARTIFACT_ID, (String)
wiz.getProperty("artifactId")).
param(TemplateUtils.PARAM_VERSION, (String)
wiz.getProperty("version")).
defaultMode(FileBuilder.Mode.COPY).
name(w.getTargetName()).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists