Compiling Izpack project - java

I'm trying to build the Izpack project in Eclipse to add my own panels.
I was able to build the sample provided on the command line, but not in eclipse.
I've read the documentation and I'm still a bit confused.
My questions, does the actual Izpack source code have to be included with the project (if so which components and where) or is it enough to have the install.xml ?
I've set up the debug config like the doc says but Eclipse can't find the compiler class to run.

Hello
In the link below you will find a nice help about izpack installer.
http://www.imrantariq.com/blog/?p=89
Link below contains a detailed pdf to make installer with izpack.
http://www.imrantariq.com/blog/?attachment_id=112
cheers
Imran tariq

I managed to build the izpack project as follows
Checkout as java project
On 'Run configurations' make a Maven Build (eclipse m2e plugin). On workspace
select the root directory of the checked out project and on Goals put 'clean install'
I managed to build working izpack up to 5.0.6 with this way.

Related

How can I add Normal Java project capabilities to EJB project in Eclipse (.ear)?

Just started working with EJB (already developed project).
Imported the project from git and converted it to Maven project. However the project looks like a normal folder structure unlike regular java project. I cannot have any eclipse Java capabilities in side those files. Though they are Java files they look like class files to me with different symbol (can see that in image).
It won't compile unless I do maven build. Eclipse not showing any errors for those files even there are compile errors.
Running each time maven kills time and its irritating too.
Any help will be greatly appreciated. How to make that a normal Java project with eclipse compiler capabilities.
What configuration I have to do achieve this ?
Try running the command mvn eclipse:eclipse from the root folder of the project. It will create eclipse configuration files after which the project can be imported in Eclipse.

How to attach java docs to jar in osgi plugin?

I'm trying to attach the java docs in my eclipse IDE and I am a little bit confused.
I've seen an answer where I had to click on project> properties> JavaDoc location> then insert java doc/api.
Yet another said I had to click on Window> prefernce> Installed Jre>edit> select /usr/lib/jvm/java-7-oracle/jre/lib/rt.jar.> attach java doc/api. I did that for all the jar files
In both cases, it doesn't seem to work. I still see the not attached java doc message for packagejavax.jms. I'd like to have the doc for all the classes I have in my eclipse project. It is an osgi project so I'd like to do it for the whole project and not for individual plugins.
****UPDATE****
Also tried using maven eclipse integration i.e install plugin> click on download artifact source and javaDoc. Didn't work.
It looks like it has to do with the plugin dependencies. When I attach the java doc to the jar in the plugin dependency and restart eclipse there's no javadoc attached. I guess there's another way of doing so with jars found in Plug-in dependencies.
Can anyone help? Thanks.

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.

IntelliJ Plugin Dev - Cannot prepare plugin for deployment

I am trying to download the source of an IntelliJ IDEA Plugin (for JBehave integration) from a github repo, and basically build it into a jar, which I can distribute to my team (which they can then drop into their plugin directory for installation).
What I have done so far:
configured the IDEA SDK (I downloaded the source for latest version of the community edition and built it)
Downloaded the source from the repo via zip, as well as git clone
Created the project from scratch, as well as trying to "Import"
Ran mvn install in the command line, ran "Make Project"
Then I looked for the command (according to this tutorial) to
Build | Prepare Plugin Module for Deployment.
As you can see, the command is not there.
What am I doing wrong? I have tried fiddling with the project/module settings ad nauseum and I feel like I'm getting nowhere.
It seems like I was using an outdated version of IntelliJ (10.5). I ran IntelliJ Idea 12, and I created the project IntelliJ Platform Plugin (as #CrazyCoder suggested). From there I was able to build it.

Starting point for creating installer using izpack 5 and maven

I already have Maven creating an assembly widget1.0-distribution.zip containing:
widget-1.0
widget-1.0/lib/widget.jar
widget-1.0/lib/3rdpartyjar1.jar
widget-1.0/lib/3rdpartyjar2.jar
widget-1.0/widget.sh
widget-1.0/widget.properties
widget-1.0/widget.exe
widget-1.0/widget.ini
Now I just want to use Izpack 5 to create an installer which allows the user to decide where to simply install the widget application, maintaining the same folder structure.
Ive used Izpack 4.3.5 before but what im struggling with is getting started with integrating this with maven, I have created my install.xml but cannot see how this plugins in to the maven pom.xml
The IzPack wiki has quite a detailed page on how to build an Izpack 5 Installer with maven: https://izpack.atlassian.net/wiki/display/IZPACK/Compiling+Using+Maven
Is there anything you miss?

Categories

Resources