I’m working on ‘dockerizing’ a java web application (https://github.com/kermitt2/grobid) which I want to run using jetty. Here the Dockerfile: The current docker image works perfectly, but it requires the application to be built before (it cannot be built from the fresh git clone). For example I could not run a build with the docker HUB build system. What would be
Tag: build
Error:Could not initialize class com.android.sdklib.repositoryv2.AndroidSdkHandler
I want to build this project with Android Studio at launching, but take a error. Stacktrace is here Answer This problem occurs when there are multiple JDKs installed in your system, I had the same issue as I had mistakenly installed oracle-jdk-9 and Android studio requires oracle-jdk-8 If you are using Ubuntu you can install jdk-8 from this question. So,
Ways to make maven build faster?
I have a multi module java project. Maven takes almost around 40 secs to build it. I have tried maven with multi threaded builds too by specifying -T and -C args for no of threads and cores to be used. But I haven’t seen any significant improvement in wall time of my builds. I am using maven 3.2.3 and sometimes
Maven build error – Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5
I am trying to build project using Maven. Unfortunately I have no experience with maven so I am a bit helpless. It is most likely caused by the riak submodule. Here is the github repo with code: YCSB My system: Maven stack trace: I have no idea what it means so I guess you are my only hope 😀 EDIT:
Installing and using Gradle in a docker image/container
I am getting this strange error at the end of the process of creating a docker image from a Dockerfile: The relevant part of the Dockerfile: The command I am using is: docker build -t java_i . The strange thing is that if: I run a container from the previous image commenting out RUN gradle test jar (command: docker run
How to build OpenCV with Java under Linux using command line?(Gonna use it in MapReduce)
Recently I’m trying OpenCV out for my graduation project. I’ve had some success under Windows enviroment. And because with Windows package of OpenCV it comes with pre-built libraries, so I don’t have to worry about how to build them. But since the project is suppose to run on a cluster with CentOS as host OS for each node, I have
Specify the GRADLE_USER_HOME in Windows 7
How do I configure the GRADLE_USER_HOME option? My Windows username contains a space(C:UsersBaz Foo) and I think that the build fails because of this. I have added an environment variable GRADLE_USER_HOME and set it to C:UsersBaz Foo.gradle and tried also with –gradle-user-home=”C:UsersBaz Foo.gradle” but none of them work. Answer I have explicitly defined GRADLE_USER_HOME to point to a path without
Gradle does not find tools.jar
I am using javadoc doclets with gradle, so I need to use the package tools.jar, which is in the lib folder from the jdk (1.6.0_26 in my case). The point is that gradle does not take it automatically, so I was adding that tools package to my libs folder, and then adding it to dependencies.gradle . Now I want to
What sort of configuration issues or problems might make Maven Assembly plugin go slowly?
Our multi-module Maven project used to take 4-6 minutes to build. Over the past few months, it has increased to 20+ minutes per build. One symptom is that sometimes the build appears to pause until I hit <enter>. However, the Maven build still runs fine (6 minutes, no pauses) on our build server. The build command is mvn clean package
How to read an external properties file in Maven
Does anyone know how to read a x.properties file in Maven. I know there are ways to use resource filtering to read a properties file and set values from that, but I want a way in my pom.xml like: There was some discussion about this: Maven External Properties Answer Try the Properties Maven Plugin