Skip to content

Instantly share code, notes, and snippets.

@omnisis
Created September 22, 2011 00:14
Show Gist options
  • Save omnisis/1233705 to your computer and use it in GitHub Desktop.
Save omnisis/1233705 to your computer and use it in GitHub Desktop.
TYCHO POM.xml with aspects copied deps
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2011, EclipseSource and others All rights reserved. This
program and the accompanying materials are made available under the terms
of the Eclipse Public License v1.0 which accompanies this distribution, and
is available at http://www.eclipse.org/legal/epl-v10.html -->
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>com.eclipsesource.sandbox.weaving.demo.parent</artifactId>
<groupId>com.eclipsesource.sandbox.weaving.demo</groupId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../releng/pom.xml</relativePath>
</parent>
<artifactId>com.eclipsesource.sandbox.weaving.demo.chronometry</artifactId>
<packaging>eclipse-plugin</packaging>
<build>
<plugins>
<!-- bind copy-deps plugin => copy-resources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<!-- <version>2.3</version> -->
<executions>
<execution>
<id>copy-deps</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>./lib</outputDirectory>
<excludeTransitive>true</excludeTransitive>
<includeArtifactIds>json-lib</includeArtifactIds>
<includeTypes>jar</includeTypes>
</configuration>
</execution>
</executions>
</plugin>
<!-- bind AspectJ maven plugin => compile -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<verbose>true</verbose>
<complianceLevel>1.5</complianceLevel>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- Needed for proper AspectJ compilation -->
<dependencies>
<dependency>
<groupId>org.json</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment