Automate Jenkins job creation with DSL

Jenkins job creation in Web UI is simple but still - manual creation takes time. Depending on your coding and testing practices you may find it acceptable or burdensome and costly. Jenkins DSL allows you to define Jenkins job in groovy script file, put it on VCS and allow Jenkins to create and execute jobs … Continue reading Automate Jenkins job creation with DSL

Eclipse: Aspectj Maven plugin execution not covered by lifecycle

Maven and eclipse integration is not straightforward. There is one m2e eclipse plugin giving support for Maven itself and a lot of other Eclipse plugins to support Maven plugins used in pom.xml. One of these plugins is theĀ org.codehaus.mojo:aspectj-maven-plugin - the aspectJ Maven plugin. So when you use it in pom.xml and import into eclipse, you … Continue reading Eclipse: Aspectj Maven plugin execution not covered by lifecycle

Maven and apklib: Duplicated file error

The maven build error occurred when I hadĀ two Android projects: the one is apklib and the second one that is the actual application (the apk file) that uses apklib. The error is saying that apk project contains duplicated R.java and BuildConfig.java files under target directory. The first file comes from apk project, and the second … Continue reading Maven and apklib: Duplicated file error

Maven & Android: complete pom.xml files contents

The complete pom.xml file I use for Android projects is as follows. 1. Main Android application's pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>pl.looksok</groupId> <artifactId>ColCalc</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>apk</packaging> <build> <sourceDirectory>${project.basedir}/src</sourceDirectory> <plugins> <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <version>3.3.2</version> <configuration> <androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile> <assetsDirectory>${project.basedir}/assets</assetsDirectory> <resourceDirectory>${project.basedir}/res</resourceDirectory> <genDirectory>${project.basedir}/gen</genDirectory> <deleteConflictingFiles>true</deleteConflictingFiles> <undeployBeforeDeploy>true</undeployBeforeDeploy> <sdk> <platform>7</platform> </sdk> </configuration> <extensions>true</extensions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> … Continue reading Maven & Android: complete pom.xml files contents

Use Maven with Android project

In order to mavenize (existing or not) Android project in Eclipse few steps are required: 1. Install m2eclipse plugin All instructions how to do it, You will find here. 2. InstallĀ 'Android Configurator for M2E' in Eclipse go to menu: Help -> Eclipse Marketplace search for 'Android Configurator for M2E' and install it: Here is plugin's … Continue reading Use Maven with Android project

Basic Maven (m2eclipse / pom.xml) configuration

Introducing Maven to Eclipse projects from scratch was described in my previous post. Now the basic usage and configuration will be described. 1a. Adding external jars (Maven dependencies) To add some external jar file or reference to another workspace project you will need to: Right Click on project -> Maven -> Add dependency You can … Continue reading Basic Maven (m2eclipse / pom.xml) configuration

Incorporate Maven into Eclipse project

Here is short instruction how to incorporate Maven into existing Eclipse projects from scratch, step by step. The goal of Maven introduction presented here is quite generic, however I installed Maven to manage dependencies (jars). Maven build, installs or clean functions are not used by me. If You need to know more about maven itself … Continue reading Incorporate Maven into Eclipse project