Back to Kbengine

log4cxx

kbe/src/lib/dependencies/log4cxx/site/building/maven.html

2.5.122.6 KB
Original Source

Last Published: 2008-03-31 | Apache > Logging Services > log4cxx


Get log4cxx
About log4cxx
Community
Development
Apache

Building Apache log4cxx with Apache Maven 2

Apache Maven 2 is used to generate the release assemblies and generate product documentation. It delegates to the Apache Ant build to build and test log4cxx and can be used as an alternate front end to the Ant build process since it can automatically download and use ant-contrib, cpptasks and log4j. The Maven build, like the Ant build, can build APR and APR-Util from source.

Quick start:

  • Install Apache Maven 2.0.8 or later.
  • Building and testing log4cxx on a Unix platform with packaged APR and APR-Util.

Common Maven targets

| compile | build log4cxx library. | | package | build logcxx library and build and run unit tests and examples. | | site | Generate documentation and IDE project files, requires doxygen. | | site assembly:assembly | Generate snapshot tarball and zip file. | | site-deploy | Publish website to staging area on ASF subversion repository (requires credentials). | | clean | Delete all generated files. |

All build products will be placed in the target subdirectory.

It is not possible to directly pass options to the Ant build, however the ant build will read any build.properties file in the log4cxx directory.

SMTP and ODBC options can depend on libraries that that have different licenses. You should review the corresponding licenses and understand the implications before redistribution.

Platform specific notes:

See the Apache Ant build for platform specific notes.


© 2008 Apache Software Foundation