“mvn dependency:tree” – is there an equivalent available for “verbose” output?

You can use mvn dependency:tree -X which produces the debug output. Otherwise stated in the documentation about verbose – Notice this feature actually uses Maven 2 algorithm and may give wrong results when used with Maven 3. Edit: As pointed by Brad in the comments, the verbose flag has been reintroduced for the 3.2.0 release … Read more

What is the difference between “Maven Install” and “Maven Build” with M2Eclipse?

First of all, build is not a phase in the standard Maven lifecycles, whereas install is one. mvn install will invoke all the phases up to the phase install, which generally consists of compiling the source code, packaging the project and installing it in the local repository. To be clear, we’re talking about what M2Eclipse … Read more

How do I download a Maven artifact at the command line without using dependency:get or maven-download-plugin?

The copy goal is more appropriate here and it lets you specify an output directory as well (which is deprecated in the get goal): mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=groupId:artifactId:version[:packaging][:classifier] -DoutputDirectory=[target] -Dmdep.useBaseVersion=true mdep.useBaseVersion=true will remove timestamps from snapshot builds.

Setting up the path for Maven 3.0.4, win7

It is only necessary to set the path to the Maven binary and to the JDK correctly: set PATH %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_04\bin;C:\Program Files\apache-maven-3.0.4\bin Furthermore you need to set the JAVA_HOME correctly which is done under windows like this: SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_04 Be aware of setting JAVA_HOME to the root of the installed JDK and not to … Read more

Developing Maven 3.0 Plugin

There is now a work-in-progress implementation of annotations for Maven plugins developments! Read the following links: https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins http://olamy.blogspot.fr/2012/05/java5-annotations-support-for-maven.html

Maven 3 Artifact problem

The error you are seeing is probably because you dont have your JAVA_HOME path set up correctly. Are you seeing something like C:\{directories to jre}\..\lib\tools.jar? You can have eclipse start up using your built in JDK by altering the eclipse.ini and adding something like -vm C:\{directories to JDK}\bin\javaw.exe What I have learned is that eclipse … Read more

How can I configure encoding in Maven?

OK, I have found the problem. I use some reporting plugins. In the documentation of the failsafe-maven-plugin I found, that the <encoding> configuration – of course – uses ${project.reporting.outputEncoding} by default. So I added the property as a child element of the project element and everything is fine now: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> See also … Read more

Maven plugin in Eclipse – Settings.xml file is missing

The settings file is never created automatically, you must create it yourself, whether you use embedded or “real” maven. Create it at the following location <your home folder>/.m2/settings.xml e.g. C:\Users\YourUserName\.m2\settings.xml on Windows or /home/YourUserName/.m2/settings.xml on Linux Here’s an empty skeleton you can use: <settings xmlns=”http://maven.apache.org/SETTINGS/1.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd”> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <servers/> <mirrors/> … Read more

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