How to configure Maven in Jaspersoft Studio? - java

I'm building a complex project that depends of various modules. For exporting to PDF I'm using JasperReport API and for developing reports I'm using Jaspersoft Studio, version 6.4.0.
In the way to avoid duplicated queries, I'm sending all data via parameters to the report, the type of this parameters are custom beans. Those beans are contained in another project (This must be so, because those beans are being used in view layer of another application). When I import those beans as jar library dependency contained in a ".jar" file directly in Jaspersoft Studio project, reports compile perfectly.
Now I'm trying to use Maven to include this dependencies, but Jaspersoft Studio doesn't contain Maven libraries, and I can't do this.
I've tried install maven from repository (http://download.eclipse.org/technology/m2e/releases) but this doesn't work:
Help > Install new software > ...
It tell me that require more bundles, I've install lot of bundles manually but always require more and I don't know if this is viable.
Has someone complete Maven configuration in Jaspersoft Studio? If so, I
would appreciate to know how. I can also use other options while using
Maven to manage the dependencies

I too faced similar issue.
Since maven (M2Eclipse) needs other dependent tools to function like WTP etc (you can see those in error log details), I figured it would be more time-consuming in finding all those dependencies & install them.
Ultimately, I installed jaspersoft plugin into my eclipse.
From the following link, you can install jaspersoft plugin from into your eclipse by drag-drop of the install button on your eclipse platform.
https://marketplace.eclipse.org/content/jaspersoft-studio
Or you can find it in eclipse marketplace & install it from there.
I installed it on STS. And it installed successfully.
Hope, someone finds this useful.

Related

Eclipse Plug-in Development - Build Issue

I am quite new to developing plugins with Eclipse and wondered if anyone can help me with an issue or pointers as to where I am going wrong. I am trying to compile a plugin for use in a Lotus Notes Update Site DB for XPages.
I downloaded the plugin code from:
https://github.com/timtripcony/oauth4domino/tree/master
Then I imported it into my plugin project in Eclipse and it doesn't appear to be building because when I view the original developers video https://www.youtube.com/watch?v=yxpTdbsuMaE at 10:44 he has the "Features" & "Plugins" folders and some jar files and I can't get mine to build them. Or am I doing something wrong?
Developers Eclipse Environment
My Eclipse Environment (Update Site greyed out and no Features or Plugings folders) Build All doesn't seem to build anything.
The site.xml isn't mapping to the feature correctly (it's showing greyed out).
The feature.xml in the Feature project (org.openntf.xsp.oauth.feature) picks up the plugin (or plugins - it can include multiple) project (org.openntf.xsp.oauth.library). The site.xml in the Update Site project (org.openntf.xsp.oauth.update) points to the feature (or features) project.
The version number of the feature may have changed. Delete it from the site.xml, then highlight the category and select "Add Feature..." and select the feature. Then you should be able to build it.

Automatic library download in Eclipse with Gradle

I'm developing an java application. I'm using eclipse Luna and Gradle as my build-system. I can define dependencies in my build script and they get downloaded on a build. That's no problem... But how can I tell eclipse, that it should automatically download and add the dependency to my build path?
I wan't to use auto completion and so on, without manually downloading an jar and copy it to the project.
Is it possible?
Regards
Marc
You need the Eclipse Gradle tooling, which adds lots of Gradle-related functionality. Most importantly, it manages your Eclipse project build path to match the build.gradle dependencies.

Eclipse plugin installation from Project File

I want to install eclipse plugin Agilereview from following link:
https://github.com/AgileReview-Project/AgileReview-EclipsePlugin
I downloaded the zip and unzipped it. I added it in eclipse as project and many projects added into workspace. When I tried to select all those projects and export them as deploy-able plugins in eclipse repository, eclipse doesn't allow it and always show error like plugin file missing. A problem is the zip file include many folders and many of those folder has its own plugin.xml file. Therefore, I think this Agilereview plugin itself is a combination of many plugins. I am sure that plugin is okay and its my mistake to install it.
Can anyone tell me, what is the mistake I am doing while installation? I want to install this plugin manually since later I need to optimize it.
Each of the folders org.agilereview.xxx is a separate Eclipse project. So you should use 'Import > Existing Projects into Workspace' to import these projects.
Since there are pom.xml files it looks like you should use maven and tycho to build the code.
For building RCP applications and plugins like Agilereview, which itself is a combination of many projects, you can check out the following tutorial:
http://www.vogella.com/tutorials/EclipseTycho/article.html
Eclipsetycho provides support for building eclipse components.
Install the maven eclipse tool, which will make your work easy.
http://download.eclipse.org/technology/m2e/releases
This is a pretty complex process, so spend some time to learn from the tutorial.

How do I migrate an Eclipse GAE project to Maven such that it won't be tied to Eclipse?

I have an open source Eclipse Google App Engine project (it's called LastCalc and it's open source, you can find it here, created using the GAE Eclipse plugin.
The problem is that several months ago I switched IDEs to IntelliJ IDEA. Since most of my projects were Maven-based this wasn't an issue, but LastCalc was stubbornly tied to Eclipse.
I'm hoping that someone can suggest an easy way to migrate this project to Maven such that it will work nicely in both IDEA and Eclipse.
We released the app engine maven plugin and a gustbook sample with that plugin. I don't think the manual migration is very difficult. You can create a directory structure similar to our guestbook sample and copy your source and resource files. Dependency might be a bit cumbersome, so maybe you can try the 'Convert to Maven Project' functionality of the newer version of m2eclipse.

How to add Maven to an existing IntelliJ Android project

I've been doing some research on adding Maven to an existing Android project and I'm struggling to see how this works. I've used Maven once at work on a web based project with Netbeans, but for this project I'm looking to use IntelliJ. I can create a new "Maven Module", but I already have an Android project so I'm not entirely sure that's the route I should be taking.
I found this post which does provide some detail, but not a step-by-step windows integration guide (at least that I'm seeing).
Is it possible for me to use Maven within an Android project?
Edit: I'm looking to do this within a Windows environment
To answer your question in the last sentence: Yes, you can use Maven to build an Android project.
You should use the maven-android-plugin in your Maven project. The best place to get started is https://code.google.com/p/maven-android-plugin/wiki/GettingStarted. Need to read up a bit, but definitely worth the effort.
If I have existing IDE specific Android project that you would like to switch to Maven, instead of trying to "add Maven support to an existing IntelliJ project", I would:
Create a new Maven based project using an appropriate archetype https://github.com/akquinet/android-archetypes
Copy existing source/resources to the Maven project directories.
If done correctly, you can open this (Android) Maven project (pom.xml) in IntelliJ and use it like an Android project (including GUI editor). IntelliJ automatically generates an IntelliJ project from Maven's pom.xml and detects the Android facet.
This way, your project also stays IDE agnostic - you can do everything (build/test/deploy) from command line as well - how Maven projects should be IMHO. :D

Categories

Resources