Quick Readload Plugin Won't Enable

Hello all,

I’m working on evaluating Bamboo’s plugin system to see if I can utilize this to extend my build pipeline. I’ve overcome a lot of roadblocks and poor documentation but now I’m stumped and I was hoping someone more experienced in this ecosystem could help out.

The short of it is that QuickReload will not enable for me. I’ve tried launching my plugin with both atlas-run and atlas-debug and in both scenarios Quick Reload doesn’t enable. The following error log is what I’ve gathered from manually pushing the Enable button on the Quick Reload Plugin’s settings.

I am also running this on an Apple M1 Max machine as well.

2023-10-10 12:34:46,637 INFO [http-nio-6990-exec-2] [NonValidatingOsgiApplicationContextCreator] Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [Atlassian Quick Reload Plugin (com.atlassian.labs.plugins.quickreload)]
2023-10-10 12:34:46,828 INFO [ThreadPoolAsyncTaskExecutor::Thread 28] [DependencyWaiterApplicationContextExecutor] No outstanding OSGi service dependencies, completing initialization for NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.labs.plugins.quickreload, config=osgibundle:/META-INF/spring/*.xml)
2023-10-10 12:34:46,917 INFO [ThreadPoolAsyncTaskExecutor::Thread 29] [DirectoryWatcher] Monitoring directory '/Users/rt/Documents/git/bamboo-hello-world/myPlugin/target'...
2023-10-10 12:34:46,917 ERROR [ThreadPoolAsyncTaskExecutor::Thread 29] [OsgiPlugin] Unable to start the plugin container for plugin 'com.atlassian.labs.plugins.quickreload.reloader'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'launcher': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) ~[spring-context-5.3.28.jar:5.3.28]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322) ~[?:?]
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287) ~[?:?]
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:834) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Can't load library: /Users/rt/Library/Caches/JNA/temp/jna6922224585545209686.tmp [in thread "ThreadPoolAsyncTaskExecutor::Thread 6"]
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2622) ~[?:?]
	at java.lang.Runtime.load0(Runtime.java:765) ~[?:?]
	at java.lang.System.load(System.java:1835) ~[?:?]
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at io.methvin.watchservice.jna.CarbonAPI.<clinit>(CarbonAPI.java:20) ~[?:?]
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
2023-10-10 12:34:46,969 INFO [ThreadPoolAsyncTaskExecutor::Thread 29] [DefaultOsgiBundleApplicationContextListener] Application context succesfully closed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.labs.plugins.quickreload, config=osgibundle:/META-INF/spring/*.xml))
2023-10-10 12:34:46,970 ERROR [ThreadPoolAsyncTaskExecutor::Thread 29] [DefaultOsgiBundleApplicationContextListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.labs.plugins.quickreload, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'launcher': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) ~[spring-context-5.3.28.jar:5.3.28]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322) ~[?:?]
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287) ~[?:?]
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:834) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Can't load library: /Users/rt/Library/Caches/JNA/temp/jna6922224585545209686.tmp [in thread "ThreadPoolAsyncTaskExecutor::Thread 6"]
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2622) ~[?:?]
	at java.lang.Runtime.load0(Runtime.java:765) ~[?:?]
	at java.lang.System.load(System.java:1835) ~[?:?]
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at io.methvin.watchservice.jna.CarbonAPI.<clinit>(CarbonAPI.java:20) ~[?:?]
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
2023-10-10 12:34:46,980 ERROR [ThreadPoolAsyncTaskExecutor::Thread 29] [DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.labs.plugins.quickreload], unsatisfied dependencies: none
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'launcher': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) ~[spring-context-5.3.28.jar:5.3.28]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322) ~[?:?]
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) ~[?:?]
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287) ~[?:?]
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:834) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class io.methvin.watchservice.jna.CarbonAPI
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Can't load library: /Users/rt/Library/Caches/JNA/temp/jna6922224585545209686.tmp [in thread "ThreadPoolAsyncTaskExecutor::Thread 6"]
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2622) ~[?:?]
	at java.lang.Runtime.load0(Runtime.java:765) ~[?:?]
	at java.lang.System.load(System.java:1835) ~[?:?]
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.6.0.jar:5.6.0 (b0)]
	at io.methvin.watchservice.jna.CarbonAPI.<clinit>(CarbonAPI.java:20) ~[?:?]
	at io.methvin.watchservice.jna.CFStringRef.toCFString(CFStringRef.java:23) ~[?:?]
	at io.methvin.watchservice.MacOSXListeningWatchService.register(MacOSXListeningWatchService.java:139) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:50) ~[?:?]
	at io.methvin.watchservice.WatchablePath.register(WatchablePath.java:61) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.WatchServiceHelper.registerDirectoryForWatching(WatchServiceHelper.java:97) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.watch(DirectoryWatcher.java:110) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onRefresh(DirectoryWatcher.java:84) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.DirectoryWatcher.onStartup(DirectoryWatcher.java:63) ~[?:?]
	at com.atlassian.labs.plugins.quickreload.Launcher.onPostConstruct(Launcher.java:65) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.3.28.jar:5.3.28]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.3.28.jar:5.3.28]
	... 18 more
2023-10-10 12:34:47,675 INFO [http-nio-6990-exec-2] [PluginSettingsAuditLogService] Tue Oct 10 12:34:47 PDT 2023 admin: Failed to enable app Quick Reload - Stealing time back from Maven since 2013. Just press up arrow! (com.atlassian.labs.plugins.quickreload.reloader)

I’ve used the atlas-create-bamboo-plugin CLI toolings to make a crude Hello World but to get that far I had to update my POM significantly in terms of dependency versions, here is what I’ve ended up with.

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.tutorial</groupId>
    <artifactId>myPlugin</artifactId>
    <version>1.0.0</version>
    <organization>
        <name>Tutorial Org</name>
        <url>www.google.com</url>
    </organization>
    <name>myPlugin</name>
    <description>This is the com.atlassian.tutorial:myPlugin plugin for Atlassian Bamboo.</description>
    <packaging>atlassian-plugin</packaging>
    <properties>
        <bamboo.version>9.2.6</bamboo.version>
        <bamboo.data.version>9.2.6</bamboo.data.version>
        <amps.version>8.11.4</amps.version>
        <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
        <atlassian.spring.scanner.version>3.0.3</atlassian.spring.scanner.version>
        <!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-web</artifactId>
            <version>${bamboo.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.2</version>
            <scope>test</scope>
        </dependency>
        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2-atlassian-1</version>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.8.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>bamboo-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${bamboo.version}</productVersion>
                    <productDataVersion>${bamboo.data.version}</productDataVersion>

                    <enableQuickReload>true</enableQuickReload>
                    
                    <enableDevToolbox>false</enableDevToolbox>
                    <enablePde>false</enablePde>
                    <skipRestDocGeneration>true</skipRestDocGeneration>
                    <allowGoogleTracking>false</allowGoogleTracking>
                    <skipManifestValidation>true</skipManifestValidation>
                    <extractDependencies>false</extractDependencies>

                    <!-- See here for an explanation of default instructions: -->
                    <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <!-- Add package to export here -->
                        <Export-Package>com.atlassian.tutorial.myPlugin.api,</Export-Package>
                        <!-- Add package import here -->
                        <Import-Package>
                            org.springframework.osgi.*;resolution:="optional",
                            org.eclipse.gemini.blueprint.*;resolution:="optional",
                            *
                        </Import-Package>
                        <!-- Ensure plugin is spring powered -->
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Does anyone have any insight as to why I’m running into this NoClassDefFoundError?

Thank you!