Created a Maven archetype for Bukkit plugins at https://github.com/arun-gupta/bukkit-archetype. The archetype can be installed locally and used to generated the project correctly as:
mvn --batch-mode archetype:generate -DarchetypeGroupId=org.devoxx4kids.bukkit.plugins -DarchetypeArtifactId=bukkit-template -DartifactId=sample
Staged the plugin following the Sonatype Maven Repository Guide up to 7a.3 at:
and saw the output as:
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/devoxx4kids/bukkit/plugins/bukkit-template/1.0/bukkit-template-1.0.pom.asc (536 B at 0.3 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/devoxx4kids/bukkit/plugins/bukkit-template/1.0/bukkit-template-1.0-sources.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/devoxx4kids/bukkit/plugins/bukkit-template/1.0/bukkit-template-1.0-sources.jar.asc (536 B at 0.4 KB/sec)
Removed the archetype from local directory hoping that the plugin will be downloaded from maven central. But giving the same command to generate the project now gives:
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] Specified archetype not found.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.693s
[INFO] Finished at: Fri Apr 25 17:17:31 PDT 2014
[INFO] Final Memory: 12M/305M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.devoxx4kids.bukkit.plugins:bukkit-template:1.0) -> [Help 1]
[ERROR]
Searching at http://search.maven.org/#search%7Cga%7C1%7Cdevoxx4kids gives no results.
What am I missing ?
If all you got to was step 7.a.3 then you did not Release it.
I think you need to Close it?
Once it is "Staged" you can then get the URL to be used in your settings.xml. Which leads to the next question.
This may be obvious but did you add the release repo to your settings.xml?
Something like
<profile>
<id>acme-staging-repository</id>
<repositories>
<repository>
<id>jboss-staging-repository</id>
<name>Staging Maven Repository</name>
<url>https://repository.acme.org/nexus/content/repositories/acme_releases_staging_profile-1898</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
<activeProfiles>
<activeProfile>acme-staging-repository</activeProfile>
</activeProfiles>