Overview
- Maven Getting Started Guide : http://maven.apache.org/guides/getting-started/index.html
- POM Reference : http://maven.apache.org/pom.html
- Maven Build Lifecycle : http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
- Maven Plugin List : http://maven.apache.org/plugins/
- Maven Shared Components : http://maven.apache.org/shared/
- mvn Command Line Options : http://www.sonatype.com/books/mvnref-book/reference/running.html#running-sect-help-option
Readings : references, tutorials and articles
- XML Schema and description for Maven POM file(maven-4.0.0.xsd).
- Maven Model 3.0 API
- Maven Core 3.0 API
- API of
MavenProject
class - The
mvn
Command
Sonatype books
- Maven the Complete Reference
- Developing with Eclipse and Maven
- Maven by Example
- Maven Cookbook
- Repository Management with Nexus
Maven assemblies
- Guide to creating assemblies
- Maven Assembly Descriptor Reference
- Maven the Complete Reference/Maven Assemblies
Maven snapshot repositories
- Repository - SNAPSHOT Handling
- Maven Concepts Repositories
- Guide to deploying 3rd party JARs to remote repository
- Setting Up a Maven Repository
Deployment process and security
- <servers> element in settings.xml
- Password encryption
- Maven Wagon
- Uploading a directory using sftp with Maven
Site process
- Creating a site
- XML Schema Reference for the site descriptor
- Configuring the site descriptor
- Maven Project Info Reports Plugin
- Customizing Site Appearance
- Doxia Modules Guide
- doxia-module-markdown
- How to use confluence format? (in Maven site generation)
Release process
- Using the Maven Release plugin: Things to know
- Archiva Release Process (Real-world sample of Maven release plugin)
Property and Interpolation
misc
- Multiple Module Projects with Eclipse
- Attach Library Sources and Javadocs
Guides to download sources and javadocs of artifacts - Running Maven Checkstyle plugin safely with multi module project.
Using justpropertyExpansion
much simpler than http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html - Defining custom Maven build command for any project.
Specify${project_loc}
at 'Base directory' field and select 'Run' item at 'Display in favorites menu' field in 'Common' tab. reportPlugins
doesn't inherit more information frompluginManagement
.- Naked Objects' Sister Projects 1.0: Developers Guide
- How do I get m2eclipse to recognize $M2_OPTS?
Referencing Maven project properties of List
type
//@todo
This syntax works within pom.xml
and Ant build files using Maven Ant plugin. But this doesn't working with resource filtering of Maven. I can't find any explain or reason for this. Is it a bug?
...
<artifact:pom id="this-pom" file="${basedir}/pom.xml"/>
<xsddoc out="${this-pom.reporting.outputDirectory}/xsddocs"
verbose="true">
<fileset dir="${this-pom.build.resources[0].directory}"
includes="**/*.xsd"/>
</xsddoc>
...
Build Lifecycle, Build Phase, Plugin and Goal
Simple tips and troubleshooting
- The value of Maven property
"project.build.directory"
in normal case is${basedir}/target
. You can confirm this using the following command line :"mvn help:evaluate -Dexpression=project.build.directory"
.
- Solving "org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60" exception when running site:site goal
Simply add a dependency on a newer version(eg. 3.8) of icu4j - Solving "[ERROR] Unable to determine if resource ... exists in .." error.
Or just add<dependency.locations.enabled>false</dependency.locations.enabled>
into the<properties>
element of POM file. - Using
<addClasspath>
when you have no dependencies fails withFileNotFoundException
Configuring to add classpath to MANIFEST file can cause unreasonable exception when runningmaven-jar-plugin
without compile or run-time scope dependency. If you runpackage
with-X
option, you can identify exception whose stack goes like this.
Dependency on local library not in Maven repository and with no POM file
Sometimes your project may have dependency on a JAR file that is not registered to any of Maven repositories and so have no it's own POM file. In this case, you can use <systemPath>
element to specify your module's dependency on it.
systemPath
could be specified only with system
scope. You should specify groupId, artifactId
, and version
'cause they are mandatory but you can specify any value and don't need pom file.
Escaping expression interpolation
It may necessary not to interpolate Maven expression in resources. In other words, you just want to leave ${some-property} as it is. For this, you can specify the escape string with escapeString
parameter of maven-resource-plugin
. You can also define maven.resources.escapeString
property in your POM file.
For more refer this page : http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#escapeString
Client configuration
The location of client configuration files for subversion is dependent on operating system.
- Windows : %USERPROFILE%\Application Data\Subversion\config
- Linux : ~/.subversion/config
Configurable options are described here : http://svnbook.red-bean.com/en/1.5/svn.advanced.confarea.html#svn.advanced.confarea.opts.config
Working with Subversion working copy in format of ver. 1.7
The default configuration of Maven release plugin(maven-release-plugin) up to ver. 2.2.2 or Maven scm plugin(maven-scm-plugin) up to ver. 1.6 can't work correctly with Subversion working copy in format of ver. 1.7.
To solve this problem, you should override the configuration of release plugin or scm plugin to use maven-scm-provider-svnjava
and svnkit 1.7
.
For now, svnkit 1.7
has no release and is in snapshot version.
If you let the plugins use svnkit 1.3.x
which is default setting as of now, you would meet the exceptions like the following.
For more, refer the followings,
1 comments:
bo slot gacor slot shopeepay slot shopeepay slot bca slot gopay slot bca slot indosat slot shopeepay slot sakuku slot bonanza slot bsi bo slot gacor slot shopeepay 5000 slot hoki asia slot bca online slot shopeepay slot bonanza slot bri slot shopeepay slot hoki asia demo pragmatic play slot pulsa xl slot pulsa telkomsel slot deposit dana slot gopay slot bri slot ovo slot hoki asia bo slot gacor
Post a Comment