maven can't find archetype in my repository

what is maven
maven tutorial
maven download
maven java
maven repository
maven commands
maven -u option
maven central

I'm trying to create my own maven archetype. For now, I'm going through this tutorial [here][1] without success. I'm able to build the archetype project okay, but when I try to generate a project from that archetype I get the error below. Maven can't seem to find the archetype I created. Can any one spot my problem? Is there some other recomended tutorial for createing a maven archetype? Thanks.

Maven version 3.0.3

Build Error:

AR3Y35-LAPTOP:EclipseWS Albert$ mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeGroupId=com.myarch.archetypes -DarchetypeArtifactId=component-archetype -DinteractiveMode=false 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] Specified archetype not found.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.389s
[INFO] Finished at: Fri Sep 23 02:33:55 PDT 2011
[INFO] Final Memory: 7M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.myarch.archetypes:component-archetype:1.0) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
AR3Y35-LAPTOP:EclipseWS Albert$ 
prototype pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.myarch.templates</groupId>
    <artifactId>component-template</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>

  <groupId>${groupId}</groupId>
  <artifactId>${artifactId}</artifactId>
  <version>${version}</version>

  <name>${group}</name>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

</project>
archetype.xml
<archetype xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd">
  <id>component-archetype</id>
  <sources>
    <source>src/main/java/App.java</source>
  </sources>
  <testSources>
    <source>src/test/java/AppTest.java</source>
  </testSources>
  <allowPartial>true</allowPartial>
</archetype>

For using a customized archetype, there has to be an entry made in the archetype-catalog.xml file which resides in the .m2/repository/archetype-catalog.xml in your home directory. For doing so, you need to install the archetype by using the following command:

mvn install archetype:update-local-catalog

After that, you will be able to use your new archetype while creating a new Maven project with the mvn archetype:generate command.

Maven – Welcome to Apache Maven, If you think that Maven could help your project, you can find out more information in the "About Maven" section of the navigation: this includes an in-depth  Maven comes with a mechanism that your project's clients can use to download any JARs required for building your project from a central JAR repository much like Perl's CPAN. This allows users of Maven to reuse JARs across projects and encourages communication between projects to ensure that backward compatibility issues are dealt with.


I needed to include -DarchetypeVersion={my.archetype.version} in the mvn archetpe:generate command

Maven – Maven in 5 Minutes - Apache Maven, If you do not know how to do this, please ask someone at your office, school, etc or pay someone to explain this to you. The Maven mailing lists are not the best  Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. If you think that Maven could help your project, you can find out more information in the "About Maven" section of the navigation: this includes an in-depth description of what Maven is and a list of some of its main features .


It's telling you :

[WARNING] Specified archetype not found.

Did you install your archetype with

mvn install

before trying to use it ?

Maven – Introduction to the POM - Apache Maven, And we do so by specifying the fully qualified artifact name of the parent POM. With this setup, our module can now inherit some of the properties of our parent  In short terms we can tell maven is a tool that can be used for building and managing any Java-based project. maven make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project.


Executing the mvn install resolves the problem, after executing that from idea the problem got resolved.

Getting Started, Level up your Java code and explore what Spring can do for you. The Maven Disease Surveillance and Outbreak Management System helps health departments collect valuable data and make informed decisions to better protect the community against a wide variety of health crises. No interaction is too small when tracing infection exposures—every handshake matters.


From my own experience, You have to search for your groupId is accessible in the below link or not

http://repo.maven.apache.org/maven2/archetype-catalog.xml

I found out I had typo error then I've got error.

How does a maven repository work?, How does maven locate and resolve dependencies? Maven Repository Layout mapping; Rules for $groupId; Primary Artifacts. pom; jar. A project management tool such as Maven provides a superset of features found in a build tool. In addition to providing build capabilities, Maven can also run reports, generate a web site, and facilitate communication among members of a working team.


Apache Maven, You can also add a custom jar file as a dependency using the Maven scope system when you define your dependency. However, note that this dependency will  On-demand access to virtual care and services built specifically for you—all in one app. Maven is creating a more inclusive and supportive system for women and families. A personalized platform for every family Since 2014, we've supported 5 million people at every stage of their journey.


Maven dependencies - Help, You can also add dependencies to the parent POM that will be inherited by the sub projects. Parent POM: added dependency. Open Maven tool window to see  ZTE Maven Android smartphone. Announced Jun 2015. Features 4.5″ IPS LCD display, Snapdragon 410 chipset, 5 MP primary camera, 2100 mAh battery, 8 GB storage, 1000 MB RAM.


Maven - Help, While this can make it easier to understand any given Maven build, as long as you don't have any special requirements, it also makes it  The core of the JWebMP library allowing you to create enterprise grade level applications. Last Release on Feb 22, 2020. JWebMP Angular JS 24 usages. com.jwebmp.plugins.angular » jwebmp-plugins-angularjs » 1.0.2.10-jre13. Provides Angular JS Data Binding for JWebMP. Last Release on Feb 22, 2020. File Worker 21 usages.