Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to create osgi bundle on the 64-bit windows OS

Avatar

Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
Level 2

15-10-2015

Hi there,

I had ever create bundles on the 32-bit OS successfully. Today i use the maven 3.2.3 to create osgi bundles on the 64-bit OS, but always appear error like below:

E:\sling>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo.adobe.com/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml Downloading: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to adobe (http://repo.adobe.com/nexus/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to adobe (http://repo.adobe.com/nexus/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair Downloading: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/ma... [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to adobe (http://repo.adobe.com/nexus/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://repo.adobe.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of adobe has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to adobe (http://repo.adobe.com/nexu s/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://repo.adobe.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of adobe has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to adobe (http://repo.adobe.com/nexus/content/grou ps/public/): java.lang.RuntimeException: Could not generate DH keypair [WARNING] Failure to transfer org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from http://repo.adobe.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of adobe has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata .xml from/to adobe (http://repo.adobe.com/nexus/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair [INFO] [INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] Archetype defined by properties Downloading: http://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-arch... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.940 s [INFO] Finished at: 2015-05-06T18:04:53-07:00 [INFO] Final Memory: 11M/120M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.day.jcr.vault:multimodule -content-package-archetype:1.0.0) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: The desired archety pe does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) Caused by: org.apache.maven.plugin.MojoFailureException: The desired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0) at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more Caused by: org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0) at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:119) at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:189) ... 21 more [ERROR] [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 E:\sling>

And the java version information below:

E:\sling>java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

And file {M3_HOME}\conf\settings.xml profile like below:

<profile> <id>adobe-public</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>adobe</id> <name>Nexus Proxy Repository</name> <url>http://repo.adobe.com/nexus/content/groups/public/</url> <layout>default</layout> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>adobe</id> <name>Nexus Proxy Repository</name> <url>http://repo.adobe.com/nexus/content/groups/public/</url> <layout>default</layout> </pluginRepository> </pluginRepositories> </profile>

BTW, refer to this article https://helpx.adobe.com/experience-manager/using/first-osgi.html

Anyone know how to deal with this problem? I had ever try this example  OS windows7 32-bit on my computer, it run very well. But this time failure always since changed 64-bit OS.

 

Thanks a lot in advance.

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
Level 2

15-10-2015

hi, i just try did it, but not work and failure as always.