MJ Hartman Trusted Contributor.
Trusted Contributor.
3182 views

Creating a sample action plugin with HPE OO 10.70

Jump to solution

Hi, 

I am following the HPE OO 10.70 Action Developer Guide, using Maven 3.2.1 as instructed. I get stuck here:

Creating a Plugin Using a Maven Archetype
Create a sample project
1. Go to the path where you want to create a sample plugin project, and enter the following command
in the command line:
mvn archetype:generate -DarchetypeCatalog=file://$HOME/.m2/repository
Note: For Windows, use %HOMEPATH%.
This initiates the project creation. A list of archetypes found in the catalog appears. Select the
number representing the archetype com.hp.oo.sdk:oo-plugin-archetype.

The archetype com.hp.oo.sdk:oo-plugin-archetype does not appear in the list.

What am I doing wrong?

Labels (2)
0 Likes
1 Solution

Accepted Solutions
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Hi,

I am able to reproduce. Please try to use the 10.60 SDK.

The one you just tried needs a ticket because it seems problematic.

We'll definitely have a look.

Thank you.

Andrei Vasile Truta
0 Likes
29 Replies
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

I find that .m2\repository\com\hp\oo\sdk\oo-archetypes\10.70.00 has a file named oo-archetypes-10.70.00.pom.lastUpdated (and no jar file).

The directory oo-archetypes is generated by maven and not included in sdk-java-10.70.zip.

I am not sure if this is the cause of my problem.

0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Does anyone have a solution for this? I am still stuck with using maven to generate an action plugin project.

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

you need to pay attention to what %HOME% like variable you use when triggering that command. It is different Windows to Linux.

 

Andrei Vasile Truta
0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

If the argument is not provided properly the artifacts are not listed.

Andrei Vasile Truta
0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

also, did you copy the .java and .net under .m2?

Andrei Vasile Truta
0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Yep, I did both. See results from the crawl & generate commands:

[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0:crawl (default-cli) @ standalone-pom ---
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\asm\asm\3.2\asm-3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\asm\asm-analysis\3.2\asm-analysis-3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\asm\asm-commons\3.2\asm-commons-3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\asm\asm-tree\3.2\asm-tree-3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\asm\asm-util\3.2\asm-util-3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.5\jackson-annotations-2.6.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.6.5\jackson-core-2.6.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.6.5\jackson-databind-2.6.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\google\code\findbugs\jsr305\2.0.1\jsr305-2.0.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\google\inject\guice\3.0\guice-3.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-abstract-plugins\10.70.00\oo-abstract-plugins-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-action-plugin\10.70.00\oo-action-plugin-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-action-plugin-maven-plugin\10.70.00\oo-action-plugin-maven-plugin-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-contentpack-maven-plugin\10.70.00\oo-contentpack-maven-plugin-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-dotnet-action-plugin\10.70.00\oo-dotnet-action-plugin-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-dotnet-action-plugin-proxy\10.70.00\oo-dotnet-action-plugin-proxy-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-legacy-action-plugin\10.70.00\oo-legacy-action-plugin-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-maven-support\10.70.00\oo-maven-support-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-plugin-archetype\10.70.00\oo-plugin-archetype-10.70.00.jar
[INFO] Archetype [com.hp.oo.sdk:oo-plugin-archetype:10.70.00] defined by repository path
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-sdk\10.70.00\oo-sdk-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-sdk-plugins-commons\10.70.00\oo-sdk-plugins-commons-10.70.00.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\score\sdk\score-content-sdk\1.10.6\score-content-sdk-1.10.6.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-codec\commons-codec\1.6\commons-codec-1.6.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-io\commons-io\2.2\commons-io-2.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\javax\enterprise\cdi-api\1.0-SP4\cdi-api-1.0-SP4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\net\sf\jni4net\jni4net.j\0.8.6.0\jni4net.j-0.8.6.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\net\sf\scannotation\scannotation\1.0.2\scannotation-1.0.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\net\sourceforge\jchardet\jchardet\1.0\jchardet-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\ant\ant\1.8.1\ant-1.8.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\archetype\archetype-catalog\3.0.0\archetype-catalog-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\archetype\archetype-common\3.0.0\archetype-common-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\archetype\archetype-descriptor\3.0.0\archetype-descriptor-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-aether-provider\3.2.1\maven-aether-provider-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-artifact\3.2.1\maven-artifact-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-compat\3.2.1\maven-compat-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-core\3.2.1\maven-core-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-model\3.2.1\maven-model-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-model-builder\3.2.1\maven-model-builder-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-plugin-api\3.2.1\maven-plugin-api-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-repository-metadata\3.2.1\maven-repository-metadata-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-settings\3.2.1\maven-settings-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\maven-settings-builder\3.2.1\maven-settings-builder-3.2.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-antrun-plugin\1.3\maven-antrun-plugin-1.3.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-archetype-plugin\3.0.0\maven-archetype-plugin-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-assembly-plugin\2.2-beta-5\maven-assembly-plugin-2.2-beta-5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-dependency-plugin\2.8\maven-dependency-plugin-2.8.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-install-plugin\2.4\maven-install-plugin-2.4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-release-plugin\2.3.2\maven-release-plugin-2.3.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\plugins\maven-site-plugin\3.3\maven-site-plugin-3.3.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\shared\maven-artifact-transfer\0.9.0\maven-artifact-transfer-0.9.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\shared\maven-common-artifact-filters\3.0.0\maven-common-artifact-filters-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\shared\maven-invoker\2.2\maven-invoker-2.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\shared\maven-script-interpreter\1.0\maven-script-interpreter-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\shared\maven-shared-utils\3.0.0\maven-shared-utils-3.0.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\wagon\wagon-http\1.0\wagon-http-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\wagon\wagon-http-shared\1.0\wagon-http-shared-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-7-ipv6\wagon-provider-api-1.0-beta-7-ipv6.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\groovy\groovy\1.8.3\groovy-1.8.3.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-classworlds\2.5.1\plexus-classworlds-2.5.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-component-annotations\1.5.5\plexus-component-annotations-1.5.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-component-annotations\1.6\plexus-component-annotations-1.6.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-digest\1.0\plexus-digest-1.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-interactivity-api\1.0-alpha-6\plexus-interactivity-api-1.0-alpha-6.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-interpolation\1.14\plexus-interpolation-1.14.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-interpolation\1.19\plexus-interpolation-1.19.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-utils\3.0.17\plexus-utils-3.0.17.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-utils\3.0.21\plexus-utils-3.0.21.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-utils\3.0.5\plexus-utils-3.0.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\codehaus\plexus\plexus-velocity\1.1.8\plexus-velocity-1.1.8.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\aether\aether-api\0.9.0.M2\aether-api-0.9.0.M2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\aether\aether-connector-wagon\0.9.0.M2\aether-connector-wagon-0.9.0.M2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\aether\aether-impl\0.9.0.M2\aether-impl-0.9.0.M2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\aether\aether-spi\0.9.0.M2\aether-spi-0.9.0.M2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\aether\aether-util\0.9.0.M2\aether-util-0.9.0.M2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\sisu\org.eclipse.sisu.inject\0.3.1\org.eclipse.sisu.inject-0.3.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\eclipse\sisu\org.eclipse.sisu.plexus\0.3.1\org.eclipse.sisu.plexus-0.3.1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\jboss\spec\javax\interceptor\jboss-interceptors-api_1.1_spec\1.0.0.Beta1\jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\jsoup\jsoup\1.7.3\jsoup-1.7.3.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\slf4j\slf4j-api\1.7.5\slf4j-api-1.7.5.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\sonatype\aether\aether-util\1.7\aether-util-1.7.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\sonatype\plexus\plexus-cipher\1.4\plexus-cipher-1.4.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\sonatype\plexus\plexus-sec-dispatcher\1.3\plexus-sec-dispatcher-1.3.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\sonatype\sisu\sisu-guice\2.1.7\sisu-guice-2.1.7-noaop.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\sonatype\sisu\sisu-inject-bean\1.4.2\sisu-inject-bean-1.4.2.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\springframework\spring-aop\4.2.5.RELEASE\spring-aop-4.2.5.RELEASE.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\springframework\spring-beans\4.2.5.RELEASE\spring-beans-4.2.5.RELEASE.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\springframework\spring-core\4.2.5.RELEASE\spring-core-4.2.5.RELEASE.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\springframework\spring-expression\4.2.5.RELEASE\spring-expression-4.2.5.RELEASE.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\org\twdata\maven\mojo-executor\2.2.0\mojo-executor-2.2.0.jar
[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.993 s
[INFO] Finished at: 2017-03-14T16:03:45+01:00
[INFO] Final Memory: 8M/126M
[INFO] ------------------------------------------------------------------------

> mvn archetype:generate -DarchetypeCatalog=file://%HOMEPATH%/.m2/repository
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No catalog defined. Using internal catalog
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.)
2: internal -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.)
3: internal -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.)
4: internal -> org.apache.maven.archetypes:maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site.
This archetype can be layered upon an existing Maven plugin project.)
5: internal -> org.apache.maven.archetypes:maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.)
6: internal -> org.apache.maven.archetypes:maven-archetype-profiles ()
7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)
8: internal -> org.apache.maven.archetypes:maven-archetype-site (An archetype which contains a sample Maven site which demonstrates
some of the supported document types like APT, XDoc, and FML and demonstrates how
to i18n your site. This archetype can be layered upon an existing Maven project.)
9: internal -> org.apache.maven.archetypes:maven-archetype-site-simple (An archetype which contains a sample Maven site.)
10: internal -> org.apache.maven.archetypes:maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 7:

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Hi,

I am able to reproduce. Please try to use the 10.60 SDK.

The one you just tried needs a ticket because it seems problematic.

We'll definitely have a look.

Thank you.

Andrei Vasile Truta
0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Thanks. I'll try that.

0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

I tried 10.60.00. Similar results on generate step:

mvn archetype:generate -DarchetypeCatalog=file://%HOMEPATH%/.m2/repository
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No catalog defined. Using internal catalog
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.)
2: internal -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.)
3: internal -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.)
4: internal -> org.apache.maven.archetypes:maven-archetype-plugin-site (An archetype which contains a sample Maven plugin site.
This archetype can be layered upon an existing Maven plugin project.)
5: internal -> org.apache.maven.archetypes:maven-archetype-portlet (An archetype which contains a sample JSR-268 Portlet.)
6: internal -> org.apache.maven.archetypes:maven-archetype-profiles ()
7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)
8: internal -> org.apache.maven.archetypes:maven-archetype-site (An archetype which contains a sample Maven site which demonstrates
some of the supported document types like APT, XDoc, and FML and demonstrates how
to i18n your site. This archetype can be layered upon an existing Maven project.)
9: internal -> org.apache.maven.archetypes:maven-archetype-site-simple (An archetype which contains a sample Maven site.)
10: internal -> org.apache.maven.archetypes:maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 7:

0 Likes
AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Agree with you. on my side too.

I am using Java 8 while it should be Java 7 based on the requirements.

I cannot check it right now with 7 but I suggest to use that just in case you are using 8 too.

Andrei

Andrei Vasile Truta
0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Yep. Also using Java 8. I'll install a Java SDK 7 too, and then try again.

0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

Installed JDK 7 and tested with sdk-java.-10.60.zip.

Crawl is okay:

[INFO] Scanning C:\Users\HartmanMAR\.m2\repository\com\hp\oo\sdk\oo-plugin-archetype\10.60.00-RC9\oo-plugin-archetype-10.60.00-RC9.jar
[INFO] Archetype [com.hp.oo.sdk:oo-plugin-archetype:10.60.00-RC9] defined by repository path

Generate is still not okay. I see at the beginning:

[INFO] Generating project in Interactive mode
[INFO] No catalog defined. Using internal catalog
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)

In the Action Developers Guide, the second line does not appear.

Then I changed the command a little bit, and got a result:

mvn archetype:generate -DarchetypeCatalog=local
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0: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:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
[WARNING] The POM for com.hp.oo.sdk:oo-plugin-archetype:jar:10.60.00-RC9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.hp.oo.sdk:oo-plugin-archetype:pom:10.60.00-RC9 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
Define value for property 'groupId': com.dxc.oo.teamforge
Define value for property 'artifactId': TeamForgeExtract
[INFO] Using property: version = 1.0.0
Define value for property 'package' com.dxc.oo.teamforge: :
Define value for property 'uuid': ba3e5294-b7f4-420e-945e-5ef2fee0bd46
Confirm properties configuration:
groupId: com.dxc.oo.teamforge
artifactId: TeamForgeExtract
version: 1.0.0
package: com.dxc.oo.teamforge
uuid: ba3e5294-b7f4-420e-945e-5ef2fee0bd46
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: oo-plugin-archetype:10.60.00-RC9
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.dxc.oo.teamforge
[INFO] Parameter: artifactId, Value: TeamForgeExtract
[INFO] Parameter: version, Value: 1.0.0
[INFO] Parameter: package, Value: com.dxc.oo.teamforge
[INFO] Parameter: packageInPathFormat, Value: com/dxc/oo/teamforge
[INFO] Parameter: package, Value: com.dxc.oo.teamforge
[INFO] Parameter: version, Value: 1.0.0
[INFO] Parameter: groupId, Value: com.dxc.oo.teamforge
[INFO] Parameter: uuid, Value: ba3e5294-b7f4-420e-945e-5ef2fee0bd46
[INFO] Parameter: artifactId, Value: TeamForgeExtract
[INFO] Parent element not overwritten in C:\Users\HartmanMAR\Documents\NetBeansProjects\TeamForgeExtract\TeamForgeExtract-cp\pom.xml
[INFO] Parent element not overwritten in C:\Users\HartmanMAR\Documents\NetBeansProjects\TeamForgeExtract\TeamForgeExtract-plugin\pom.xml
[INFO] Project created from Archetype in dir: C:\Users\HartmanMAR\Documents\NetBeansProjects\TeamForgeExtract
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:42 min
[INFO] Finished at: 2017-03-15T11:57:03+01:00
[INFO] Final Memory: 12M/154M
[INFO] ------------------------------------------------------------------------

AndreiTruta Outstanding Contributor.
Outstanding Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

I have the exact same behavior after getting Java 7. And your -DarchetypeCatalog=local fixes it.

I will look for it later today or tomorrow as I have never bumped into it. I wonder if it might be platform specific nou - something related to Windows 10 or not...

If you google it and find an explanation let me know.

 

Andrei Vasile Truta
0 Likes
MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: Creating a sample action plugin with HPE OO 10.70

Jump to solution

I keep having problems, with local option too:

mvn archetype:generate -DarchetypeCatalog=local -X

....

[INFO] Generating project in Interactive mode
[DEBUG] Using catalog C:\Users\HartmanMAR\.m2\repository\archetype-catalog.xml
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> com.hp.oo.sdk:oo-plugin-archetype (sample-project)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
[DEBUG] Not found archetype com.hp.oo.sdk:oo-plugin-archetype:10.60.00-RC9 in cache
[DEBUG] Archetype com.hp.oo.sdk:oo-plugin-archetype:10.60.00-RC9 doesn't exist
org.apache.maven.archetype.downloader.DownloadException: Error downloading com.hp.oo.sdk:oo-plugin-archetype:jar:10.60.00-RC9.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.