The jira-rest-plugin dependency with integration test why not work?

Hi!

My pugin need this dependency in provided scope.

  <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-rest-plugin</artifactId>
      <version>${jira.version}</version>
      <scope>provided</scope>
    </dependency>

But if I want to run my testkit integration tests it throws me this excpetion.

[174]: Unable to resolve 174.0: missing requirement [174.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.jira.rest.util.serializers)
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
	at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1824)
	at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:937)
	at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(BundleClassLoaderAccessor.java:69)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at com.atlassian.jira.plugin.DefaultComponentClassManager.constructEvenIfNotEnabled(DefaultComponentClassManager.java:135)
	at com.atlassian.jira.plugin.DefaultComponentClassManager.newInstance(DefaultComponentClassManager.java:72)
	at com.atlassian.jira.service.OfBizServiceConfigStore.loadServiceClass(OfBizServiceConfigStore.java:385)
	at com.atlassian.jira.service.OfBizServiceConfigStore.instantiateServiceContainer(OfBizServiceConfigStore.java:244)
	at com.atlassian.jira.service.OfBizServiceConfigStore.getServiceContainer(OfBizServiceConfigStore.java:209)
	at com.atlassian.jira.service.OfBizServiceConfigStore.getAllServiceConfigs(OfBizServiceConfigStore.java:194)
	at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.loadServiceConfigs(DefaultServiceManager.java:727)
	at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.get(DefaultServiceManager.java:716)
	at com.atlassian.jira.service.DefaultServiceManager$ServicesCacheSupplier.get(DefaultServiceManager.java:709)
	at com.atlassian.cache.memory.MemoryCacheManager$1$1.load(MemoryCacheManager.java:67)
	at com.atlassian.cache.memory.MemoryCacheManager$1$1.load(MemoryCacheManager.java:63)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830)
	at com.atlassian.cache.memory.DelegatingCachedReference.getUnderLock(DelegatingCachedReference.java:72)
	at com.atlassian.cache.memory.DelegatingCachedReference.get(DelegatingCachedReference.java:58)
	at com.atlassian.jira.service.DefaultServiceManager.getServiceCache(DefaultServiceManager.java:640)
	at com.atlassian.jira.service.DefaultServiceManager.getServices(DefaultServiceManager.java:129)
	at com.atlassian.jira.service.DefaultServiceManager.ensureServicesScheduled(DefaultServiceManager.java:645)
	at com.atlassian.jira.service.DefaultServiceManager.start(DefaultServiceManager.java:115)
	at com.atlassian.jira.ComponentManager.runStartable(ComponentManager.java:301)
	at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:215)
	at com.atlassian.jira.ComponentManager.start(ComponentManager.java:168)
	at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:35)
	at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$175(DefaultJiraLauncher.java:136)
	at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:356)
	at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:226)
	at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:126)
	at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$173(DefaultJiraLauncher.java:92)
	at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:34)
	at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:90)
	at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:84)
	... 8 filtered
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

So I decided to make the scope to test. That cause I can't compile my code, only the tests code. But the error goes away. Any ide how to solve this problem?

I want to compile my prohject with tests once.

1 answer

0 votes

Hi Laszlo, for developer question you'll be more likely to receive a good response if you submit it at community.developer.atlassian.com. That's where our developer community hangs out!


Have a good day :)

Ana

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

34 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you