This repository was archived by the owner on Jul 6, 2018. It is now read-only.
File tree 4 files changed +39
-9
lines changed
4 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 1
1
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>
Original file line number Diff line number Diff line change 91
91
</execution >
92
92
</executions >
93
93
<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 >
100
100
</dependencies >
101
101
</plugin >
102
102
138
138
<artifactId >maven-plugin-api</artifactId >
139
139
<version >${maven.version} </version >
140
140
</dependency >
141
+
142
+ <!-- Must be installed manually, see misc/libs/annotations.jar and README -->
141
143
<dependency >
142
144
<groupId >com.intellij</groupId >
143
145
<artifactId >annotations</artifactId >
144
146
<version >11.1.2</version >
145
147
</dependency >
148
+
149
+ <!-- Must be installed manually, see misc/libs/javac2.jar and README -->
146
150
<dependency >
147
151
<groupId >com.intellij</groupId >
148
152
<artifactId >javac2</artifactId >
154
158
<version >1.8.4</version >
155
159
</dependency >
156
160
<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 >
160
164
</dependency >
161
165
</dependencies >
162
166
You can’t perform that action at this time.
0 commit comments