Posts

MAVEN PLUGIN(S) SERIES - support zip packaging

Purpose of series ...  In my "day by day" experience as Java Architect, i'm involved in deep on processes concerning  Application Lifecycle Management    (ALM). We use  Apache Maven  as ingredient technology and we always dealing with need to find the best plugin (Mojo) that accomplish our requirements. So i've decided to share this experience providing a briefly description of most useful (or unusual) plugins discovered during my work. First One - ZIP Bundle Maven Plugin Description Typically a Maven user, to provide a zip as deliverable of his project, uses the famous  maven assembly plugin   The common approach is declare the packaging of the project as pom and invoke the assembly plugin, for zip creation and attachment it to the deploy phase. The  ZIP Bundle Maven Plugin , allow us to continue using assembly plugin and also to declare the packaging as zip instead of pom.   Usage The basic usage is shown below (f...

How to Use Aether in Maven Plugins

Form Relase 3.x Maven has introduced Aether Repository Api Technology. Below an interesting article for starting to play with it How to Use Aether in Maven Plugins

Maven Best Practices

In my continuous reading through the blogs i've found this very useful article regarding Maven. It start with the follow sentence: Love or hate it… he will stay for a moment. So let’s apply the best practices to our poms and maven builds. Below the Table Of Contents  Make the build reproducible - Always specify a version for Maven2 plugins - Minimize number of SNASPHOT dependencies - Use dependency management section - Beware of relocation in maven repo - After a dependency modification, double check the produced artifacts Use and abuse of modules - more “technical/layered” - more business oriented Make the build maintainable - Prefer default directory layout - Avoid duplication by moving common tags to parent pom - Always specify a version of dependencies in a parent pom - Use Properties Liberally - Minimize the number of Profiles Make the build portable - Don’t commit eclipse and maven artifacts - Don't modify pom/artifactsin your ...

Contribution to JNA project

Finally has been accepted my contribution to very useful JNA project. This project provides a easy way to access at Native API of the hosting system, from Java I've added support of a new API  concerning the WinOS 32 /64 UINT_PTR  SHAppBarMessage ( DWORD dwMessage, APPBARDATA pData ); This API allows to resize window's desktop and is very useful to put on desktop, custom toolbar,  that  never will be hidden by other windows and in the same time never will hide other windows.

Release 2.1 of Cordova-POC android app

Image
A new release 2.1 of android app Cordova-POC is out! Cordova-POC has been created to help developers, to do demo of your Cordova/Phonegap/HTML5 app to customer upon smartphone on-the-fly. This new release has added JSFiddle integration. This means that you can have a list of your public fiddles with a possibility to preview and download it in order to use fiddle also in offline mode watch the video to have further details

Paste Text on Android Emulator

Developing on Android i've found an unexpected bottleneck using Emulator  to "Type Text". Since seems not possible to use the "copy&paste" from host system to the  emulator, i've googled to find out a solution. As usual StackOverflow has provided me the solution that i summarize below from console: >  adb shell input text 'my string here' And magic happens ....

Google Web Toolkit Vs AngularJS

Image
Lately  i've been involved in a discussion about ... which technology we have to use to build best  enterprise web application ?  The question was very interesting so, all involved actors started to put on the table  a lot of different technologies. The most sponsorized ones were been  GWT and AngularJS. But ,from my perspective, we have first to understand the context where such applications will be  developed in order to , as much as possible, understand of what we need and not what we like . The Context Let assume that we have a group of 10 developers skilled in java  and with a enough know-how about web design (i.e. html/css knowledge ). They use Eclipse IDE to write code and maven to build,package and deploy. Finally the  backend is entirely written in java The Choice Considering that  both of these technologies seem to fill the same space, but coming at it from different angles,  the choices behind the decision cou...