Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Commit b4b566c

Browse files
committedNov 6, 2012
Merge pull request #1 from serso/master
Installation improvements + README
2 parents 203b66a + 428fb52 commit b4b566c

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed
 

‎README

+26
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
11
A Maven plugin that uses IntelliJ's javac2 byte-code instrumentation.
2+
3+
INSTALLATION
4+
5+
Some dependencies are not in Maven Central and thus must be installed in your local repository.
6+
These dependencies are stored under misc/libs folder and can be installed using next commands:
7+
mvn install:install-file -Dfile=annotations.jar -DgroupId=com.intellij -DartifactId=annotations -Dversion=11.1.2 -Dpackaging=jar
8+
mvn install:install-file -Dfile=javac2.jar -DgroupId=com.intellij -DartifactId=javac2 -Dversion=11.1.2 -Dpackaging=jar
9+
10+
After successful maven installation plugin must be installed in local Maven repository. Go to the target directory and install plugin using next command:
11+
mvn install:install-file -Dfile=javac2-maven-plugin-1.0.1.jar -DgroupId=com.electriccloud -DartifactId=javac2-maven-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin
12+
13+
Plugin can be used in your pom.xml, e.g. in plugins section:
14+
<plugin>
15+
<groupId>com.electriccloud</groupId>
16+
<artifactId>javac2-maven-plugin</artifactId>
17+
<version>1.0.1</version>
18+
<executions>
19+
<execution>
20+
<id>@NotNull Instrumentation</id>
21+
<goals>
22+
<goal>instrument</goal>
23+
</goals>
24+
<phase>process-classes</phase>
25+
</execution>
26+
</executions>
27+
</plugin>

‎misc/libs/annotations.jar

18.6 KB
Binary file not shown.

‎misc/libs/javac2.jar

386 KB
Binary file not shown.

‎pom.xml

+13-9
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
</execution>
9292
</executions>
9393
<dependencies>
94-
<dependency>
95-
<groupId>org.jfrog.maven.annomojo</groupId>
96-
<artifactId>maven-plugin-tools-anno</artifactId>
97-
<version>1.4.1</version>
98-
<scope>runtime</scope>
99-
</dependency>
94+
<dependency>
95+
<groupId>br.com.ingenieux.maven.annomojo</groupId>
96+
<artifactId>org.jfrog.maven.maven-plugin-tools-anno</artifactId>
97+
<version>1.4.1</version>
98+
<scope>runtime</scope>
99+
</dependency>
100100
</dependencies>
101101
</plugin>
102102

@@ -138,11 +138,15 @@
138138
<artifactId>maven-plugin-api</artifactId>
139139
<version>${maven.version}</version>
140140
</dependency>
141+
142+
<!-- Must be installed manually, see misc/libs/annotations.jar and README -->
141143
<dependency>
142144
<groupId>com.intellij</groupId>
143145
<artifactId>annotations</artifactId>
144146
<version>11.1.2</version>
145147
</dependency>
148+
149+
<!-- Must be installed manually, see misc/libs/javac2.jar and README -->
146150
<dependency>
147151
<groupId>com.intellij</groupId>
148152
<artifactId>javac2</artifactId>
@@ -154,9 +158,9 @@
154158
<version>1.8.4</version>
155159
</dependency>
156160
<dependency>
157-
<groupId>org.jfrog.maven.annomojo</groupId>
158-
<artifactId>maven-plugin-anno</artifactId>
159-
<version>1.4.1</version>
161+
<groupId>br.com.ingenieux.maven.annomojo</groupId>
162+
<artifactId>org.jfrog.maven.maven-plugin-tools-anno</artifactId>
163+
<version>1.4.1</version>
160164
</dependency>
161165
</dependencies>
162166

0 commit comments

Comments
 (0)
This repository has been archived.