Respected Contributor.. relent0r Respected Contributor..
Respected Contributor..
590 views

Unable to get maven action sample to build

Using the 10.60 sdk. Using Maven 3.2.1. Using java jdk 7 (and tried 😎

I've tried it on multiple machines to make sure it wasn't something local. Even tried building it from netbeans with the same result.

My symptoms are very similar to this post, which sadly didn't have any reference to any eventual solution.

/t5/Operations-Orchestration/Creating-a-sample-action-plugin-with-HPE-OO-10-70/td-p/6947649

Performing the crawl finds the archetype fine.

Then using 'mvn archetype:generate -DarchetypeCatalog=local -X'

[INFO] Generating project in Interactive mode
[DEBUG] Using catalog C:\Users\admin\.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.
at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:83)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:279)
at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:121)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:200)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Labels (2)
0 Likes
1 Reply
Respected Contributor.. relent0r Respected Contributor..
Respected Contributor..

Re: Unable to get maven action sample to build

I'd been banging my head against the desk all day before creating the forum post and a few minutes after posting it have managed to get it going.

Copied the files from

.m2\repository\com\hp\oo\sdk\oo-plugin-archetype\10.60.00-RC9

to

.m2\repository\com\hp\oo\sdk\oo-archetypes\10.60.00-RC9

and named accordingly

oo-archetypes-10.60.00-RC9.jar

oo-archetypes-10.60.00-RC9.pom

Which resulted in the build completing yay!

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.