Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-326

fail on mvn install with a archetype created from create-from-project command

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-5
    • Fix Version/s: 2.0
    • Component/s: Archetypes
    • Labels:
      None
    • Environment:
      Archetype plugin 2.0-alpha-6,
      OS name: "windows 2003" version: "5.2" arch: "x86" Family: "windows" , maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) , jdk 1.6.0_20

      Description

      Creatin archetype form my projects was working 2 days ago, now it is broken ^^

      Try to create a project "foo" with "mvn archetype:generate",
      choose 16 for exemple, and follow documentation steps :

      • "mvn archetype:create-from-project"
      • cd target/generated-sources/archetype/
      • mvn install

      stack trace :

      [INFO] [archetype:integration-test {execution: default-integration-test}]
      F:\dev\tmp\test\foo\target\generated-sources\archetype\target\test-classes\projects\basic\archetype.properties
      [ERROR] Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
              Property archetype.goals is missing.
      org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
              Property archetype.goals is missing.
              at org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.generateArchetype(DefaultFilesetArchetypeGenerator.java:127)
              at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processFileSetArchetype(DefaultArchetypeGenerator.java:136)
              at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:106)
              at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
              at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:215)
              at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:92)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Test basic failed
      [Ljava.lang.StackTraceElement;@864e43
      org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
              Property archetype.goals is missing.

        Activity

        mid491 created issue -
        Hervé Boutemy made changes -
        Field Original Value New Value
        Description Creatin archetype form my projects was working 2 days ago, now it is broken ^^

        Try to create a project "foo" with "mvn archetype:generate",
        choose 16 for exemple, and follow documentation steps :
        - "mvn archetype:create-from-project"
        - cd target/generated-sources/archetype/
        - mvn install

        stack trace :

        [INFO] [archetype:integration-test {execution: default-integration-test}]
        F:\dev\tmp\test\foo\target\generated-sources\archetype\target\test-classes\projects\basic\archetype.properties
        [ERROR] Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.
        org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.
                at org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.generateArchetype(DefaultFilesetArchetypeGenerator.java:127)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processFileSetArchetype(DefaultArchetypeGenerator.java:136)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:106)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
                at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:215)
                at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:92)
                at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
                at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
                at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
                at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
                at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
                at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Test basic failed
        [Ljava.lang.StackTraceElement;@864e43
        org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.
        Creatin archetype form my projects was working 2 days ago, now it is broken ^^

        Try to create a project "foo" with "mvn archetype:generate",
        choose 16 for exemple, and follow documentation steps :
        - "mvn archetype:create-from-project"
        - cd target/generated-sources/archetype/
        - mvn install

        stack trace :
        {noformat}
        [INFO] [archetype:integration-test {execution: default-integration-test}]
        F:\dev\tmp\test\foo\target\generated-sources\archetype\target\test-classes\projects\basic\archetype.properties
        [ERROR] Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.
        org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.
                at org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator.generateArchetype(DefaultFilesetArchetypeGenerator.java:127)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processFileSetArchetype(DefaultArchetypeGenerator.java:136)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:106)
                at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:149)
                at org.apache.maven.archetype.mojos.IntegrationTestMojo.processIntegrationTest(IntegrationTestMojo.java:215)
                at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:92)
                at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
                at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
                at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
                at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
                at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
                at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
                at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Test basic failed
        [Ljava.lang.StackTraceElement;@864e43
        org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype fr.mycompany.foo:foo-archetype:1.0-SNAPSHOT is not configured
                Property archetype.goals is missing.{noformat}
        Hervé Boutemy made changes -
        Fix Version/s 2.0 [ 14604 ]
        Hide
        mid491 added a comment -

        this is on 2.0-alpha-6-SNAPSHOT version, work fine with 2.0-alpha-5

        Show
        mid491 added a comment - this is on 2.0-alpha-6-SNAPSHOT version, work fine with 2.0-alpha-5
        Hide
        Kyle Kirkland added a comment -

        Just to provide additional confirmation of this issue, I'm experiencing the exact same thing with 2.0-alpha-6-SNAPSHOT.

        Show
        Kyle Kirkland added a comment - Just to provide additional confirmation of this issue, I'm experiencing the exact same thing with 2.0-alpha-6-SNAPSHOT.
        Hide
        Hervé Boutemy added a comment -

        fixed in r1026618

        Show
        Hervé Boutemy added a comment - fixed in r1026618
        Hervé Boutemy made changes -
        Assignee Herve Boutemy [ hboutemy ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
        Mark Thomas made changes -
        Workflow jira [ 12716764 ] Default workflow, editable Closed status [ 12748115 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
        Mark Thomas made changes -
        Workflow jira [ 12954213 ] Default workflow, editable Closed status [ 12991523 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        37d 23h 6m 1 Hervé Boutemy 23/Oct/10 10:22

          People

          • Assignee:
            Hervé Boutemy
            Reporter:
            mid491
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development