What is the difference between runnable jar library handling options?

Extract required libraries into JAR – Extracts the actual .class files from the libraries your app uses and puts those .class files inside the runnable JAR. So, the runnable JAR will not only contain the .class files of your application, but also the .class files of all the libraries your application uses. Package required libraries … Read more

The following artifacts could not be resolved: javax.jms:jms:jar:1.1

Thanks for the suggestions. I finally found a solution to this problem after reading this. It turns out that these dependencies were coming from a dependency to ZooKeeper. I modified my pom.xml as following and it solved the problem: <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.3.2</version> <exclusions> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> … Read more

Java creating .jar file

In order to create a .jar file, you need to use jar instead of java: jar cf myJar.jar myClass.class Additionally, if you want to make it executable, you need to indicate an entry point (i.e., a class with public static void main(String[] args)) for your application. This is usually accomplished by creating a manifest file … Read more

How to simply download a JAR using Maven?

Maven does not work like that. Here’s the closest you’ll get to my knowledge: mvn dependency:get -DremoteRepositories=http://repo1.maven.org/maven2/ \ -DgroupId=junit -DartifactId=junit -Dversion=4.8.2 \ -Dtransitive=false Note that all parameters except transitive are required. Also note that Maven will download the jar to your local repository, and there’s no sensible way (that I know of) to copy it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)