This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: Create new maven OSGI bundle -> clean and build it -> run it -> the run gets stuck on: [antrun:run] Executing tasks main: [propertyfile] Creating new property file: /tmp/mavenproject1/target/run.properties
when running with debug output on, it appears that the felix container should be started, just doesn't print any output.. main: Setting project property: vm.args -> [pathconvert] Set property plugins.jars = Setting project property: plugins.jars -> [makeurl] file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar [makeurl] Setting urls to URL file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar Setting project property: urls -> file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/mavenproject109-1.0-SNAPSHOT.jar [propertyfile] Updating property file: C:\Users\mkleint\AppData\Local\Temp\mavenproject109\target\run.properties [makeurl] Setting run.properties.url to URL file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties Setting project property: run.properties.url -> file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties [java] Executing 'C:\Program Files\Java\jdk1.7.0_21\jre\bin\java.exe' with arguments: [java] '-Dfelix.config.properties=file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties' [java] '-jar' [java] 'C:\Users\mkleint\.m2\repository\org\apache\felix\org.apache.felix.main\4.0.3\org.apache.felix.main-4.0.3.jar' [java] [java] The ' characters around the executable and arguments are [java] not part of the command. Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.7.0_21\jre\bin\java.exe' with arguments: '-Dfelix.config.properties=file:/C:/Users/mkleint/AppData/Local/Temp/mavenproject109/target/run.properties' '-jar' 'C:\Users\mkleint\.m2\repository\org\apache\felix\org.apache.felix.main\4.0.3\org.apache.felix.main-4.0.3.jar' The ' characters around the executable and arguments are not part of the command.
appears to work for me.. the felix VM is clearly running and when I add a system out in the BundleActivator class, it gets printed to the maven build output.
I have the same problem. And i know, somehow i fixed it a couple of months or even a year ago, but can not remember :( First i would try is to disable the auto-save stuff. This was causing a lot of problems in osgi/maven/felix combinations for me. Unfortunately this does not occur on "simple" setups on my machine, means simply creating an osgi bundle wont be enough to reproduce. I have a couple of dependencies in my project to other bundles.
to reproduce the problem, one can checkout my project at https://github.com/olze/SoundBox The master branch has that problem, whereas the develop does not. Sorry, have no small project with that behaviour
hm, seems to work for me or at least after clean build and run i've got some gui please prvide more info