Skip to content

Commit 9c762ea

Browse files
committed
Ensure that SciJava-common's own annotations are indexed
... even if the tests are not run (which would trigger the EclipseHelper)... We still use SezPoz, but will switch in the next commit. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 884ad7c commit 9c762ea

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ Institute of Molecular Cell Biology and Genetics.</organizationName>
8282
<compilerArgument>-proc:none</compilerArgument>
8383
</configuration>
8484
</plugin>
85+
<plugin>
86+
<groupId>org.codehaus.mojo</groupId>
87+
<artifactId>exec-maven-plugin</artifactId>
88+
<executions>
89+
<execution>
90+
<phase>process-classes</phase>
91+
<goals>
92+
<goal>java</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
<configuration>
97+
<mainClass>org.scijava.annotations.EclipseHelper</mainClass>
98+
</configuration>
99+
</plugin>
85100
</plugins>
86101
</build>
87102

@@ -209,6 +224,46 @@ Institute of Molecular Cell Biology and Genetics.</organizationName>
209224
</plugins>
210225
</build>
211226
</profile>
227+
<profile>
228+
<id>only-eclipse</id>
229+
<activation>
230+
<property>
231+
<name>m2e.version</name>
232+
</property>
233+
</activation>
234+
<build>
235+
<pluginManagement>
236+
<plugins>
237+
<!-- This plugin's configuration is used to store Eclipse m2e settings
238+
only. It has no influence on the Maven build itself. -->
239+
<plugin>
240+
<groupId>org.eclipse.m2e</groupId>
241+
<artifactId>lifecycle-mapping</artifactId>
242+
<version>1.0.0</version>
243+
<configuration>
244+
<lifecycleMappingMetadata>
245+
<pluginExecutions>
246+
<pluginExecution>
247+
<pluginExecutionFilter>
248+
<groupId>org.codehaus.mojo</groupId>
249+
<artifactId>exec-maven-plugin</artifactId>
250+
<versionRange>1.2.1</versionRange>
251+
<goals>
252+
<goal>java</goal>
253+
</goals>
254+
</pluginExecutionFilter>
255+
<action>
256+
<ignore />
257+
</action>
258+
</pluginExecution>
259+
</pluginExecutions>
260+
</lifecycleMappingMetadata>
261+
</configuration>
262+
</plugin>
263+
</plugins>
264+
</pluginManagement>
265+
</build>
266+
</profile>
212267
</profiles>
213268

214269
<!-- NB: for project parent -->

0 commit comments

Comments
 (0)