I have some issues on building on el9 with the java. I had to make some changes
to mesos.pom[1]. But that got me into that javah is not supported any more,
resulting in this error[2]. I did not really know how to fix this so I thought
lets install javah from old java version but even that did not work because
that generated these errors.
Error: Could not find class file for 'org.apache.mesos.Log'.
Error: Could not find class file for 'org.apache.mesos.state.AbstractState'.
Error: Could not find class file for 'org.apache.mesos.v1.scheduler.V1Mesos'.
Would be nice if someone could share their solution for this ;)
[1]
@@ -69,8 +69,8 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.6</source>
- <target>1.6</target>
+ <source>11</source>
+ <target>11</target>
</configuration>
</plugin>
<!-- Skip tests entirely -->
@@ -130,7 +130,7 @@
<!-- Shade protobuf dependency. -->
<plugin>
<artifactId>maven-shade-plugin</artifactId>
- <version>2.2</version>
+ <version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
[2]
cd /home/mesos/build/src/java && Java_JAVAH_EXECUTABLE-NOTFOUND -d jni
-classpath
/home/mesos/build/src/java/target/mesos-1.12.0.jar:/home/mesos/build/src/java/target/dependency/protobuf-java-3.5.0.jar
org.apache.mesos.Log org.apache.mesos.MesosExecutorDriver
org.apache.mesos.MesosSchedulerDriver org.apache.mesos.state.AbstractState
org.apache.mesos.state.LevelDBState org.apache.mesos.state.LogState
org.apache.mesos.state.Variable org.apache.mesos.state.ZooKeeperState
org.apache.mesos.v1.scheduler.V1Mesos org.apache.mesos.v1.scheduler.V0Mesos