Github user mmiklavc commented on the issue: https://github.com/apache/metron/pull/530 So another wrinkle here - when running the archetype plugin from a non-project (separate, clean) directory, it's going to default to 3.0.1. I'm trying this up in full dev right now and running into the same issues as I'm seeing on my Mac. I run `mvn clean install` on the extension archetype project and it shows up in archetype-catalog.xml. When I try to use the archetype, it doesn't show up. Again, this is Centos ``` [root@node1(192.168.66.121): ~/metron] # metron-deployment/scripts/platform-info.sh Metron 0.4.1 -- * METRON-777 -- commit 04727ca8c448e2845e48a8a95812e6bf27b2c13d Author: Otto Fowler <ottobackwa...@gmail.com> Date: Thu Aug 3 13:30:29 2017 -0400 update document to remove references to the working dir -- -- metron-deployment/scripts/platform-info.sh: line 48: ansible: command not found -- metron-deployment/scripts/platform-info.sh: line 52: vagrant: command not found -- Python 2.6.6 -- Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T19:39:06Z) Maven home: /opt/maven Java version: 1.8.0_77, vendor: Oracle Corporation Java home: /usr/jdk64/jdk1.8.0_77/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-642.15.1.el6.x86_64", arch: "amd64", family: "unix" -- metron-deployment/scripts/platform-info.sh: line 64: docker: command not found -- node v6.11.2 -- npm 3.10.10 -- Linux node1 2.6.32-642.15.1.el6.x86_64 #1 SMP Fri Feb 24 14:31:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux -- Total System Memory = 7870.23 MB Processor Model: Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz Processor Speed: 2294.688 MHz Total Physical Processors: 4 Total cores: 16 Disk information: /dev/mapper/vg_node1-lv_root /dev/sda1 477M 63M 389M 14% /boot This CPU may not support virtualization # install archetypes [root@node1(192.168.66.121): ~/metron/metron-maven-archetypes] # mvn clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] metron-maven-parser-extension-archetype [INFO] metron-maven-archetypes [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building metron-maven-parser-extension-archetype 0.4.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-maven-parser-extension-archetype --- [INFO] Deleting /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ metron-maven-parser-extension-archetype --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 22 resources [INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ metron-maven-parser-extension-archetype --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 2 resources [INFO] [INFO] --- maven-archetype-plugin:2.4:jar (default-jar) @ metron-maven-parser-extension-archetype --- [INFO] Building archetype jar: /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/metron-maven-parser-extension-archetype-0.4.1 [INFO] [INFO] --- maven-archetype-plugin:2.4:integration-test (default-integration-test) @ metron-maven-parser-extension-archetype --- [INFO] Processing Archetype IT project: basic [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: metron-maven-parser-extension-archetype:0.4.1 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: archetype.it [INFO] Parameter: artifactId, Value: basic [INFO] Parameter: version, Value: 0.1-SNAPSHOT [INFO] Parameter: package, Value: it.pkg [INFO] Parameter: packageInPathFormat, Value: it/pkg [INFO] Parameter: parserName, Value: sample [INFO] Parameter: version, Value: 0.1-SNAPSHOT [INFO] Parameter: package, Value: it.pkg [INFO] Parameter: metronVersion, Value: 0.4.0 [INFO] Parameter: groupId, Value: archetype.it [INFO] Parameter: parserClassName, Value: Sample [INFO] Parameter: artifactId, Value: basic [INFO] Parent element not overwritten in /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/test-classes/projects/basic/project/basic/metron-parser-__parserName__/pom.xml [INFO] Parent element not overwritten in /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/test-classes/projects/basic/project/basic/metron-parser-__parserName__-bundle/pom.xml [INFO] Parent element not overwritten in /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/test-classes/projects/basic/project/basic/metron-parser-__parserName__-assembly/pom.xml [INFO] project created from Archetype in dir: /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/test-classes/projects/basic/project/basic [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ metron-maven-parser-extension-archetype --- [INFO] Installing /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/target/metron-maven-parser-extension-archetype-0.4.1.jar to /root/.m2/repository/org/apache/metron/metron-maven-parser-extension-archetype/0.4.1/metron-maven-parser-extension-archetype-0.4.1.jar [INFO] Installing /root/metron/metron-maven-archetypes/metron-maven-parser-extension-archetype/pom.xml to /root/.m2/repository/org/apache/metron/metron-maven-parser-extension-archetype/0.4.1/metron-maven-parser-extension-archetype-0.4.1.pom [INFO] [INFO] --- maven-archetype-plugin:2.4:update-local-catalog (default-update-local-catalog) @ metron-maven-parser-extension-archetype --- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building metron-maven-archetypes 0.4.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-maven-archetypes --- [INFO] Deleting /root/metron/metron-maven-archetypes/target [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-maven-archetypes --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-maven-archetypes --- [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/root/metron/metron-maven-archetypes/target/jacoco.exec [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-maven-archetypes --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- apache-rat-plugin:0.12:check (default) @ metron-maven-archetypes --- [INFO] Enabled default license matchers. [INFO] Will parse SCM ignores for exclusions... [INFO] Finished adding exclusions from SCM ignore files. [INFO] 62 implicit excludes (use -debug for more details). [INFO] Exclude: dependencies_with_url.csv [INFO] Exclude: apache-maven-3.3.9/** [INFO] Exclude: **/*.md [INFO] Exclude: **/VERSION [INFO] Exclude: **/*.json [INFO] Exclude: **/*.json.j2 [INFO] Exclude: **/*.tokens [INFO] Exclude: **/*.log [INFO] Exclude: **/*.template [INFO] Exclude: **/.* [INFO] Exclude: **/.*/** [INFO] Exclude: **/*.seed [INFO] Exclude: **/*.iml [INFO] Exclude: **/ansible.cfg [INFO] Exclude: **/*.rpm [INFO] Exclude: site/** [INFO] Exclude: **/src/main/resources/patterns/** [INFO] Exclude: **/src/main/sample/patterns/** [INFO] Exclude: **/src/test/resources/** [INFO] Exclude: **/src/main/sample/data/** [INFO] Exclude: **/dependency-reduced-pom.xml [INFO] Exclude: **/target/** [INFO] Exclude: **/bro-plugin-kafka/build/** [INFO] Exclude: **/src/main/resources/common-services/KIBANA/4.5.1/package/scripts/dashboard/dashboard.p [INFO] Exclude: **/packer-build/scripts/** [INFO] Exclude: **/packer-build/bin/** [INFO] Exclude: **/packer_cache/** [INFO] Exclude: **/hbase/data/** [INFO] Exclude: **/kafkazk/data/** [INFO] Exclude: **/wait-for-it.sh [INFO] Exclude: **/*.out [INFO] Exclude: node_modules/** [INFO] Exclude: node/** [INFO] Exclude: coverage/** [INFO] Exclude: **/src/assets/ace/** [INFO] Exclude: dist/assets/ace/** [INFO] Exclude: dist/*.svg [INFO] Exclude: e2e/*.js.map [INFO] Exclude: checkstyle.xml [INFO] 2 resources included (use -debug for more details) [INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 0, approved: 1 licenses. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (verify) @ metron-maven-archetypes --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ metron-maven-archetypes --- [INFO] Installing /root/metron/metron-maven-archetypes/pom.xml to /root/.m2/repository/org/apache/metron/metron-maven-archetypes/0.4.1/metron-maven-archetypes-0.4.1.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] metron-maven-parser-extension-archetype ............ SUCCESS [ 1.253 s] [INFO] metron-maven-archetypes ............................ SUCCESS [ 1.939 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.405 s [INFO] Finished at: 2017-08-04T17:35:56Z [INFO] Final Memory: 29M/269M [INFO] ------------------------------------------------------------------------ # cat ~/.m2/archetype-catalog.xml <?xml version="1.0" encoding="UTF-8"?> <archetype-catalog xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0 http://maven.apache.org/xsd/archetype-catalog-1.0.0.xsd" xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-catalog/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <archetypes> <archetype> <groupId>org.apache.metron</groupId> <artifactId>metron-maven-parser-extension-archetype</artifactId> <version>0.4.1</version> <description>Apache Maven Parser Extension Archetype for Metron</description> </archetype> </archetypes> </archetype-catalog> # change into a directory outside of the metron code tree [root@node1(192.168.66.121): ~/metron-extensions] # mvn archetype:generate -DarchetypeCatalog=local [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] [INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: Your filter doesn't match any archetype (hint: enter to return to initial list) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---