Coder Social home page Coder Social logo

Comments (2)

goyalyashpal avatar goyalyashpal commented on May 25, 2024

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Java Projects' or 'Maven' panel on the primary sidebar
  2. Click on '+' icon to 'Create Maven Project'

~

  1. In the 'Create Maven Project' flyer so opened, type 'june' then select 'More...'
  2. Select webapp-jakartaee10 io.github.juneau001
  3. Select latest version: 1.0.1
  4. Input group id of your project files: gid
  5. Input artifact id (also as project name) of your project: aid
  6. Select a directory and immediately maximise the vs code window

~

  1. Store this init task log from terminal panel in a vsc.log file
  2. Create a new project & select same maven archetype of web in Apache Netbeans 19 & store its init as nb.log
    (don't worry, i will be attaching it here - the step is mentioned just for description)
  • Compare the vsc.log & nb.log & the pom files of these

Additional context

Add any other context about the problem here.

diffs of [adjusted] init logs of these:
--- vsc\aid\pom.xml
+++ nb\aid\pom.xml
--- <unnamed>
+++ <unnamed>
@@ -1,14 +1,21 @@
-"
-"d:\ProgramFiles\vsc\vsc_ext\vscjava.vscode-maven-0.42.0-universal\resources\maven-wrapper\mvnw.cmd"
-org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate
--DarchetypeArtifactId="maven-archetype-webapp"
--DarchetypeGroupId="org.apache.maven.archetypes"
--DarchetypeVersion="1.4"
+cmd /c "\
+"D:\ProgramFiles\NetBeans-19\netbeans\java\maven\bin\mvn.cmd\"
+-DarchetypeRepository=https://repo.maven.apache.org/maven2
+org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate
+-DarchetypeArtifactId="webapp-jakartaee10"
+-DarchetypeGroupId=io.github.juneau001
+-DarchetypeVersion="1.1.0"
 -DgroupId="gid"
 -DartifactId="aid"
--DoutputDirectory="SAMPLEDIR"
+-Dversion=1.0-SNAPSHOT
+-Dpackage=gid.aid
+-Dbasedir="SAMPLEDIR"
+-Darchetype.interactive=false
+-DarchetypeCatalog=local
+-Dmaven.ext.class.path="D:\ProgramFiles\NetBeans-19\netbeans\java\maven-nblib\netbeans-eventspy.jar"
+--batch-mode
+--no-transfer-progress
 "
-
 
 Scanning for projects...
 
@@ -16,26 +23,17 @@
 Building Maven Stub Project (No POM) 1
 --------------------------------[ pom ]---------------------------------
 
->>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
+>>> archetype:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>
 
-<<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
+<<< archetype:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<
 
 
---- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
-Generating project in Interactive mode
-Archetype repository not defined. Using the one from [io.github.juneau001:webapp-jakartaee10:1.1.0] found in catalog remote
-Using property: groupId = gid
-Using property: artifactId = aid
-[INTERACT] Define value for property 'version' 1.0-SNAPSHOT: :
-[INTERACT] Define value for property 'package' gid.aid: :
-[INTERACT] Confirm properties configuration:
-[INTERACT] groupId: gid
-[INTERACT] artifactId: aid
-[INTERACT] version: 1.0-SNAPSHOT
-[INTERACT] package: gid.aid
-[INTERACT]  Y: :
+--- archetype:3.2.1:generate (default-cli) @ standalone-pom ---
+Generating project in Batch mode
+Archetype not found in any catalog. Falling back to central repository.
+Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
 ----------------------------------------------------------------------------
-Using following parameters for creating project from Archetype: webapp-jakartaee10:1.0.1
+Using following parameters for creating project from Archetype: webapp-jakartaee10:1.1.0
 ----------------------------------------------------------------------------
 Parameter: groupId, Value: gid
 Parameter: artifactId, Value: aid
@@ -50,6 +48,6 @@
 ------------------------------------------------------------------------
 BUILD SUCCESS
 ------------------------------------------------------------------------
-Total time:  15:16 min
-Finished at: 2023-11-16T07:29:37+00:00
+Total time:  3.939 s
+Finished at: 2023-11-16T03:52:19+00:00
 ------------------------------------------------------------------------
vsc init flags [pretty printed]
"
"d:\ProgramFiles\vsc\vsc_ext\vscjava.vscode-maven-0.42.0-universal\resources\maven-wrapper\mvnw.cmd"
org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate
-DarchetypeArtifactId="maven-archetype-webapp"
-DarchetypeGroupId="org.apache.maven.archetypes"
-DarchetypeVersion="1.4"
-DgroupId="gid"
-DartifactId="aid"
-DoutputDirectory="SAMPLEDIR"
"

vsc init log [adjusted]
Scanning for projects...

------------------< org.apache.maven:standalone-pom >-------------------
Building Maven Stub Project (No POM) 1
--------------------------------[ pom ]---------------------------------

>>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>

<<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<


--- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
Generating project in Interactive mode
Archetype repository not defined. Using the one from [io.github.juneau001:webapp-jakartaee10:1.1.0] found in catalog remote
Using property: groupId = gid
Using property: artifactId = aid
[INTERACT] Define value for property 'version' 1.0-SNAPSHOT: :
[INTERACT] Define value for property 'package' gid.aid: :
[INTERACT] Confirm properties configuration:
[INTERACT] groupId: gid
[INTERACT] artifactId: aid
[INTERACT] version: 1.0-SNAPSHOT
[INTERACT] package: gid.aid
[INTERACT]  Y: :
----------------------------------------------------------------------------
Using following parameters for creating project from Archetype: webapp-jakartaee10:1.0.1
----------------------------------------------------------------------------
Parameter: groupId, Value: gid
Parameter: artifactId, Value: aid
Parameter: version, Value: 1.0-SNAPSHOT
Parameter: package, Value: gid.aid
Parameter: packageInPathFormat, Value: gid/aid
Parameter: package, Value: gid.aid
Parameter: groupId, Value: gid
Parameter: artifactId, Value: aid
Parameter: version, Value: 1.0-SNAPSHOT
Project created from Archetype in dir: SAMPLEDIR
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time:  15:16 min
Finished at: 2023-11-16T07:29:37+00:00
------------------------------------------------------------------------

nb init flags [prettyprinted]
cd sampledir; 
JAVA_HOME=Java\\jdk-20
cmd /c "\
"D:\ProgramFiles\NetBeans-19\netbeans\java\maven\bin\mvn.cmd\"
-DarchetypeRepository=https://repo.maven.apache.org/maven2
org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate
-DarchetypeArtifactId="webapp-jakartaee10"
-DarchetypeGroupId=io.github.juneau001
-DarchetypeVersion="1.1.0"
-DgroupId="gid"
-DartifactId="aid"
-Dversion=1.0-SNAPSHOT
-Dpackage=gid.aid
-Dbasedir="SAMPLEDIR"
-Darchetype.interactive=false
-DarchetypeCatalog=local
-Dmaven.ext.class.path="D:\ProgramFiles\NetBeans-19\netbeans\java\maven-nblib\netbeans-eventspy.jar"
--batch-mode
--no-transfer-progress
"

nb init log [adjusted]
Scanning for projects...

------------------< org.apache.maven:standalone-pom >-------------------
Building Maven Stub Project (No POM) 1
--------------------------------[ pom ]---------------------------------

>>> archetype:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>

<<< archetype:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<


--- archetype:3.2.1:generate (default-cli) @ standalone-pom ---
Generating project in Batch mode
Archetype not found in any catalog. Falling back to central repository.
Add a repository with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
----------------------------------------------------------------------------
Using following parameters for creating project from Archetype: webapp-jakartaee10:1.1.0
----------------------------------------------------------------------------
Parameter: groupId, Value: gid
Parameter: artifactId, Value: aid
Parameter: version, Value: 1.0-SNAPSHOT
Parameter: package, Value: gid.aid
Parameter: packageInPathFormat, Value: gid/aid
Parameter: package, Value: gid.aid
Parameter: groupId, Value: gid
Parameter: artifactId, Value: aid
Parameter: version, Value: 1.0-SNAPSHOT
Project created from Archetype in dir: SAMPLEDIR
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time:  3.939 s
Finished at: 2023-11-16T03:52:19+00:00
------------------------------------------------------------------------

from vscode-maven.

goyalyashpal avatar goyalyashpal commented on May 25, 2024

interesting that apache netbeans doesn't use org.apache.maven.archetypes/maven-archetype-webapp but instead a third party's io.github.juneau001/webapp-jakartaee10 lol.

even they know that getting their parent group's other project to update would be hard & stalled effort ๐Ÿ˜†

from vscode-maven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.