Hmm, I see:

Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli)
on project standalone-pom: The desired archetype does not exist
(org.apache.isis.archetype:simpleapp-archetype:1.16.0-SNAPSHOT)

which suggests that the command:

mvn archetype:generate -D archetypeCatalog=local -D groupId=com.mycompany
-D artifactId=myapp -D archetypeGroupId=org.apache.isis.archetype -D
archetypeArtifactId=simpleapp-archetype -B

is picking up an earlier version.

Could you retry, but first deleting the contents of ~/.m2/org/apache/isis
and see what happens?

Thx
Dan




On Fri, 18 Jan 2019 at 09:15, Johan Doornenbal <jdoornen...@apache.org>
wrote:

>
>
> On 2019/01/12 14:28:24, Dan Haywood <d...@haywood-associates.co.uk> wrote:
> > Folks,
> >
> > I've cut a release for Apache Isis Core and the two archetypes:
> >
> > * Core 2.0.0-M2
> > * HelloWorld Archetype 2.0.0-M2
> > * SimpleApp Archetype 2.0.0-M2
> >
> > The source code artifacts have been uploaded to staging repositories on
> > repository.apache.org.
> > For each zip there is a corresponding signature file (append .asc to the
> > zip's url).
> >
> > In the source code repo the code has been tagged as isis-2.0.0-M2-RC1,
> > helloworld-archetype-2.0.0-M2-RC1 and simpleapp-archetype-2.0.0-M2-RC1;
> see
> > https://github.com/apache/isis/tags
> >
> > To verify the source code, you can use the following commands (in an
> empty
> > directory):
> >
> >     NEXUSREPONUM=1088
> >     VERSION=2.0.0-M2
> >
> >     curl http://www.apache.org/dist/isis/KEYS > /tmp/KEYS
> >     gpg --import /tmp/KEYS
> >
> >     rm -rf isis-$VERSION*
> >     rm -rf simpleapp-archetype-$VERSION*
> >     rm -rf helloworld-archetype-$VERSION*
> >
> >     curl -O -L
> >
> https://raw.githubusercontent.com/apache/isis/06f947ad7a0968c34d8e6941a77e12aa0196cd17/scripts/verify-isis-release.sh
> >
> >     chmod +x ./verify-isis-release.sh
> >     ./verify-isis-release.sh $NEXUSREPONUM $VERSION
> >
> >
> > Assuming this completes successfully, you can then test the two
> > applications generated from the `simpleapp` and `helloworld` archetypes:
> >
> >     pushd test-simpleapp/myapp
> >     mvn -pl webapp jetty:run
> >     popd
> >
> > and
> >
> >     pushd test-helloworld/myapp
> >     mvn jetty:run
> >     popd
> >
> >
> > For more details, see
> >
> https://isis.apache.org/guides/cgcom/cgcom.html#_cgcom_verifying-releases
> >
> > Please verify the release and cast your vote.  The vote will be open for
> a
> > minimum of 72 hours.
> >
> > [ ] +1
> > [ ]  0
> > [ ] -1
> >
> Hi Dan,
>
> The script works fine on my machine (root dir ~/src/m2test) untill trying
> to build simple app:
>
> ~/src/m2test
> ~/src/m2test/simpleapp-archetype-2.0.0-M2 ~/src/m2test
> mvn clean install -Dskip.git
> [INFO] Scanning for projects...
> [INFO]
> [INFO] -----------< org.apache.isis.archetype:simpleapp-archetype
> >------------
> [INFO] Building simpleapp-archetype 2.0.0-M2
> [INFO] --------------------------[ maven-archetype
> ]---------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @
> simpleapp-archetype ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @
> simpleapp-archetype ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process
> (process-resource-bundles) @ simpleapp-archetype ---
> [INFO]
> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
> simpleapp-archetype ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 86 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-resources-plugin:3.1.0:testResources
> (default-testResources) @ simpleapp-archetype ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-archetype-plugin:3.0.1:jar (default-jar) @
> simpleapp-archetype ---
> [INFO] Building archetype jar:
> /Users/jodo/src/m2test/simpleapp-archetype-2.0.0-M2/target/simpleapp-archetype-2.0.0-M2
> [INFO]
> [INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @
> simpleapp-archetype ---
> [INFO] Skipping because packaging 'maven-archetype' is not pom.
> [INFO]
> [INFO] --- maven-archetype-plugin:3.0.1:integration-test
> (default-integration-test) @ simpleapp-archetype ---
> [INFO]
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @
> simpleapp-archetype ---
> [INFO] Installing
> /Users/jodo/src/m2test/simpleapp-archetype-2.0.0-M2/target/simpleapp-archetype-2.0.0-M2.jar
> to
> /Users/jodo/.m2/repository/org/apache/isis/archetype/simpleapp-archetype/2.0.0-M2/simpleapp-archetype-2.0.0-M2.jar
> [INFO] Installing
> /Users/jodo/src/m2test/simpleapp-archetype-2.0.0-M2/pom.xml to
> /Users/jodo/.m2/repository/org/apache/isis/archetype/simpleapp-archetype/2.0.0-M2/simpleapp-archetype-2.0.0-M2.pom
> [INFO]
> [INFO] --- maven-archetype-plugin:3.0.1:update-local-catalog
> (default-update-local-catalog) @ simpleapp-archetype ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.151 s
> [INFO] Finished at: 2019-01-18T10:08:55+01:00
> [INFO]
> ------------------------------------------------------------------------
> ~/src/m2test
> ~/src/m2test/test-simpleapp ~/src/m2test
> mvn archetype:generate -D archetypeCatalog=local -D groupId=com.mycompany
> -D artifactId=myapp -D archetypeGroupId=org.apache.isis.archetype -D
> archetypeArtifactId=simpleapp-archetype -B
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------< org.apache.maven:standalone-pom
> >-------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) >
> generate-sources @ standalone-pom >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) <
> generate-sources @ standalone-pom <<<
> [INFO]
> [INFO]
> [INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @
> standalone-pom ---
> [INFO] Generating project in Batch mode
> [INFO] Archetype
> [org.apache.isis.archetype:simpleapp-archetype:1.16.0-SNAPSHOT] found in
> catalog local
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.701 s
> [INFO] Finished at: 2019-01-18T10:08:57+01:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli)
> on project standalone-pom: The desired archetype does not exist
> (org.apache.isis.archetype:simpleapp-archetype:1.16.0-SNAPSHOT) -> [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
> Command mvn archetype:generate -D archetypeCatalog=local -D
> groupId=com.mycompany -D artifactId=myapp -D
> archetypeGroupId=org.apache.isis.archetype -D
> archetypeArtifactId=simpleapp-archetype -B failed! [error 1] Exiting...
>
> Grtz,
>
> Johan
>

Reply via email to