Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
How do I prevent including JARs in WEB-INF/lib? I need a "compile only" scope!
The scope you should use for this is
provided. This indicates to Maven that the dependency will be
provided at run time by its container or the JDK, for example.
Dependencies with this scope will not be passed on transitively, nor will they be bundled in an package such
as a WAR, or included in the runtime classpath.
How do I list available plugins?
The "Available Plugins" page lists them,
and provides additional information to browse the Maven 2 repository.
See http://maven.apache.org/plugins
How do I determine what version of a plugin I am using?
You can use the Maven Help Plugin's describe goal. For example, to find out the version
of the install plugin:
Note that you must give the plugin prefix as the argument to plugin, not it's artifact ID.
Maven can't seem to download the dependencies. Is my installation correct?
You most probably need to configure Maven to use a proxy. Please see the information on
Configuring a proxy for information on how to configure your proxy
for Maven.
I have a jar that I want to put into my local repository. How can I copy it in?
If you understand the layout of the maven repository, you can copy the jar directly into where it
is meant to go. Maven will find this file next time it is run.
If you are not confident about the layout of the maven repository, then you can
adapt the following command to load in your jar file, all on one line.
-DgroupId=
-DartifactId=
-Dversion=
-Dpackaging=
-DgeneratePom=true
Where: the path to the file to load
the group that the file should be registered under
the artifact name for the file
the version of the file
the packaging of the file e.g. jar
]]>
This should load in the file into the maven repository, renaming it as needed.
How do I unsubscribe from Maven mailing lists?
To unsubscribe from a Maven mailing list you simply send a message to
[mailing-list][email protected]
So, if you have subscribed to [email protected] then you would
send a message to [email protected] in order to
get off the list.
People tend to have problems when they subscribe with one address and
attempt to unsubscribe with another. So make sure that you are using the
same address when unsubscribing that you used to subscribe before
asking for help.
If you find you still cannot get off a list then
send a message to [mailing-list][email protected]. These
instructions are also appended to every message sent out on a maven mailing
list ...
How do I skip the tests?
Add the parameter -Dmaven.test.skip=true in the command line
How can I run a single unit test?
Use the parameter -Dtest=MyTest at the command line.
NB: do not specify the entire package (org.apache.x.y.MyTest)
Handle special characters in site
Configure your ide to use the correct encoding. With eclipse, add
-Dfile.encoding=ISO-8859-1 in eclipse.ini file
Configure the output encoding in your pom
...
org.apache.maven.pluginsmaven-site-plugin2.0-beta-6UTF-8
...
Configure the file encoding use by mvn.
add to MAVEN_OPTS the encoding (same as the ide).
This can be made with adding MAVEN_OPTS="-Dfile.encoding=ISO-8859-1" in $HOME/.profile
How do I include tools.jar in my dependencies?
The following code includes tools.jar for JDKs on Windows, Linux and Solaris (it is already
included in the runtime for Mac OS X and some free JDKs).
...
default-tools.jarjava.vendorSun Microsystems Inc.com.suntools1.4.2system${java.home}/../lib/tools.jar
...Maven compiles my test classes but doesn't run them?
Tests are run by the surefire plugin. The surefire plugin can be configured to run certain test classes and
you may have unintentionally done so by specifying a value to ${test}.
Check your settings.xml and pom.xml for a property named "test" which would like this:
...
testsome-value
...
or
...
some-value
...Where are Maven SNAPSHOT artifacts?
If you are trying to build a development version of Maven or plugins,
you may need to access the maven snapshot repositories.
The Maven XSD is located here and the Maven
Settings XSD is located here.
Your favorite IDE probably supports XSD schema's for pom.xml and settings.xml editing. You need to
specify the following:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
...
</project>
<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">
...
</settings>
Maven doesn't work, how do I get help?
We have compiled a list of available resources on the
getting help page
How to produce execution debug output or error messages?
You could call Maven with -X parameter or -e parameter. For more information,
run:
mvn --help
What is a Mojo?
A mojo is a Maven plain Old Java Object. Each mojo is an executable
goal in Maven, and a plugin is a distribution of one or more related mojos.