Maven and IBM worklight - ibm-mobilefirst

Is there's a way I can mavenize IBM Worklight adapters build rather than using ANT ? Benefit i get from this is i need not require to install IBM worklight on my build server as well as for development.
If not maven then do we have any other way to achieve this ?

WL doesn't have maven support. This said, you can integrate ANT tool WL provides in your maven build. You don't need the whole WL installed on your build server, just ANT runtime and ANT tool jar provided by WL. From there on - http://maven.apache.org/plugins/maven-antrun-plugin/

Related

Mule and Gradle build tool

Questions:
1) Can I use Mule(3.7) application with Gradle, is it fully supported?
2) Continuous Integration runs with Gradle and Jenkins for other non Mule based applications in our organization, can I have local Maven build with Anypoint studio and CI with Gradle? Is there any issues with this kind of configuration, since Mule is well built with Maven build tool?
I have gone through the Gradle plugin for Mule here
Yes, you can use it but it is not a MuleSoft officially supported tool. Here is the link to the GitHub project. The problem with using two different build tools is that the configuration will probably get out of sync at some point. Anypoint Studio doesn't provide a very complete Maven support anyway, so you could just use Gradle and update Studio dependencies manually or try using an Eclipse Gradle plugin. This can still be out of sync, but will have to maintain only Gradle config.

Dependencies / Source of certain JAR files with Worklight version

I have downloaded an iFix from IBM fix central (6.1.0.02.20150520-1015) for Worklight Server and Worklight Studio but I could not locate the below jar files.
Applicationcenterdeploytool.jar
Ibm-java-x86_64-sdk-7.0.-6.0.bin
Json4j.jar
Wlpdevelopers-runtime-8.5.5.2.jar
Can you confirm if the above jar files are also specific to worklight version and will be seen post WL server installation or are they generic files which can used with any WL version which can be used by jenkins build scripts.
Ibm-java-x86_64-sdk-7.0.-6.0.bin - this is IBM's version of Java. This is not bundled with either a GM or iFix or Fix Pack. You're downloading this yourself prior to any installation, if you choose to use it.
Wlpdevelopers-runtime-8.5.5.2.jar - I have no idea what that is. Looks like some WAS or WAS Liberty profile file, which you also install separately from Worklight
Applicationcenterdeploytool.jar - located post-install at install-directory/ApplicationCenter/tools/applicationcenterdeploytool.jar and is the deploy tool of Application Center, used by the ant task scripts.
Json4j.jar - located post-install at install-directory/ApplicationCenter/tools/json4j.jar and is used to handle the JSON file format

Can IBM Worklight Mobile build faster

Currently I am using Eclipse. Can I use another IDE or a customized configuration for Eclipse to build for my project faster? I want to increase my production time.
Worklight 6.2 and above provide a command line interface which you can use instead of Eclipse.
With some development effort you could also take the CLI and hook it to other IDEs that provide pluggability options.
You can read more about the CLI, here:
For Worklight 6.2: Command Line Interface for IBM Worklight Developers
For MobilFirst 6.3 and above: Using CLI to create, build, and manage MobileFirst project artifacts

IBM Worklight - Deploy all adapters at once

I have total 35 (and increasing) Worklight Adapters in my Worklight Hybrid App.
Now every time I power on my Mac, I need to deploy all those work light adapters ONE-BY-ONE
Is there any method by which I can deploy awl the adapters in single shot. As of now, I am unable to find out the way.
Anyone else faced the similar problem?
I am using:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426
If that matters.
A Deploy All Adapters action is not available in Worklight Studio, but sounds like a rather useful feature for cases like yours. Feel free to submit a feature request.
After you power on the computer, open Eclipse and start the Worklight Development Server, and then visit Worklight Console, the apps and adapters are not available? I find it highly unlikely that you will need to re-deploy all of your adapters...
A possible workaround for it will be to enhance the Ant script that deploys apps and adapters, to deploy them all using a loop. Also see:
Ant tasks for building and deploying applications and adapters

How to add facets to an IntelliJ Java/Gradle project to create a self-sufficient war

Background
Download and install IntelliJ 12.04 Community Edition
Create project from external source (point to Gradle build script)
Specify JDK 7 as project's SDK
Note: Project is open source at github: Netflix/karyon
Problem
Want to simply war the project. In playing on the commercial version with GAE plugin installed, I was able to specify the Web Application facet, and create the war via the artifact functionality. With the setup described above, the only available facet is Android.
Question
How can I create a self sufficient war (includes all dependencies and hence can be dropped in any container without additional classpath requirements) from within the IDE?
IntelliJ IDEA Community edition doesn't have Java EE support, you need to use some other tool for packaging the war (e.g. Maven).