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

Alex lewis commented on NETBEANS-2253:
--------------------------------------

This appears to be an issue with the Hudson Archetype. You can recreate this 
issue with Maven outside of netbeans.
 # Open terminal in a directory.
 # In that directory make a directory called "hudson-test"
 # Run the command below, the build will fail. I suspect the failure is due to 
archetype project.

Command:

mvn -DarchetypeGroupId=org.eclipse.hudson.tools\

                        -DarchetypeArtifactId=maven-hpi-plugin\

                        -DarchetypeVersion=3.0.3\

                        
-DarchetypeRepository=https://repo.maven.apache.org/maven2/\

                        -DgroupId=test\

                        -DartifactId=hudson-test\

                        -Dversion=1.0-SNAPSHOT\

                        -Dpackage=test.hudson\

                        -Dbasedir=.\

                        -Darchetype.interactive=false\

                        --batch-mode 
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate

 

Using other Archetypes appear to detect and ignore the pre-existing, albeit 
empty, directory.

 

> New Archetype wizard fails
> --------------------------
>
>                 Key: NETBEANS-2253
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2253
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 11.0
>            Reporter: Bailey Campbell
>            Assignee: Alex lewis
>            Priority: Major
>
> h3. Steps
>  # Go to main menu File | New Project
>  # In New Project wizard select Maven > Project from archetype and push Next
>  # Type archetype name (or part) into search field (e.g. "hudson")
>  # Select appropriate archetype and proceed with creating new project
> h3. Expected result:
> Project from archetype is succesfully created.
>  
> Actual Result:
>  
> Build fails, error message indicates an existing directory but that directory 
> does not exist before the project is created.
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 6.919 s
> Finished at: 2019-03-13T16:14:02-03:00
> Final Memory: 13M/109M
> ------------------------------------------------------------------------
> Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on 
> project standalone-pom: Directory mavenproject4 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
>  



--
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