Valid JAR signature for JavaFX projects

I had a very similar problem; when I included a signed JAR (bouncycastle) in the project. Its signature was repackaged verbatim, resulting in an obvious SecurityException: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes Filtering of all sorts failed; the solution that works for me looks like this in the pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> … Read more

Maven install error: Dependency could not be resolved

Could not transfer artifact org.apache.maven.plugins:maven-dependency-plugin:pom:2.8 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org It seems like your maven cannot access remote central repository. Check if you have an established internet connection. Check if you can access default maven repo http://repo.maven.apache.org/maven2 in your browser. Check if you have correct configuration in <repositories> and <proxies> in your your … Read more

How can I include test classes into Maven jar and execute them?

You should not access test classes from your application code, but rather create a main (the same main) in the test scope and create an additional artifact for your project. However, in this additional artifact (jar) you would need to have: The test classes The application code classes External dependencies required by application code (in … Read more

How to disable maven blocking external HTTP repositories?

I found a solution to do this by inspecting the commit in the Maven git repository that is responsible for the default HTTP blocking: https://github.com/apache/maven/commit/907d53ad3264718f66ff15e1363d76b07dd0c05f My solution is as follows: In the Maven settings (located in ${maven.home}/conf/settings.xml or ${user.home}/.m2/settings.xml), the following entry must be removed: <mirror> <id>maven-default-http-blocker</id> <mirrorOf>external:http:*</mirrorOf> <name>Pseudo repository to mirror external repositories initially … Read more

Maven Compilation Error: (use -source 7 or higher to enable diamond operator)

Check how your maven-compiler-plugin is configured, it should use java version 7 or higher: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> For a more complete answer see the one below.