[jira] [Commented] (NETBEANS-3379) Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1

2021-10-18 Thread Cristian Cubillos Bravo (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17429984#comment-17429984
 ] 

Cristian Cubillos Bravo commented on NETBEANS-3379:
---

Still happen in Apache NetBeans 12.5 :(

> 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: Jay
>Priority: Major
>
> 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 <<<
>  
>  
> --- 

[jira] [Commented] (NETBEANS-3379) Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1

2021-01-03 Thread Francesco Savino (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17257859#comment-17257859
 ] 

Francesco Savino commented on NETBEANS-3379:


Also for me is still a Bug

> 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: Jay
>Priority: Major
>
> 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 <<<
>  
>  
> --- 

[jira] [Commented] (NETBEANS-3379) Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1

2020-11-03 Thread Frederik Mortensen (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17225342#comment-17225342
 ] 

Frederik Mortensen commented on NETBEANS-3379:
--

Still a bug in NetBeans 12 a year later.

> 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: Jay
>Priority: Major
>
> 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 <<<
>  
>  
> ---