Hi guys, i'm relatively new to pax. Today i was trying to create an OSGi project with maven and found this tutorial https://books.sonatype.com/mcookbook/reference/osgi.html started from the beginning, i was able to reach only step 1.3 :-)
what i noticed when creating project is this error: [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library .vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. but anyway, build was successful. then i went on to the next step: mvn install pax:provision rag@rag:~/git/maven-osgi/maven-osgi > mvn install pax:provision [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for ch.rag.maven-osgi.build:compiled-bundle-settings:pom:1.0-SNAPSHOT [WARNING] The expression ${pom.version} is deprecated. Please use ${project. version} instead. [WARNING] The expression ${pom.version} is deprecated. Please use ${project. version} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] ch.rag.maven-osgi (OSGi project) [INFO] maven-osgi - plugin configuration [INFO] maven-osgi - wrapper instructions [INFO] maven-osgi - bundle instructions [INFO] maven-osgi - imported bundles [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building ch.rag.maven-osgi (OSGi project) 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ maven-osgi --- [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/pom.xml to /Users/rag /.m2/repository/ch/rag/maven-osgi/1.0-SNAPSHOT/maven-osgi-1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven-osgi - plugin configuration 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ shared- plugin-settings --- [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/poms/pom.xml to / Users/rag/.m2/repository/ch/rag/maven-osgi/build/shared-plugin-settings/1.0- SNAPSHOT/shared-plugin-settings-1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven-osgi - wrapper instructions 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ wrapper- bundle-settings --- [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/poms/wrappers/pom.xml to /Users/rag/.m2/repository/ch/rag/maven-osgi/build/wrapper-bundle-settings /1.0-SNAPSHOT/wrapper-bundle-settings-1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven-osgi - bundle instructions 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ compiled- bundle-settings --- [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/poms/compiled/pom.xml to /Users/rag/.m2/repository/ch/rag/maven-osgi/build/compiled-bundle- settings/1.0-SNAPSHOT/compiled-bundle-settings-1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven-osgi - imported bundles 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ provision --- [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/provision/pom.xml to /Users/rag/.m2/repository/ch/rag/maven-osgi/build/provision/1.0-SNAPSHOT/ provision-1.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building ch.rag.maven-osgi (OSGi project) 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-pax-plugin:1.6.0:provision (default-cli) @ maven-osgi --- [INFO] ~~~~~~~~~~~~~~~~~~~ [INFO] No bundles found! [INFO] ~~~~~~~~~~~~~~~~~~~ [INFO] Installing /Users/rag/git/maven-osgi/maven-osgi/runner/deploy-pom.xml to /Users/rag/.m2/repository/ch/rag/maven-osgi/build/deployment/1.0-SNAPSHOT /deployment-1.0-SNAPSHOT.pom __________ __________ \______ \_____ ___ ___ \______ \__ __ ____ ____ ___________ | ___/\__ \ \ \/ / | _/ | \/ \ / \_/ __ \_ __ \ | | / __ \_> < | | \ | / | \ | \ ___/| | \/ |____| (____ /__/\_ \ |____|_ /____/|___| /___| /\___ >__| \/ \/ \/ \/ \/ \/ Pax Runner (1.9.0) from OPS4J - http://www.ops4j.org ---------------------------------------------------- -> Using only arguments from command line -> Scan bundles from [/Users/rag/git/maven-osgi/maven-osgi/runner/deploy- pom.xml] -> Scan bundles from [scan-pom:file:/Users/rag/git/maven-osgi/maven-osgi/ runner/deploy-pom.xml] -> Preparing framework [Felix 5.4.0] -> Downloading bundles... 611 [main] WARN org.ops4j.pax.url.mvn.internal.config.MavenRepositoryURL - Repository spec https://repo.maven.apache.org/maven2/ does not contain an identifier. This is deprecated & discouraged & just evil. 611 [main] WARN org.ops4j.pax.url.mvn.internal.config.MavenRepositoryURL - Repository spec http://repository.ops4j.org/maven2/ does not contain an identifier. This is deprecated & discouraged & just evil. -> Felix 5.4.0 : 690862 bytes @ [ 76762kBps ] -> Apache Felix Gogo Command (0.16.0) : 52560 bytes @ [ 26280kBps ] -> Apache Felix Gogo Runtime (0.16.2) : 125027 bytes @ [ 125027kBps ] -> Apache Felix Gogo Shell (0.12.0) : 54420 bytes @ [ 54420kBps ] ___ / / / / Oops, there has been a problem! / / /__/ org.ops4j.pax.runner.platform.PlatformException: Execution environment [J2SE-11.] could not be found ___ /__/ Use --log=debug to see details. i'm using jenv to manage java environments and when i switch to java 8 then everything is fine. it seems that the java version is built dynamically using J2SE-<version> :-) does it have something to do with the template error above? how can i solve the problem? i'm not even able to create an issue in Jira, don't know where to raise this issue. thx in advance peace rome -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/0707b2a8-ee57-4af0-a67b-9f8315e3f439%40googlegroups.com.