You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jarek (Jira)" <ji...@apache.org> on 2019/11/13 08:20:00 UTC
[jira] [Created] (NETBEANS-3379) Unable to add module to the
current project as it is not of packaging type 'pom' -> [Help 1
Jarek created NETBEANS-3379:
-------------------------------
Summary: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1
Key: NETBEANS-3379
URL: https://issues.apache.org/jira/browse/NETBEANS-3379
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.2
Environment: Windows 10, Netbeans 11.2, JDK 1.8.0_202
Reporter: Jarek
When I try to create new Maven Ear Project in Netbeasn 11.2 like that:
Menu File -> New Project -> Java with Maven -> Enterprise Application -> NEXT (with defaults) -> Uncheck EJB and Web App Modules -> FINISH
I got following ERROR:
cd C:\Tmp\test; JAVA_HOME=c:\\Bin\\Java\\CURRENT_JDK M2_HOME=c:\\Bin\\Other\\maven cmd /c "\"\"c:\\Bin\\Other\\maven\\bin\\mvn.cmd\" -DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 -DarchetypeVersion=1.3 -DarchetypeRepository=[https://repo.maven.apache.org/maven2]-DgroupId=test -DartifactId=test-ear -Dversion=0.0.1 -Dbasedir=C:\\Tmp\\test -Darchetype.interactive=false -Dmaven.ext.class.path=c:\\Bin\\Other\\Netbeans_11\\java\\maven-nblib\\netbeans-eventspy.jar --batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate\""
Scanning for projects...
-----------------------------< test:test >------------------------------
Building test-0.0.1 0.0.1
--------------------------------[ war ]---------------------------------
>>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ test >>>
--- maven-dependency-plugin:2.6:copy (default) @ test ---
<<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ test <<<
--- maven-archetype-plugin:2.4:generate (default-cli) @ test ---
Generating project in Batch mode
Archetype defined by properties
----------------------------------------------------------------------------
Using following parameters for creating project from Archetype: webapp-javaee8:1.3
----------------------------------------------------------------------------
Parameter: groupId, Value: test
Parameter: artifactId, Value: test-ear
Parameter: version, Value: 0.0.1
Parameter: package, Value: ${groupId}.${artifactId}
Parameter: packageInPathFormat, Value: ${groupId}/${artifactId}
lis 13, 2019 7:22:14 AM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path '.'
Parameter: package, Value: test.test-ear
Parameter: version, Value: 0.0.1
Parameter: groupId, Value: test
Parameter: artifactId, Value: test-ear
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.244 s
Finished at: 2019-11-13T07:22:14+01:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project test: org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException]
That problem does not occure in NetBeans 8.2:
cd C:\Tmp\test2; JAVA_HOME=c:\\Bin\\Java\\CURRENT_JDK M2_HOME=c:\\Bin\\Other\\maven cmd /c "\"\"c:\\Bin\\Other\\maven\\bin\\mvn.cmd\" -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=ear-javaee7 -DarchetypeVersion=1.0 -DarchetypeRepository=[http://repo.maven.apache.org/maven2]-DgroupId=test2 -DartifactId=test2-ear -Dversion=0.0.1 -Dbasedir=C:\\Tmp\\test2 -Darchetype.interactive=false -Dmaven.ext.class.path=c:\\Bin\\Other\\Netbeans_8\\java\\maven-nblib\\netbeans-eventspy.jar --batch-mode archetype:generate\""
Scanning for projects...
----------------------------< test2:test2 >-----------------------------
Building test2 0.0.1
--------------------------------[ pom ]---------------------------------
>>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ test2 >>>
<<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ test2 <<<
--- maven-archetype-plugin:3.0.1:generate (default-cli) @ test2 ---
Generating project in Batch mode
Archetype repository not defined. Using the one from [org.codehaus.mojo.archetypes:ear-javaee7:1.0] found in catalog remote
----------------------------------------------------------------------------
Using following parameters for creating project from Archetype: ear-javaee7:1.0
----------------------------------------------------------------------------
Parameter: groupId, Value: test2
Parameter: artifactId, Value: test2-ear
Parameter: version, Value: 0.0.1
Parameter: package, Value: test2
Parameter: packageInPathFormat, Value: test2
Parameter: package, Value: test2
Parameter: version, Value: 0.0.1
Parameter: groupId, Value: test2
Parameter: artifactId, Value: test2-ear
Project created from Archetype in dir: C:\Tmp\test2\test2-ear
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 5.455 s
Finished at: 2019-11-13T07:39:11+01:00
------------------------------------------------------------------------
Please notice that Netbeans 8.2 use "maven-archetype-plugin:3.0.1" and Netbeans 11.2 use "maven-archetype-plugin:2.4".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists