Tags » M2eclipse

The Easy Way to Import from Guava or Apache Commons

In 1991, Sun Microsystems (specifically, James Gosling) answered a long standing question. The Java programming language, at the time called Oak, was established and released to cut development times into small fractions of what they used to be. 1,102 more words

Michael Eric Oberlin

How-to: Set up Eclipse Subversive to work with Maven Projects

Last week, I configured Eclipse to check out Maven projects properly with the Subversive SVN plugin. This plugin will allow you to directly check in/out Maven code from your SVN into Eclipse, which will save you a lot of time. 321 more words

AspectJ - Plugin execution not covered by lifecycle configuration error in Eclipse

When you open your AspectJ project in Eclipse with the m2eclipse, the following error may appear.

  • Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin…

This is because m2e doesn’t provide lifecycle mapping for aspectj-maven-plugin. 192 more words

Java

How to install Eclipse Plugins using update site?

Following are the steps to install any Eclipse Plugin using that plugins update site.

For the purpose of explanation, i have taken an example of installing m2eclipse plugin. 146 more words

Eclipse

Creating a Simple Maven Project in eclipse (m2eclipse)

First and foremost you have to install maven  plugin to eclipse  by going through it’s own marketplace , Integrated link will guide you how to integrate Maven in to your Eclipse IDE   1,027 more words

Programming

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>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<!-- java project dependency -->
		<dependency>
			<groupId>pl.looksok.logic</groupId>
			<artifactId>ColCalcLogic</artifactId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>

		<!-- android apklib project dependency -->
		<dependency>
			<groupId>pl.looksok.currencyedittext</groupId>
			<artifactId>CurrencyEditText</artifactId>
			<version>0.0.1-SNAPSHOT</version>
			<type>apklib</type>
		</dependency>
	</dependencies>
</project> 715 more words
IT

Installing maven eclipse plugin

Eclipse IDE does not provide out of box support for Maven which is our favourite build tool these days. You can install m2eclipse plugin to provide code assist while editing pom.xml and support for building maven project from eclipse. 81 more words

Bharat Sharma