Skip to content
Advertisement

Tag: maven

Create a large zip assembly with maven-assembly-plugin

I’m having a problem with creating a larger zip assembly (uncompressed takes over 3GB) using maven-assembly-plugin. The problem occurs when building the output zip file (compressed less than 1GB). Running maven with option -e gives me a more detailed info: Looking around I found that the issue comes from missing support for Zip64 in my JDK/JRE (https://blogs.oracle.com/xuemingshen/entry/zip64_support_for_4g_zipfile), which was added

SPRING java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext

It seems people have had similar problems, but on IDE’s. I am not using an IDE. I installed Spring using a Maven dependency as you will see in my build.xml file. I get the following stacktrace that says org.springframework.context is not found: run-decouple: BUILD SUCCESSFUL Total time: 4 seconds Here is my client (java file: DecoupledDataReaderClient.java): Here is my build.xml

Maven package works but Intellij’s build fails

I have a JDK 1.7 project with a maven dependency to a local jar in my maven repo. I’m unable to build the project using Intellij, with the errors that a symbol cannot be found (the symbol is a class importing packages from the local jar) But I can successfully build the project using ‘mvn package’. I’ve spent so much

Tycho cannot resolve fragment dependency on other fragment

I want to create an extension for org.eclipse.swt as a fragment. I have created a bundle swt.extension with the following MANIFEST.MF: Also, I have created an interface which extends an interface from SWT: When I build my project with tycho (mvn clean install) the following error occurs: It seems that tycho resolves only org.eclipse.swt jar. This is a host bundle

JSONObject ClassNotFoundException

I am working in IntelliJ and using Maven. I have a class that uses JSONObject: Maven dependency in the pom.xml file: I can do a mvn clean package and builds successfully. But when I try to run it, I get: Error: java.lang.ClassNotFoundException: org.json.JSONObject Is there anything else I’m missing here? Thanks! Answer Add json jar to your classpath or use

Does Parameterized JUnit test correct with `mvn test`?

I’m just implemented a JUnit test case using JUnit 4.11 following the example: https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.11.md#example-1 I create a maven project using And this test case: But when I test it using mvn test , maven said: How to make it work? Answer The problem is the naming convention of maven which is based on maven-surefire-plugin which needs a naming like Test.java,

SpringJUnit4ClassRunner class not found

i am trying to create a unit test using SpringJUnit4ClassRunner but everytime i execute the test it says it cannot find SpringJUnit4ClassRunner using mvn install. here is my code Here is my POM file: i am using springSource tool suit IDE to develop this spring mvc app and on the IDE it highlights SpringJUnit4ClassRunner as a error saying it cant

Maven skip compile

I want to use Maven to execute a certain plug-in that only needs the source code but I do not want Maven to compile anything (mostly because the project just doesn’t compile). How do I tell Maven to skip the compile step and just launch its plug-in and then package the generated resources together in a nice JAR? (The procedure

Advertisement