Posts Tagged ‘maven’

Istock 948997140 (1)

Nexus Implementation using Ant Build scripts

Nexus implementation using Ant Build scripts In general, we keep the required compile-time jars in the local file system to use at the time of build. To avoid local file system dependencies and inconsistencies, we can use central repositories. By integrating with repositories like Maven and Nexus, we can save the memory, and it is […]

Two Business Boys Maximize Ideas With Mind Helmet

Static Code Analysis With Open Source Tools For AEM Projects

Implementing static code analysis might seem like a daunting task. In some cases, this may be true depending on logistics, timing, and other factors. There is however a quick and easy way to implement it for AEM projects. Using open-source tools such as CheckStyle, SpotBugs, PMD, and JaCoCo you will pay nothing and reap all the […]

Why and What to Validate in a Maven POM xml File

Following are some of the ways you can validate a pom.xml file: Maven itself validates some basic things that it need to build your project Manually Review pom.xml for projects and modules against a checklist to make sure everything is correct. Automate using scripting language like Python, Jython. Buy why would someone perform an extra […]

Overview of Java Continuous Integration and Release Management

There are as many ways to versioning, building, continuous integration and release management as there are development shops, however there are some best practices and luckily these best practices also have tool support. First the players Versioning Handles the source code versions, also includes branching. Could be an old one like CVS or a newer […]

Using WPS style Resource Environment Providers with Spring

Lee Burch, one of our extremely talented architects, gave me a writeup on “Using WPS style Resource Environment Providers with Spring”  He wanted to know where to post something like this and of course, my first thought is this blog.  His justification for posting this is that while it’s a common use case in the […]

Maven and WebSphere Web Applications (Part 2)

The parent project of the multiple module web application uses the uses the <packaging>pom</packaging> tag and several <module> tags to indicate that it is controlling the build order of several artifacts. The control is provided through the reactor plugin. The file structure that I use is: /ear /ear/pom.xml /web /web/pom.xml .classpath .project pom.xml The ear […]

Maven and WebSphere Web Applications (Part 1)

Web Applications are WAR files that include java code and JSP files with a web.xml deployment descriptor that are intended to implement dynamic web functionality (as opposed to static web functionality which uses HTML files). A portal team typically uses this packaging technique for the following artifacts: Portal themes and skins web services iWidgets WebSphere […]

WebSphere Portal and Maven (Part 6)

You use a parent pom.xml file that each portlet project inherits from to encapsulate your dependencies and maven plugin bindings. This keeps all this code out of sight from your portlet project. This first code posting shows the plugin definition under a pluginManagement section. This section is used to create any dependencies used by the […]

WebSphere Portal and Maven (Part 5)

I recommend using a maven plugin to package your logic. The reason is that the ANT antcall and XSLT tasks require file inputs (and do not support URIs). When you package these file resources into a jar (as you do with a plugin) then you can extract them to the correct relative filesystem locations as […]

WebSphere Portal and Maven (Part 4)

So far you have a compiled portlet and an XSLT capable of producing an xmlaccess request input file based on your specific portlet.xml file. Next you create an ANT script that is capable of submitting your request to the portal server. The script presented below diverges to distinguish between local portlet deployments (when you are […]

WebSphere Portal and Maven (Part 3)

The deployment of a portlet to a portal server is accomplished using xmlaccess (also called the XML configuration interface). At this point I need to point out that the deploy goal of maven is a separate concept from a portlet deployment. The maven deploy goal is intended to move your packaged maven artifact to the maven […]

WebSphere Portal and Maven (Part 2)

This post assumes that you have installed an automated build stack (which consists of maven, a maven compatible repository server, and a continuous integration (CI) server). This post also assumes that you have installed and configured the m2eclipse plugin for your RAD/Eclipse IDE. The details of these installations are beyond the scope of this series of posts. A maven […]

Load More