[ 
https://issues.apache.org/jira/browse/NETBEANS-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernie Rael updated NETBEANS-3875:
---------------------------------
    Attachment: jersey-quickstart.PNG

> Jersey project creation from archetype fails
> --------------------------------------------
>
>                 Key: NETBEANS-3875
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3875
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 11.3
>            Reporter: Alessandro Falappa
>            Priority: Major
>         Attachments: jersey-quickstart.PNG
>
>
> # New Project > Java with Maven > Project from Archetype
>  # Search forĀ *jersey*
>  # Select the first {{jersey-quickstart-archetype}} archetype item (group id: 
> {{org.glassfish.jersey.archetypes}} version: {{2.30}})
>  # Press _Next_
>  # Choose foobar as *Project Name*
>  # Fill the other field and choose an empty directory as *Project Location*
>  # Press _Finish_
> The project generation fails complaining a folder with name foobar exists. An 
> empty foobar folder is left in the choosen project location.
> {code:java}
> ------------------------------------------------------------------------
> Building Maven Stub Project (No POM) 1
> ------------------------------------------------------------------------>>> 
> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ 
> standalone-pom >>><<< maven-archetype-plugin:2.4:generate (default-cli) < 
> generate-sources @ standalone-pom <<<--- maven-archetype-plugin:2.4:generate 
> (default-cli) @ standalone-pom ---
> Generating project in Batch mode
> Archetype defined by properties
> ----------------------------------------------------------------------------
> Using following parameters for creating project from Old (1.x) Archetype: 
> jersey-quickstart-webapp:2.30
> ----------------------------------------------------------------------------
> Parameter: basedir, Value: C:\Users\falappa\Documents\NetBeansProjects
> Parameter: package, Value: af.foobar
> Parameter: groupId, Value: af
> Parameter: artifactId, Value: foobar
> Parameter: packageName, Value: af.foobar
> Parameter: version, Value: 1.0-SNAPSHOT
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 1.484 s
> Finished at: 2020-02-13T14:16:58+01:00
> Final Memory: 11M/40M
> ------------------------------------------------------------------------
> Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on 
> project standalone-pom: Directory foobar already exists - please run from a 
> clean directory -> [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{code}
> Probably the Maven from archetype wizard creates the folder prior to maven 
> archetype execution.
> Not sure if this can be considered a bug in the jersey archetype instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to