Posts Tagged “Apache Maven”

How to add AEM Dependency that is missing from public repository

![](/images/posts/2015-06-18-maven-dependency-missing-from-repo/mavendependency.png) So you just updated to the nice and shiny AEM 6.1, looking at new functionality and exploring around. Then you decide to tap into the [new api documentation](http://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/index.html). Then reality comes back in, the boss wants to connect a new product into AEM 6.1. Too easy! I'll use a...

Creating Detailed Packages with the CQ Deploy Plugin

Sometimes you may want to create a package with more descriptive information than the CQ Deploy Plugin provides out of the box.  You may want to customize the group or add a description or even add dependencies.   This article shows you how to include Package Metadata into your package and how to deploy the package with the CQ deploy plugin.Updating the PackageIn order to do this, first install the package into CQ and update...

Sling (sort of) Requires Javax Servlet

Recently I was refactoring some Maven POM's to reduce the number of dependencies and manage the dependency version from the reactor POM.   After I removed the duplicate dependencies I ran the build and almost immediately ran into this error:[ERROR] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Compilation failure{...Class}.java:[178,50] cannot access javax.servlet.http.HttpServletRequest class file for javax.servlet.http.HttpServletRequest not found            RequestPathInfo requestInfo = httpRequest.getRequestPathInfo() ;Since the error was related to Java Servlets, I assumed it was an issue with the servlet project. ...

Your Custom Namespace Retort

So - In my last article, I stuck my new Namespace in an OSGi bundle where it did not belong.  I wanted to verify the approach for adding the Namespace, and in my thinking at the time, it was the quickest location to do that.  It worked.  Great - now how do I put it in the "correct" location.You cannot simply remove the Sling Namespace metadata from the POM and redeploy.  Nope.  Still there.  What I...

CQ Dev Architecture #01 - We're Building What?

In this blog post, and the subsequent 6 or so we will discuss one possible way of building a complete CQ development environment, "DevOps", development architecture, or whatever moniker you prefer.  To roughly outline this a bit for you:What we are building (this post)Create yourself an AWS AMINeeded Servers and their ConfigurationIDE Setup - EclipseMaven POM creation, organization, and CQ ProjectsCI / Jenkins Setup, configuration and build projectsWhat I don't like about my setupSome of...

Releasing an Adobe CQ5 Project with Apache Maven

Apache Maven's release plugin is a powerful tool for automatically incrementing version, tagging code and creating a release. Unfortunately, this plugin is not very forgiving and doesn't do a good job of telling you what you did wrong when it fails. Setting up Maven to release your CQ5 project can seem daunting, but if you follow a few simple rules it can be easy to set up and save you a ton of time in the...

Announcing the Release of CQ Deploy Version 0.1.4

The Six Dimensions Labs team is proud to introduce version 0.1.4 of CQ Deploy, an Apache Maven plugin for deploying Maven projects into Adobe CQ repositories.The CQ Deploy plugin allows developers deploy CQ projects using Maven in an easy and consistant manner.  The CQ Deploy Plugin is capable of deploying both packages and bundles and is compatible with CQ 5.2-5.5.The current release, version 0.1.4 brings:Added the ability to skip the installation of bundles.Added the ability...

Introducing CQ Deploy Version 0.1.3

The Six Dimensions Labs team is proud to introduce version 0.1.3 of CQ Deploy, an Apache Maven plugin for deploying Maven projects into Adobe CQ repositories.The CQ Deploy plugin allows developers deploy CQ projects using Maven in an easy and consistant manner.  The CQ Deploy Plugin is capable of deploying both packages and bundles and is compatible with CQ 5.2-5.5.The current release, version 0.1.3 brings:Added unit tests to test failure resultsAdded support for optional install...

Maven CQ5 Package Build: Updating Properties.xml

This article describes the process of adding and automatically updating a CQ5 Package properties.xml as a part of a Maven build.Why do I need a Properties.xml?Certain CQ5.4 Hotfixes are known to cause issues where packages without a properties.xml will not install properly.  If you attempt to install a package into a CQ instance with the affected Hotfix, you will see this error:java.lang.NullPointerException at com.day.jcr.vault.packaging.impl.InstallHookProcessor.registerHooks(InstallHookProcessor.java:80) at com.day.jcr.vault.packaging.impl.ZipVaultPackage.prepareExtract(ZipVaultPackage.java:303) at com.day.jcr.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:341) at com.day.jcr.vault.packaging.impl.JcrPackageImpl.install(JcrPackageImpl.java:314) at com.day.crx.packaging.impl.J2EEPackageManager.consoleInstall(J2EEPackageManager.java:304) at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:152) at...

Introducing CQ Deploy Version 0.1.1

The Six Dimensions Labs team is proud to introduce version 0.1.1 of CQ Deploy, an Apache Maven plugin for deploying Maven projects into Adobe CQ repositories.The CQ Deploy plugin allows developers deploy CQ projects using Maven in an easy and consistant manner.  The CQ Deploy Plugin is capable of deploying both packages and bundles and is compatible with CQ 5.2-5.5.The current release, version 0.1.1 brings:Improved documentationImproved loggingA fix for an issue where creating new folders...

Introducing CQ Deploy: A Maven Plugin for Deploying CQ Projects

The Six Dimensions Labs team is proud to introduce CQ Deploy, an Apache Maven plugin for deploying Maven projects into Adobe CQ repositories.The CQ Deploy plugin provides two goals, to help developers deploy Maven projects:install-package This goal is used to install CQ Packages into CQ Repositories.install-bundle This gloal is used to install bundles into CQ Repositories.  This goal is different from the Maven Sling Plugin's deploy method.  Whereas the Maven Sling Plugin installs the bundle...

New in CQ 5.5: Dependency Finder

Adobe just released CQ 5.5, the latest version of their flagship enterprise Web Experience Management product.  Along with a new UI, numerous speed and stability fixes and deeper integrations with Adobe's other products, CQ 5.5 comes with some new tools to make using and developing on CQ easier. One of the new tools is the Dependency Finder, which comes shipped in the Apache Felix console.  This tool can be very useful to developers to find...