You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Luca Mambretti (JIRA)" <ji...@apache.org> on 2018/04/04 19:30:00 UTC

[jira] [Commented] (NETBEANS-568) New Archetype wizard Test Case fails to create project

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

Luca Mambretti commented on NETBEANS-568:
-----------------------------------------

I've tested this with different archetypes and found that the javafx archetype works as expected, but the quickstart mentioned in the test case complains that the required directory already exists.

It seems to me that NetBeans creates the project directory beforehand and the archetype then fails because it wants to create it by itself.

If I manually delete the empty folder and re-run the command from within NetBeans (using the already opened output window) everything works, so either the problem lies in the archetype itself, but I doubt that since it's probably the most basic archetype existing, or the empty directory should not be created if creating a project from archetype.

> New Archetype wizard Test Case fails to create project
> ------------------------------------------------------
>
>                 Key: NETBEANS-568
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-568
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 9.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-linux-386-on-20180402)
> Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> Runtime: Java(TM) SE Runtime Environment 10+46
> System: Linux version 4.15.14 running on amd64; UTF-8; en_US (nb)
> User directory: /home/alied/.netbeans/beta
> Cache directory: /home/alied/.cache/netbeans/beta
>            Reporter: Alied Pérez Martínez
>            Priority: Blocker
>              Labels: maven
>
> The test case "New Archetype wizard" fails to create the requested project
> build log:
> {noformat}
> cd /home/alied/NetBeansProjects/netcat90; JAVA_HOME=/home/alied/Downloads/jdk-10 /home/alied/Downloads/netbeans/java/maven/bin/mvn -DarchetypeGroupId=org.jvnet.hudson.tools -DarchetypeArtifactId=maven-hpi-plugin -DarchetypeVersion=3.0.1 -DarchetypeRepository=https://repo.maven.apache.org/maven2/ -DgroupId=com.mycompany -DartifactId=MvnSampleProject -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mvnsampleproject -Dbasedir=/home/alied/NetBeansProjects/netcat90 -Darchetype.interactive=false --batch-mode archetype:generate
> Scanning for projects...
>                                                                         
> ------------------------------------------------------------------------
> Building Maven Stub Project (No POM) 1
> ------------------------------------------------------------------------
> >>> maven-archetype-plugin:2.3:generate (default-cli) > generate-sources @ standalone-pom >>>
> <<< maven-archetype-plugin:2.3:generate (default-cli) < generate-sources @ standalone-pom <<<
> --- maven-archetype-plugin:2.3: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: maven-hpi-plugin:3.0.1
> ----------------------------------------------------------------------------
> Parameter: basedir, Value: /home/alied/NetBeansProjects/netcat90
> Parameter: package, Value: com.mycompany.mvnsampleproject
> Parameter: groupId, Value: com.mycompany
> Parameter: artifactId, Value: MvnSampleProject
> Parameter: packageName, Value: com.mycompany.mvnsampleproject
> Parameter: version, Value: 1.0-SNAPSHOT
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 1.011 s
> Finished at: 2018-04-02T15:34:28-03:00
> Final Memory: 12M/54M
> ------------------------------------------------------------------------
> Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: Directory MvnSampleProject 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
> {noformat}
> No files are created inside the project directory:
> {noformat}
> alied@development:~/NetBeansProjects/netcat90/MvnSampleProject$ ls -la
> total 8
> drwxr-xr-x 2 alied alied 4096 Apr  2 15:34 .
> drwxr-xr-x 3 alied alied 4096 Apr  2 15:34 ..
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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