Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. How to Create .jar files from jasper project

How to Create .jar files from jasper project

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 62.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    L
    Luis Montaño
    wrote on last edited by
    #1

    Hi everyone,
    I have implemented netxms server with sql server 2016 and I have enabled reporting module. At the moment I can execute predefined report "Alarms Resolution time"
    Also I have downloaded JasperStudio to create reports and I can view the report properly (On Jasper Studio Console). However, I would like to generate .jar file to integrate it with netxms.
    I have seen some recomendation regarding use "maven package" command to generate .jar files. I have installed maven on windows but I realize that need a pom.xml file to make it wok properly.
    Anyone  has a quick guide that I can follow?. I have seen that file (pom.xml) on java projects. It does mean that I have to use a java IDE like eclipse and jasper complement?.
    What do you think would be the best way to do it?

    1 Reply Last reply
    0
    • L
      L
      Luis Montaño
      wrote on last edited by
      #2

      Also I think that would be nice if we can have a standard repository/post where all can share their customized reports.

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        I use maven for that (see attached pom.xml).

        buildUuid is used to distinguish between different reports, so if you want to see old runs of the report after changing report definition - uuid should remain the same.

        Directory structure should be like this:

        ❯ tree
        .
        ├── pom.xml
        ├── src
        │   └── main
        │       └── resources
        │           ├── i18n.properties
        │           └── main.jrxml
        

        Entry point for the report should be main.jrxml, you can use $P{SUBREPORT_DIR} to reference images or subreprots.


        pom.xml

        1 Reply Last reply
        0
        • L
          L
          Luis Montaño
          wrote on last edited by
          #4

          Thanks, it works perfectly 😄

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups