Maven 2 assembly with dependencies: jar under scope “system” not included

I’m not surprised that system scope dependencies are not added (after all, dependencies with a system scope must be explicitly provided by definition). Actually, if you really don’t want to put that dependency in your local repository (for example because you want to distribute it as part of your project), this is what I would … Read more

How can I view transitive dependencies of a Maven pom.xml file?

On the CLI, use mvn dependency:tree (Here are some additional Usage notes) When running dependency:tree on multi-module maven project, use mvn compile dependency:tree instead1. Otherwise, the POM Editor in M2Eclipse (Maven integration for Eclipse) is very good, and it includes a hierarchical dependency view. 1If you don’t compile, you might get error Failed to execute … Read more

Do you know the Maven profile for mvnrepository.com?

Once you’ve found your jar through mvnrepository.com, hover the “download (JAR)” link, and you’ll see the link to the repository which contains your jar (you can probably Right clic and “Copy link URL” to get the URL, what ever your browser is). Then, you have to add this repository to the repositories used by your … Read more

Maven: downloading files from url

If the file is a Maven dependency, you could use the Maven Dependency Plugin which has a get goal. For any file, you could use the Antrun plugin to call Ant’s Get task. Another option would be the maven-download-plugin, it has been precisely created to facilitate this kind of things. It’s not very actively developed … 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

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