Is there any free online maven repository?
If you use github, you could use a private github project as your maven repository. There are instruction on how to publish your maven artifacts to github here: https://stackoverflow.com/a/14013645/82156
If you use github, you could use a private github project as your maven repository. There are instruction on how to publish your maven artifacts to github here: https://stackoverflow.com/a/14013645/82156
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
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
Recently I faced the same exception. After a bit researching I found that maven-compat plugin solves the problem: <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-compat</artifactId> <version>3.0.5</version> <scope>test</scope> </dependency>
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.
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
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
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
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
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