Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Use maven dependencies on CLASSPATH for external annotations in mvn run
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
  • Loading branch information
triller-telekom committed Nov 15, 2017
1 parent 063a556 commit cab572f
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,6 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>download-eea-zip</id>
<phase>initialize</phase>
<goals>
<goal>download-single</goal>
</goals>
<configuration>
<url>${eea-url}</url>
<fromFile>${eea-dir}/${eea-file}</fromFile>
<toDir>${basedirRoot}/targetplatform/eea/</toDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.commonjava.maven.plugins</groupId>
<artifactId>directory-maven-plugin</artifactId>
Expand Down Expand Up @@ -202,12 +183,18 @@
<artifactId>org.eclipse.jdt.annotation</artifactId>
<version>${jdt-annotations.version}</version>
</extraClasspathElement>
<extraClasspathElement>
<!-- TODO: insert one project that contains ALL annotations here-->
<groupId>org.lastnpe.eea</groupId>
<artifactId>jdk-eea</artifactId>
<version>0.0.1</version>
</extraClasspathElement>
</extraClasspathElements>
<compilerArgs>
<arg>-err:+nullAnnot(org.eclipse.jdt.annotation.Nullable|org.eclipse.jdt.annotation.NonNull|org.eclipse.jdt.annotation.NonNullByDefault),+inheritNullAnnot</arg>
<arg>-warn:+null,+inheritNullAnnot,+nullAnnotConflict,+nullUncheckedConversion,+nullAnnotRedundant,+nullDereference</arg>
<arg>-annotationpath</arg>
<arg>${basedirRoot}/targetplatform/eea/${eea-file}</arg>
<arg>CLASSPATH</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -588,4 +575,14 @@
</repository>
</repositories>

<dependencies>
<dependency>
<!-- TODO: insert one project that contains ALL annotations here-->
<groupId>org.lastnpe.eea</groupId>
<artifactId>jdk-eea</artifactId>
<version>0.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>

0 comments on commit cab572f

Please sign in to comment.