ExtentReports error on compiling through Maven - maven

I'm trying to do mvn install from cmd and then i starts compiling the files and then i get the following error which leads to Build failure.
[INFO] Compiling 5 source files to C:\workspace\tes\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[17,39] package com.relevantcodes.extentreports does not exist
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[18,39] package com.relevantcodes.extentreports does not exist
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[19,39] package com.relevantcodes.extentreports does not exist
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[31,9] cannot find symbol
symbol: class ExtentReports
location: class Test.tes.MyHomepageTestCases.HomeTestCases
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[32,9] cannot find symbol
symbol: class ExtentTest
location: class Test.tes.MyHomepageTestCases.HomeTestCases
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[45,28] cannot find symbol
symbol: class ExtentReports
location: class Test.tes.MyHomepageTestCases.HomeTestCases
[ERROR] /C:/workspace/tes/src/test/java/Test/tes/MyHomepageTestCases/HomeTestCases.java:[47,26] cannot find symbol
symbol: variable LogStatus
location: class Test.tes.MyHomepageTestCases.HomeTestCases
[INFO] 7 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Below is my code in eclipse where i have already imported the extentreport:
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
import com.relevantcodes.extentreports.LogStatus;
import Test.tes.Login.LoginPage;
import Test.tes.MyHomepage.Home;
import Test.tes.Utils.AppUtils;
import Test.tes.Utils.BaseTestSetup;
public class HomeTestCases extends BaseTestSetup { //use of inheritance
private static Logger log=Logger.getLogger(HomeTestCases.class);
private LoginPage lpobj = null;
private Home homeObj = null;
ExtentReports extent;
ExtentTest test;

Related

"Dependency problems found" when `mvn clean install` a che plugin project

I downloaded the che plugin project example che-ide-server-extension. It works when mvn clean install. But when I add a dependency in
che-ide-server-extension/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml
, it fails to install.
The dependency I added is
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-ide-ui</artifactId>
</dependency>
And the error message of mvn clean install -e -X is:
...
[WARNING] Unused declared dependencies found:
[WARNING] org.eclipse.che.core:che-core-ide-ui:jar:6.16.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Plugin ServerService :: Parent pom ................. SUCCESS [ 2.174 s]
[INFO] Plugin ServerService :: Plugins :: Parent ......... SUCCESS [ 0.064 s]
[INFO] Plugin ServerService :: Plugin :: Parent ........... SUCCESS [ 1.382 s]
[INFO] Plugin ServerService :: Plugin :: Server ........... SUCCESS [ 3.827 s]
[INFO] Plugin ServerService :: Plugin :: IDE .............. FAILURE [ 4.870 s]
[INFO] Plugin ServerService :: Che Assembly :: Assembly Parent SKIPPED
[INFO] Plugin ServerService :: Che Assembly :: Workspace Agent Assembly SKIPPED
[INFO] Plugin ServerService :: Che Assembly :: Workspace Agent Tomcat Assembly SKIPPED
[INFO] Plugin ServerService :: Che Assembly :: IDE Assembly SKIPPED
[INFO] Plugin ServerService :: Che Assembly :: Assemblies Tomcat SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.925 s
[INFO] Finished at: 2019-07-10T10:48:43+08:00
[INFO] Final Memory: 75M/1321M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.1:analyze-only (analyze) on project plugin-serverservice-ide: Dependency problems found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.0.1:analyze-only (analyze) on project plugin-serverservice-ide: Dependency problems found
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Dependency problems found
at org.apache.maven.plugins.dependency.analyze.AbstractAnalyzeMojo.execute(AbstractAnalyzeMojo.java:261)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :plugin-serverservice-ide
I don't think I added a wrong dependency. Because when I
import org.eclipse.che.ide.ui.dialogs.DialogFactory;
in my java code, che says
The import org.eclipse.che.ide.ui.dialogs cannot be resolved.
But after I added the dependency, che can recognize it.
I don't know why this happens... The error message says Dependency problems found, but it didn't point out the real problem...
I've just checked and I didn't face any issues you mentioned above.
This my changes for the project:
diff --git a/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml b/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml
index 1237c6e..a5eed89 100644
--- a/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml
+++ b/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml
## -28,6 +28,10 ##
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
+<dependency>
+ <groupId>org.eclipse.che.core</groupId>
+ <artifactId>che-core-ide-ui</artifactId>
+</dependency>
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-commons-gwt</artifactId>
diff --git a/plugins/plugin-serverservice/plugin-serverservice-ide/src/main/java/org/eclipse/che/sample/ide/MyServiceClient.java b/plugins/plugin-serverservice/plugin-serverservice-ide/src/main/java/org/eclipse/che/sample/ide/MyServiceClient.java
index cb1cf58..0def9c2 100644
--- a/plugins/plugin-serverservice/plugin-serverservice-ide/src/main/java/org/eclipse/che/sample/ide/MyServiceClient.java
+++ b/plugins/plugin-serverservice/plugin-serverservice-ide/src/main/java/org/eclipse/che/sample/ide/MyServiceClient.java
## -8,13 +8,15 ##
*/
package org.eclipse.che.sample.ide;
-import javax.inject.Inject;
import org.eclipse.che.api.promises.client.Promise;
import org.eclipse.che.ide.api.app.AppContext;
import org.eclipse.che.ide.rest.AsyncRequestFactory;
import org.eclipse.che.ide.rest.StringUnmarshaller;
+import org.eclipse.che.ide.ui.dialogs.DialogFactory;
import org.eclipse.che.ide.ui.loaders.request.LoaderFactory;
+import javax.inject.Inject;
+
/**
* Client for consuming the sample server service.
*
## -25,6 +27,7 ## public class MyServiceClient {
private AppContext appContext;
private AsyncRequestFactory asyncRequestFactory;
private LoaderFactory loaderFactory;
+ private DialogFactory dialogFactory;
/**
* Constructor.
## -38,8 +41,10 ## public class MyServiceClient {
public MyServiceClient(
final AppContext appContext,
final AsyncRequestFactory asyncRequestFactory,
- final LoaderFactory loaderFactory) {
+ final LoaderFactory loaderFactory,
+ final DialogFactory dialogFactory) {
+ this.dialogFactory = dialogFactory;
this.appContext = appContext;
this.asyncRequestFactory = asyncRequestFactory;
this.loaderFactory = loaderFactory;
## -52,6 +57,7 ## public class MyServiceClient {
* #return a Promise containing the server response
*/
public Promise<String> getHello(String name) {
+ this.dialogFactory.createChoiceDialog("1", "2", "", "", null, null);
return asyncRequestFactory
.createGetRequest(appContext.getWsAgentServerApiEndpoint() + "/hello/" + name)
.loader(loaderFactory.newLoader("Waiting for hello..."))

Getting test file resource with maven

I'm trying to get a json file resource in order to use it to build a java object. When I try to run my code in the Intellij I don't have any problem, but when I run with mvn test I get the follow error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project cadastur-backend-business: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process
[ERROR] java.lang.RuntimeException: Unable to create test class 'guiaVOTemplate.json'
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.loadClass(DefaultScanResult.java:135)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:95)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:222)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:107)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] Caused by: java.lang.ClassNotFoundException: guiaVOTemplate.json
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.loadClass(DefaultScanResult.java:131)
[ERROR] ... 6 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cadastur-backend-business
The project has the follow structure:
Project Structure Image
And above has the code where I'm trying to read the file and convert the json to java object.
package br.gov.mtur.cadastur.builder;
import br.gov.mtur.cadastur.vo.*;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
public class GuiaVOBuilder {
private GuiaVO guia;
public GuiaVOBuilder() {
this.guia = new GuiaVO();
}
public GuiaVOBuilder comId(Integer id) {
guia.setId(id);
return this;
}
public GuiaVOBuilder comPessoaFisica(PessoaFisicaVO pessoaFisica) {
guia.setPessoaFisica(pessoaFisica);
return this;
}
... //Builder methods
public GuiaVO build(){
return guia;
}
public GuiaVO buildGuiaCompleto() throws IOException {
return new ObjectMapper().readValue(GuiaVOBuilder.class.getResource("/guiaVOTemplate.json"), GuiaVO.class);
}
}
I find my mistake, in the main pom.xml, the maven-surefire-plugin was including all files, so because this I was getting Unable to create test class 'guiaVOTemplate.json'. So I could resolve this putting files with extension .json in the exclude list, as bellow. And my guiaVOTemplate.json remains in src/test/resources.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/*.json</exclude>
</excludes>
</configuration>
</plugin>
Copy the guiaVOTemplate.json file to src\main\resources and it should work.

Kotlin - running an integration test, error `fun main is already defined`

I have written an integration test for a Web application but I don't know how to run this test. Maven build fails with the following error when I execute mvn test
[INFO] Compiling Kotlin sources from [src/main/kotlin]
[INFO] Classpath: <...>
[INFO] Classes directory is <...>\target\classes
[INFO] Module name is demo
[ERROR] <...>\src\main\kotlin\demo\Application.kt: (9, 1) 'public fun main(args: kotlin.Array<kotlin.String>): kotlin.Unit' is already defined in demo
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Here is my main class (Application.kt)
package demo
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
#SpringBootApplication
open class Application
fun main(args: Array<String>) {
SpringApplication.run(Application::class.java, *args)
}
Here is a part of my test class
package demo
import org.junit.runner.RunWith
import org.springframework.boot.test.SpringApplicationConfiguration
import org.springframework.boot.test.WebIntegrationTest
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner
import demo.Application
import demo.model.City
import demo.repository.CityRepository
#RunWith(SpringJUnit4ClassRunner.class)
#SpringApplicationConfiguration(classes = Application.class)
#WebIntegrationTest({"server.port=8080"})
class CityControllerTest {
#Autowired
private var cityRepository: CityRepository?
private val restTemplate: RestTemplate = TestRestTemplate()
// ...
}
There is no such error when I execute mvn clean test. So I suppose Kotlin is frightened of previously compiled classes. Though I am very unsure...
What is the right way to run an integration test?
It is a bug (https://youtrack.jetbrains.com/issue/KT-10051). Already fixed and the fix will be delivered very soon

backtype.storm.generated.AlreadyAliveException

I am trying to submit a topology to my STORM cluster and I am getting the following error on running mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-starter 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # storm-starter ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # storm-starter ---
[INFO] Compiling 15 source files to /Users/sharath/workspace/storm/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/sharath/workspace/storm/src/jvm/storm/starter/CustomToplogy.java:[41,35] unreported exception backtype.storm.generated.AlreadyAliveException; must be caught or declared to be thrown
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.396 s
[INFO] Finished at: 2014-08-19T20:35:37+05:30
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project storm-starter: Compilation failure
[ERROR] /Users/sharath/workspace/storm/src/jvm/storm/starter/CustomToplogy.java:[41,35] unreported exception backtype.storm.generated.AlreadyAliveException; must be caught or declared to be thrown
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I did some research and found out that the error occurs if a topology with the same name already exists on the cluster. But I queried STORM and found that no such topology exists.
Can someone help me understand what is going on?
The code for the topology is below..
package storm.starter;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.topology.TopologyBuilder;
import backtype.storm.utils.Utils;
import storm.starter.spout.Spout;
import storm.starter.bolt.RedisBolt;
import java.util.*;
import backtype.storm.StormSubmitter;
public class CustomTopology {
public static void main(String[] args) {
TopologyBuilder builder = new TopologyBuilder();
//List<String> hosts = new ArrayList<String>();
//String host = args[0];
String broker = "tcp://192.168.5.102:1443";
String client = "test_client";
String topic = "#";
String redis_host = "192.168.5.102:6379";
//hosts.add(host);
builder.setSpout(...); //Omitted for security
builder.setBolt(...); //Omitted for security
Config conf = new Config();
conf.setDebug(true);
if (args != null && args.length > 0) {
conf.setNumWorkers(3);
StormSubmitter.submitTopology(args[0], conf, builder.createTopology());
}
else {
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("CustomT1", conf, builder.createTopology());
Utils.sleep(10000);
cluster.killTopology("CustomT1");
cluster.shutdown();
}
}
}
I setup my storm infrastructure using https://github.com/miguno/wirbelsturm
Your topology isn't alive, maven is throwing that error during compilation.
unreported exception backtype.storm.generated.AlreadyAliveException;
must be caught or declared to be thrown
This means you must catch or specify an exception is thrown.
Change this line:
public static void main(String[] args) {
To this:
public static void main(String[] args) throws Exception {

Trouble building apache mesos with jdk 1.8.0

I am new to apache mesos, while installing with JDK 1.8.0 receive the following error
“[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:21 min
[INFO] Finished at: 2014-07-22T21:27:56+05:30
[INFO] Final Memory: 23M/78M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (build-and-attach-javadocs) on project mesos: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Executor.java:41: error: reference not found
[ERROR] * data to it's executors through the {#link ExecutorInfo#data}
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Executor.java:73: error: reference not found
[ERROR] * via {#link Scheduler#launchTasks}. Note that this task can be
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Executor.java:81: warning - Tag #link: can't find launchTasks in org.apache.mesos.Scheduler
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Executor.java:50: warning - Tag #link: can't find data in org.apache.mesos.Protos.ExecutorInfo
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:251: warning: no #param for identity
[ERROR] public Position position(byte[] identity) {
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:251: warning: no #return
[ERROR] public Position position(byte[] identity) {
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:65: warning: no #return
[ERROR] public byte[] identity() {
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #param for from
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #param for to
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #param for timeout
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #param for unit
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #return
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #throws for java.util.concurrent.TimeoutException
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:149: warning: no #throws for org.apache.mesos.Log.OperationFailedException
[ERROR] public native List<Entry> read(Position from,
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:159: warning: no #return
[ERROR] public native Position beginning();
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:165: warning: no #return
[ERROR] public native Position ending();
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #param for data
[ERROR] public native Position append(byte[] data, long timeout, TimeUnit unit)
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #param for timeout
[ERROR] public native Position append(byte[] data, long timeout, TimeUnit unit)
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #param for unit
[ERROR] public native Position append(byte[] data, long timeout, TimeUnit unit)
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #return
[ERROR] public native Position append(byte[] data, long timeout, TimeUnit unit)
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #throws for java.util.concurrent.TimeoutException
[ERROR] public native Position append(byte[] data, long timeout, TimeUnit unit)
[ERROR] ^
[ERROR] /vol1/mesos-0.19.0/build/../src/java/src/org/apache/mesos/Log.java:191: warning: no #throws for org.apache.mesos.Log.WriterFailedException
While running it with JDK 1.7 it works fine
Is there anything I am missing to make it work with 1.8 or this is not currently supported ?
Any advice please.
There're missing javadoc annotations in ./src/java/mesos.pom.in
Read more here

Resources