Compiling a JIRA plugin fails for JIRA 7.x when providing a custom "Module Type Plugin Module" (https://developer.atlassian.com/docs/getting-started/plugin-modules/module-type-plugin-module).
Compiling yields the following exception:
package com.atlassian.plugin.descriptors does not exist ..
cannot find symbol
symbol: class AbstractModuleDescriptor
more detailed stracktrace below..
For JIRA 6.x it is working without a problem.
$ java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
$ atlas-version ATLAS Version: 6.2.2 ATLAS Home: /usr/share/atlassian-plugin-sdk-6.2.2 ATLAS Scripts: /usr/share/atlassian-plugin-sdk-6.2.2/bin ATLAS Maven Home: /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1 AMPS Version: 6.2.1 -------- Executing: /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1/bin/mvn --version -gs /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1/conf/settings.xml Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0 Colorizing console... Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00) Maven home: /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1 Java version: 1.8.0_45, vendor: Oracle Corporation Java home: /usr/lib/jvm/jdk1.8.0_45/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-23-generic", arch: "amd64", family: "unix"
$ atlas-create-jira-plugin
$ atlas-create-jira-plugin-module Choose Plugin Module: 1: Component Import 2: Component 3: Component Tab Panel 4: Custom Field 5: Custom Field Searcher 6: Downloadable Plugin Resource 7: Gadget Plugin Module 8: Issue Tab Panel 9: Keyboard Shortcut 10: JQL Function 11: Licensing API Support 12: Module Type 13: Project Tab Panel 14: REST Plugin Module 15: RPC Endpoint Plugin 16: Report 17: Search Request View 18: Servlet Context Listener 19: Servlet Context Parameter 20: Servlet Filter 21: Servlet 22: Template Context Item 23: User Format 24: Version Tab Panel 25: Web Item 26: Web Panel 27: Web Panel Renderer 28: Web Resource 29: Web Resource Transformer 30: Web Section 31: Webwork Plugin 32: Workflow Condition 33: Workflow Post Function 34: Workflow Validator Choose a number (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34): 12 [INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics. [INFO] Although no personal information is sent, you may disable tracking by adding <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configuration in your pom.xml [INFO] Sending event to Google Analytics: AMPS:jira - Create Plugin Module - jira:Module Type Enter Interface name MYModule: : Enter Interface package bugreport.modules: : Enter Class name MYModuleModuleDescriptor: : Enter Package Name bugreport.modules: : Show Advanced Setup? (Y/y/N/n) N: : [INFO] Adding the following items to the project: [INFO] [class: bugreport.modules.MYModuleModuleDescriptor] [INFO] [class: bugreport.modules.MYModule] [INFO] [class: it.bugreport.modules.MYModuleModuleDescriptorFuncTest] [INFO] [class: ut.bugreport.modules.MYModuleModuleDescriptorTest] [INFO] [dependency: org.mockito:mockito-all] [INFO] [dependency: org.slf4j:slf4j-api] [INFO] [module: module-type] [INFO] i18n strings: 2 Add Another Plugin Module? (Y/y/N/n) N: : n [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:03 min [INFO] Finished at: 2016-01-08T16:29:48+01:00 [INFO] Final Memory: 31M/254M [INFO] ------------------------------------------------------------------------
$ atlas-package Executing: /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1/bin/mvn package -gs /usr/share/atlassian-plugin-sdk-6.2.2/apache-maven-3.2.1/conf/settings.xml Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0 Colorizing console... [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building bugreport 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-jira-plugin:6.2.1:compress-resources (default-compress-resources) @ bugreport --- [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling javascript using YUI [INFO] 0 Javascript file(s) were minified into target directory /tmp/bugreport/target/classes [INFO] 0 CSS file(s) were minified into target directory /tmp/bugreport/target/classes [INFO] Compressing XML files [INFO] 0 XML file(s) were minified into target directory /tmp/bugreport/target/classes [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ bugreport --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 7 resources [INFO] [INFO] --- maven-jira-plugin:6.2.1:filter-plugin-descriptor (default-filter-plugin-descriptor) @ bugreport --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bugreport --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 4 source files to /tmp/bugreport/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[6,40] package com.atlassian.plugin.descriptors does not exist [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[12,47] cannot find symbol symbol: class AbstractModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[20,5] method does not override or implement a method from a supertype [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[23,9] cannot find symbol symbol: variable super location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,44] cannot find symbol symbol: variable moduleClassName location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,17] cannot find symbol symbol: variable moduleFactory location: class bugreport.modules.MYModuleModuleDescriptor [INFO] 6 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.138 s [INFO] Finished at: 2016-01-08T16:35:48+01:00 [INFO] Final Memory: 31M/317M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project bugreport: Compilation failure: Compilation failure: [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[6,40] package com.atlassian.plugin.descriptors does not exist [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[12,47] cannot find symbol [ERROR] symbol: class AbstractModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[20,5] method does not override or implement a method from a supertype [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[23,9] cannot find symbol [ERROR] symbol: variable super [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,44] cannot find symbol [ERROR] symbol: variable moduleClassName [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,17] cannot find symbol [ERROR] symbol: variable moduleFactory [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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
mvn -X for some more detailed output..
$ atlas-package -X [..] [DEBUG] incrementalBuildHelper#beforeRebuildExecution [INFO] Compiling 4 source files to /tmp/bugreport/target/classes [DEBUG] incrementalBuildHelper#afterRebuildExecution [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[6,40] package com.atlassian.plugin.descriptors does not exist [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[12,47] cannot find symbol symbol: class AbstractModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[20,5] method does not override or implement a method from a supertype [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[23,9] cannot find symbol symbol: variable super location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,44] cannot find symbol symbol: variable moduleClassName location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,17] cannot find symbol symbol: variable moduleFactory location: class bugreport.modules.MYModuleModuleDescriptor [INFO] 6 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.130 s [INFO] Finished at: 2016-01-08T16:36:20+01:00 [INFO] Final Memory: 31M/315M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project bugreport: Compilation failure: Compilation failure: [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[6,40] package com.atlassian.plugin.descriptors does not exist [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[12,47] cannot find symbol [ERROR] symbol: class AbstractModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[20,5] method does not override or implement a method from a supertype [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[23,9] cannot find symbol [ERROR] symbol: variable super [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,44] cannot find symbol [ERROR] symbol: variable moduleClassName [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] /tmp/bugreport/src/main/java/bugreport/modules/MYModuleModuleDescriptor.java:[28,17] cannot find symbol [ERROR] symbol: variable moduleFactory [ERROR] location: class bugreport.modules.MYModuleModuleDescriptor [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project bugreport: Compilation failure 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:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) 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) at org.codehaus.classworlds.Launcher.main(Launcher.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.twdata.maven.trap.Dispatcher.invokeMavenMainMethod(Dispatcher.java:95) at org.twdata.maven.trap.Dispatcher.main(Dispatcher.java:30) at org.twdata.maven.trap.App.main(App.java:18) Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:911) at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 27 more [ERROR] [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
pom.xml
<?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>bugreport</groupId> <artifactId>bugreport</artifactId> <version>1.0.0-SNAPSHOT</version> <organization> <name>Example Company</name> <url>http://www.example.com/</url> </organization> <name>bugreport</name> <description>This is the bugreport:bugreport plugin for Atlassian JIRA.</description> <packaging>atlassian-plugin</packaging> <dependencies> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-api</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. --> <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x --> <!-- <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-core</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> <dependency> <groupId>com.atlassian.plugin</groupId> <artifactId>atlassian-spring-scanner-annotation</artifactId> <version>${atlassian.spring.scanner.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.atlassian.plugin</groupId> <artifactId>atlassian-spring-scanner-runtime</artifactId> <version>${atlassian.spring.scanner.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <version>1</version> <scope>provided</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> <!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit --> <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit --> <!-- <dependency> <groupId>com.atlassian.jira.tests</groupId> <artifactId>jira-testkit-client</artifactId> <version>${testkit.version}</version> <scope>test</scope> </dependency> --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.6</version> <scope>provided</scope> </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>maven-jira-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> <configuration> <productVersion>${jira.version}</productVersion> <productDataVersion>${jira.version}</productDataVersion> <!-- Uncomment to install TestKit backdoor in JIRA. --> <!-- <pluginArtifacts> <pluginArtifact> <groupId>com.atlassian.jira.tests</groupId> <artifactId>jira-testkit-plugin</artifactId> <version>${testkit.version}</version> </pluginArtifact> </pluginArtifacts> --> <enableQuickReload>true</enableQuickReload> <enableFastdev>false</enableFastdev> <instructions> <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key> <!-- Add package to export here --> <Export-Package>bugreport.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 - see https://extranet.atlassian.com/x/xBS9hQ --> <Spring-Context>*</Spring-Context> </instructions> </configuration> </plugin> <plugin> <groupId>com.atlassian.plugin</groupId> <artifactId>atlassian-spring-scanner-maven-plugin</artifactId> <version>1.2.6</version> <executions> <execution> <goals> <goal>atlassian-spring-scanner</goal> </goals> <phase>process-classes</phase> </execution> </executions> <configuration> <scannedDependencies> <dependency> <groupId>com.atlassian.plugin</groupId> <artifactId>atlassian-spring-scanner-external-jar</artifactId> </dependency> </scannedDependencies> <verbose>false</verbose> </configuration> </plugin> </plugins> </build> <properties> <jira.version>7.0.7</jira.version> <amps.version>6.2.1</amps.version> <plugin.testrunner.version>1.2.3</plugin.testrunner.version> <atlassian.spring.scanner.version>1.2.6</atlassian.spring.scanner.version> <!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. --> <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key> <!-- TestKit version 6.x for JIRA 6.x --> <testkit.version>6.3.11</testkit.version> </properties> </project>
atlassian-plugin.xml
<?xml version="1.0" encoding="UTF-8"?> <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}"/> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="bugreport"/> <!-- add our web resources --> <web-resource key="bugreport-resources" name="bugreport Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <resource type="download" name="bugreport.css" location="/css/bugreport.css"/> <resource type="download" name="bugreport.js" location="/js/bugreport.js"/> <resource type="download" name="images/" location="/images"/> <context>bugreport</context> </web-resource> <module-type name="MY Module Module Descriptor" i18n-name-key="my-module-module-descriptor.name" key="my-module-module-descriptor" class="bugreport.modules.MYModuleModuleDescriptor"> <description key="my-module-module-descriptor.description">The MY Module Module Descriptor Plugin</description> </module-type> </atlassian-plugin>
MYModuleDescriptor
package bugreport.modules; import bugreport.modules.MYModule; import com.atlassian.plugin.Plugin; import com.atlassian.plugin.PluginParseException; import com.atlassian.plugin.descriptors.AbstractModuleDescriptor; import com.atlassian.plugin.module.ModuleFactory; import org.dom4j.Element; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class MYModuleModuleDescriptor extends AbstractModuleDescriptor<MYModule>{ private static final Logger log = LoggerFactory.getLogger(MYModuleModuleDescriptor.class); public MYModuleModuleDescriptor(ModuleFactory moduleFactory) { super(moduleFactory); } @Override public void init(Plugin plugin, Element element) throws PluginParseException { super.init(plugin, element); } public MYModule getModule() { return moduleFactory.createModule(moduleClassName, this); } }
MYModule
package bugreport.modules; public interface MYModule { }
Am I missing something here? How can I fix this problem?
Community moderators have prevented the ability to post new answers.
@Theresa Henze has found the solution, adding com.atlassian.plugins:atlassian-plugins-core as provided-scope dependency solved the problem for me.
Nonetheless, this dependency should have been added by the Atlassian SDK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Theresa Henze Somehow it must have escaped the excessive unit and integration tests for the Atlassian plugin SDK ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For those less-familiar with Maven-speak:
Add this block in the <dependencies> block:
<dependency> <groupId>com.atlassian.plugins</groupId> <artifactId>atlassian-plugins-core</artifactId> <version>4.2.4</version> </dependency>
Can find a list of versions here: https://maven.atlassian.com/content/groups/public/com/atlassian/plugins/atlassian-plugins-core/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Michael,
I tried to add the above block to dependencies. but now I am getting this error
.0-SNAPSHOT: Could not find artifact com.atlassian.plugin:atlassian-plugin-core:jar:4.2.4 in atlassian-public (https://maven.atlassian.com/repository/public) ->
Please guide,
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.