Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-59499

JIRA report development pages, code, git copy, are broken.

    XMLWordPrintable

Details

    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Problem Definition

      This tutorial was last tested with JIRA 6.0.4. as per official tutorial guide at Tutorial - Creating a JIRA report.

      With further testing on JIRA 6.1.7 and JIRA Core 7.0.9, it failed with compilation error. The provided online tutorial, and GIT repository version, do not compile as per stack trace below. Error stack trace for JIRA Core 7.0.9 is as attached stack trace.txt.


      C:\Development\Projects\jira-report-plugin1>atlas-clean
      Executing: "C:\Development\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat"
      clean -gs C:\Development\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.x
      ml
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for
      com.atlassian.plugins.tutorial.jira:jira-report-plugin:atlassian-plugin:1.0-SNAP
      SHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
      iler-plugin is missing. @ line 93, column 21
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten t
      he stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support buildin
      g such malformed projects.
      [WARNING]
      [INFO]
      [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
      ded.SingleThreadedBuilder with a thread count of 1
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building jira-report-plugin 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      Downloading: file://C:\Development\atlassian-plugin-sdk/repository/org/apache/ma
      ven/plugins/maven-compiler-plugin/maven-metadata.xml
      Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plug
      ins/maven-compiler-plugin/maven-metadata.xml
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugi
      ns/maven-compiler-plugin/maven-metadata.xml (769 B at 0.6 KB/sec)
      Downloading: file://C:\Development\atlassian-plugin-sdk/repository/org/apache/ma
      ven/plugins/maven-resources-plugin/maven-metadata.xml
      Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plug
      ins/maven-resources-plugin/maven-metadata.xml
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugi
      ns/maven-resources-plugin/maven-metadata.xml (715 B at 3.0 KB/sec)
      Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plug
      ins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugi
      ns/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom (4 KB at 15.4 KB/sec)
      Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plug
      ins/maven-plugins/22/maven-plugins-22.pom
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugi
      ns/maven-plugins/22/maven-plugins-22.pom (13 KB at 35.5 KB/sec)
      Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plug
      ins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugi
      ns/maven-clean-plugin/2.5/maven-clean-plugin-2.5.jar (25 KB at 71.8 KB/sec)
      [INFO]
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jira-report-plugin ---
      
      [INFO] Deleting C:\Development\Projects\jira-report-plugin1\target
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.175 s
      [INFO] Finished at: 2014-11-03T15:36:45-08:00
      [INFO] Final Memory: 11M/244M
      [INFO] ------------------------------------------------------------------------
      C:\Development\Projects\jira-report-plugin1>atlas-run
      Executing: "C:\Development\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat"
      com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:5.0.4:run -gs C:\Develo
      pment\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for
      com.atlassian.plugins.tutorial.jira:jira-report-plugin:atlassian-plugin:1.0-SNAP
      SHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
      iler-plugin is missing. @ line 93, column 21
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten t
      he stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support buildin
      g such malformed projects.
      [WARNING]
      [INFO]
      [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
      ded.SingleThreadedBuilder with a thread count of 1
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building jira-report-plugin 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] >>> maven-amps-dispatcher-plugin:5.0.4:run (default-cli) @ jira-report-pl
      ugin >>>
      Downloading: file://C:\Development\atlassian-plugin-sdk/repository/org/apache/ve
      locity/velocity/maven-metadata.xml
      Downloading: http://repo.maven.apache.org/maven2/org/apache/velocity/velocity/ma
      ven-metadata.xml
      Downloading: https://maven.atlassian.com/repository/public/org/apache/velocity/v
      elocity/maven-metadata.xml
      Downloaded: http://repo.maven.apache.org/maven2/org/apache/velocity/velocity/mav
      en-metadata.xml (598 B at 1.1 KB/sec)
      Downloaded: https://maven.atlassian.com/repository/public/org/apache/velocity/ve
      locity/maven-metadata.xml (942 B at 1.1 KB/sec)
      [INFO]
      [INFO] --- maven-jira-plugin:5.0.4:copy-bundled-dependencies (default-copy-bundl
      ed-dependencies) @ jira-report-plugin ---
      [INFO] Unpacking C:\Development\atlassian-plugin-sdk\.m2\repository\com\google\c
      ode\gson\gson\2.2.2-atlassian-1\gson-2.2.2-atlassian-1.jar to C:\Development\Pro
      jects\jira-report-plugin1\target\classes with includes "" and excludes "META-INF
      /MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
      [INFO]
      [INFO] --- maven-jira-plugin:5.0.4:compress-resources (default-compress-resource
      s) @ jira-report-plugin ---
      [INFO] Compiling javascript using YUI
      [INFO] compressing to C:\Development\Projects\jira-report-plugin1\target\classes
      \js\jira-report-plugin-min.js
      [INFO] compressing to C:\Development\Projects\jira-report-plugin1\target\classes
      \css\jira-report-plugin-min.css
      [INFO] Compressing XML files
      [INFO] compressing to C:\Development\Projects\jira-report-plugin1\target\classes
      \atlassian-plugin.xml
      [INFO]
      [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ jira-repor
      t-plugin ---
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
      i.e. build is platform dependent!
      [INFO] Copying 10 resources
      [INFO]
      [INFO] --- maven-jira-plugin:5.0.4:filter-plugin-descriptor (default-filter-plug
      in-descriptor) @ jira-report-plugin ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO]
      [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ jira-report-plu
      gin ---
      [INFO] Changes detected - recompiling the module!
      [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
      uild is platform dependent!
      [INFO] Compiling 4 source files to C:\Development\Projects\jira-report-plugin1\t
      arget\classes
      [INFO] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian/
      plugins/tutorial/jira/reports/CreationReport.java: Some input files use or overr
      ide a deprecated API.
      [INFO] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian/
      plugins/tutorial/jira/reports/CreationReport.java: Recompile with -Xlint:depreca
      tion for details.
      [INFO] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian/
      plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java: C:\Developm
      ent\Projects\jira-report-plugin1\src\main\java\com\atlassian\plugins\tutorial\ji
      ra\reports\SingleLevelGroupByReportExtended.java uses unchecked or unsafe operat
      ions.
      [INFO] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian/
      plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java: Recompile w
      ith -Xlint:unchecked for details.
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian
      /plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java:[90,42] can
      not find symbol
        symbol:   class OneDimensionalHitCollector
        location: class com.atlassian.plugins.tutorial.jira.reports.SingleLevelGroupBy
      ReportExtended
      [ERROR] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian
      /plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java:[131,40] no
       suitable constructor found for FieldVisibilityManagerImpl()
          constructor com.atlassian.jira.web.FieldVisibilityManagerImpl.FieldVisibilit
      yManagerImpl(com.atlassian.jira.issue.fields.FieldManager,com.atlassian.jira.pro
      ject.ProjectManager,com.atlassian.jira.config.ConstantsManager,com.atlassian.jir
      a.issue.fields.layout.field.FieldLayoutManager,com.atlassian.jira.config.SubTask
      Manager) is not applicable
            (actual and formal argument lists differ in length)
          constructor com.atlassian.jira.web.FieldVisibilityManagerImpl.FieldVisibilit
      yManagerImpl(com.atlassian.jira.issue.fields.FieldManager,com.atlassian.jira.pro
      ject.ProjectManager) is not applicable
            (actual and formal argument lists differ in length)
      [INFO] 2 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.461 s
      [INFO] Finished at: 2014-11-03T15:37:26-08:00
      [INFO] Final Memory: 55M/378M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
      2:compile (default-compile) on project jira-report-plugin: Compilation failure:
      Compilation failure:
      [ERROR] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian
      /plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java:[90,42] can
      not find symbol
      [ERROR] symbol:   class OneDimensionalHitCollector
      [ERROR] location: class com.atlassian.plugins.tutorial.jira.reports.SingleLevelG
      roupByReportExtended
      [ERROR] /C:/Development/Projects/jira-report-plugin1/src/main/java/com/atlassian
      /plugins/tutorial/jira/reports/SingleLevelGroupByReportExtended.java:[131,40] no
       suitable constructor found for FieldVisibilityManagerImpl()
      [ERROR] constructor com.atlassian.jira.web.FieldVisibilityManagerImpl.FieldVisib
      ilityManagerImpl(com.atlassian.jira.issue.fields.FieldManager,com.atlassian.jira
      .project.ProjectManager,com.atlassian.jira.config.ConstantsManager,com.atlassian
      .jira.issue.fields.layout.field.FieldLayoutManager,com.atlassian.jira.config.Sub
      TaskManager) is not applicable
      [ERROR] (actual and formal argument lists differ in length)
      [ERROR] constructor com.atlassian.jira.web.FieldVisibilityManagerImpl.FieldVisib
      ilityManagerImpl(com.atlassian.jira.issue.fields.FieldManager,com.atlassian.jira
      .project.ProjectManager) is not applicable
      [ERROR] (actual and formal argument lists differ in length)
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
      ch.
      [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 rea
      d the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
      eption
      C:\Development\Projects\jira-report-plugin1>
      

      Suggested Solution

      Please update the documentation and the code to be compatible with latest JIRA version.

      Attachments

        Issue Links

          Activity

            People

              mpaisley Mel Paisley
              e9eafe07e38a Jason Platt
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: