title: Maven - Is `maven-archetype-simple` a valid archetype?
body: <p>Usually, I create maven jar project with archetype <a href="https://maven.apache.org/archetypes/maven-archetype-quickstart/" rel="nofollow noreferrer"><code>maven-archetype-quickstart</code></a>, it works well.</p>
  
  <p>But I want to create Maven project with no sample <code>App.java</code> class, thus I tried <a href="https://maven.apache.org/archetypes/maven-archetype-simple/" rel="nofollow noreferrer"><code>maven-archetype-simple</code></a> archetype, and get error.</p>
  
  <p><strong>Maven command:</strong></p>
  
  <p><code>mvn archetype:generate -DgroupId=eric -DartifactId=hello -Dversion=0.1 -DarchetypeArtifactId=maven-archetype-simple -DinteractiveMode=false -X -DarchetypeCatalog=local</code> </p>
  
  <p><strong>Error tip:</strong></p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
    (default-cli) on project standalone-pom: The defined artifact is not
    an archetype -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
    execute goal
    org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
    (default-cli) on project standalone-pom: The defined artifact is not
    an archetype  at
    org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      at
    org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at
    org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      at
    org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at
    org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at
    org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)   at
    org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)    at
    org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)  at
    org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)  at
    org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)   at
    org.apache.maven.cli.MavenCli.main(MavenCli.java:199)     at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)     at
    org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at
    org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at
    org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at
    org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoFailureException: The defined
    artifact is not an archetype  at
    org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205)
      at
    org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      at
    org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      ... 20 more Caused by:
    org.apache.maven.archetype.exception.ArchetypeGenerationConfigurationFailure:
    The defined artifact is not an archetype  at
    org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:150)
      at
    org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:189)
      ... 22 more [ERROR]  [ERROR]  [ERROR] For more information about the
    errors and possible solutions, please read the following articles:
    [ERROR] [Help 1]
    <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" rel="nofollow noreferrer">http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException</a></p>
  </blockquote>
  
  <p><strong>The questions are:</strong></p>
  
  <ul>
  <li>Is <code>maven-archetype-simple</code> a valid archetype?<br>
  In the official doc of maven, it says <code>maven-archetype-simple</code> is a archetype, refer: <a href="https://maven.apache.org/guides/introduction/introduction-to-archetypes.html" rel="nofollow noreferrer">https://maven.apache.org/guides/introduction/introduction-to-archetypes.html</a> , but it won't work in my test, so get confused.</li>
  <li>How to create Maven project without the generated code <code>App.java</code>?</li>
  </ul>