Skip to content

Commit

Permalink
Merge pull request #330 from OpenHFT/disable_code_generation
Browse files Browse the repository at this point in the history
Fix Java 11 compilation #325
  • Loading branch information
minborg authored Sep 6, 2021
2 parents 23d33b1 + 1f683f1 commit 2881940
Show file tree
Hide file tree
Showing 6 changed files with 17,851 additions and 19 deletions.
9 changes: 9 additions & 0 deletions docs/CM_FAQs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,14 @@ For Chronicle Map, it is somewhat more complicated because Chronicle Map reads a

It follows that if you have quite a few maps, especially large maps, and your page cache is not large enough to hold all of these maps, then a read, or write, to a random entry may cause a cache miss. This in turn would cause a disk read or write. If you were going to install high-speed SSDs, Chronicle recommends that you use them to store the Chronicle maps and leave the slower cheap disks for the Chronicle queues. In addition, you should avoid using network attached storage, as this usually offers significantly less performance than local disks.

=== Question

I am trying to compile in IntelliJ 2020.x and the compiler is blowing up with some strange annotation-processing
related errors.

=== Answer

link:https://www.jetbrains.com/help/idea/delegate-build-and-run-actions-to-maven.html#delegate_to_maven[Configure IntelliJ to use maven to build the project]

'''
<<../ReadMe.adoc#,Back to ReadMe>>
40 changes: 21 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -230,24 +230,6 @@
<version>1.11</version>
<scope>provided</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.junit.jupiter</groupId>-->
<!-- <artifactId>junit-jupiter</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.junit.jupiter</groupId>-->
<!-- <artifactId>junit-jupiter</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.junit.jupiter</groupId>-->
<!-- <artifactId>junit-jupiter</artifactId>-->
<!-- <version>RELEASE</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->

</dependencies>

Expand Down Expand Up @@ -293,6 +275,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-Xlint:deprecation</compilerArgument>
<compilerArgument>-proc:none</compilerArgument>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
Expand Down Expand Up @@ -514,6 +497,25 @@
</plugins>
</build>
</profile>
<profile>
<!-- Note that CompiledXXXX.java files have been pre-compiled and added to src/main/java/net/openhft/chronicle/map/impl/ -->
<id>enable_code_generation</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-Xlint:deprecation</compilerArgument>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<repositories>
Expand Down Expand Up @@ -565,7 +567,7 @@
<url>scm:git:[email protected]:OpenHFT/Chronicle-Map.git</url>
<connection>scm:git:[email protected]:OpenHFT/Chronicle-Map.git</connection>
<developerConnection>scm:git:[email protected]:OpenHFT/Chronicle-Map.git</developerConnection>
<tag>ea</tag>
<tag>ea</tag>
</scm>

</project>
Loading

0 comments on commit 2881940

Please sign in to comment.