| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- Generated by Apache Maven Doxia at 2019-01-16 --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| <title>log4cxx - Building Apache log4cxx with Apache Maven 2 - Apache log4cxx</title> |
| <link rel="stylesheet" href="../css/bootstrap.min.css" type="text/css" /> |
| <link rel="stylesheet" href="../css/site.css" type="text/css" /> |
| <script type="text/javascript" src="../js/jquery.min.js"></script> |
| <script type="text/javascript" src="../js/bootstrap.min.js"></script> |
| <script type="text/javascript" src="../js/prettify.min.js"></script> |
| <script type="text/javascript" src="../js/site.js"></script> |
| <meta name="Date-Revision-yyyymmdd" content="20190116" /> |
| <meta http-equiv="Content-Language" content="en" /> |
| |
| </head> |
| <body class="composite"> |
| <a href="https://logging.apache.org/"> |
| <img class="logo-left" src="../images/logos/ls-logo.jpg" alt="Apache logging services logo" /> |
| </a> |
| <img class="logo-right" src="../images/logos/logo.png" alt="Apache log4j logo" /> |
| <div class="clear"></div> |
| |
| <div class="navbar"> |
| <div class="navbar-inner"> |
| <div class="container-fluid"> |
| <a class="brand" href="http://logging.apache.org/log4cxx">Apache log4cxx ™</a> |
| <ul class="nav"> |
| <li> |
| |
| |
| <a href="https://wiki.apache.org/logging" class="external" target="_blank" title="Logging Wiki">Logging Wiki</a> |
| </li> |
| <li> |
| |
| |
| <a href="https://www.apache.org/" class="external" target="_blank" title="Apache">Apache</a> |
| </li> |
| <li> |
| |
| |
| <a href="https://logging.apache.org/" class="external" target="_blank" title="Logging Services">Logging Services</a> |
| </li> |
| <li> |
| |
| |
| <a href="https://github.com/apache/logging-log4cxx" class="external" target="_blank" title="GitHub">GitHub</a> |
| </li> |
| </ul> |
| |
| <div class="pull-right"> |
| |
| |
| <span id="publishDate">Last Published: 2019-01-16</span> |
| <span class="divider">|</span> <span id="projectVersion">Version: 0.10.0</span> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| <div class="container-fluid"> |
| <table class="layout-table"> |
| <tr> |
| <td class="sidebar"> |
| <div class="well sidebar-nav"> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-home"></i>About</li> |
| <li class="none"> |
| <a href="../index.html" title="What is log4cxx?">What is log4cxx?</a> |
| </li> |
| <li class="none"> |
| <a href="../project-info.html" title="Project Information">Project Information</a> |
| </li> |
| <li class="none"> |
| <a href="../project-reports.html" title="Generated Reports">Generated Reports</a> |
| </li> |
| </ul> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-book"></i>Usage</li> |
| <li class="none"> |
| <a href="../usage.html" title="How to use log4cxx?">How to use log4cxx?</a> |
| </li> |
| <li class="none"> |
| <a href="../apidocs/index.html" title="API Documentation">API Documentation</a> |
| </li> |
| <li class="none"> |
| <a href="../faq.html" title="FAQ">FAQ</a> |
| </li> |
| </ul> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-cog"></i>Get</li> |
| <li class="none"> |
| <a href="../download.html" title="Download">Download</a> |
| </li> |
| <li class="none"> |
| <a href="../changes-report.html" title="Changes">Changes</a> |
| </li> |
| <li class="none"> |
| <a href="../license.html" title="License">License</a> |
| </li> |
| </ul> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-pencil"></i>Community</li> |
| <li class="none"> |
| <a href="../mail-lists.html" title="Mailing Lists">Mailing Lists</a> |
| </li> |
| <li class="none"> |
| <a href="../issue-tracking.html" title="Issue Tracking">Issue Tracking</a> |
| </li> |
| <li class="none"> |
| |
| |
| <a href="http://wiki.apache.org/logging-log4cxx" class="external" target="_blank" title="Wiki">Wiki</a> |
| </li> |
| </ul> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-pencil"></i>Development</li> |
| <li class="none"> |
| <a href="../source-repository.html" title="Repository">Repository</a> |
| </li> |
| <li class="none"> |
| <a href="../dependencies.html" title="Dependencies">Dependencies</a> |
| </li> |
| <li class="expanded"> |
| <a href="../building/index.html" title="Building">Building</a> |
| <ul> |
| <li class="none"> |
| <a href="../building/autotools.html" title="autotools">autotools</a> |
| </li> |
| <li class="none"> |
| <a href="../building/ant.html" title="Apache Ant">Apache Ant</a> |
| </li> |
| <li class="none active"> |
| <a href="../building/maven.html" title="Apache Maven 2">Apache Maven 2</a> |
| </li> |
| <li class="none"> |
| <a href="../building/vstudio.html" title="Microsoft Visual Studio">Microsoft Visual Studio</a> |
| </li> |
| <li class="none"> |
| <a href="../building/xcode.html" title="Apple Xcode">Apple Xcode</a> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <ul class="nav nav-list"> |
| <li class="nav-header"><i class="icon-info-sign"></i>Apache</li> |
| <li class="none"> |
| |
| |
| <a href="http://www.apache.org" class="external" target="_blank" title="Home">Home</a> |
| </li> |
| <li class="none"> |
| |
| |
| <a href="http://www.apache.org/foundation/sponsorship.html" class="external" target="_blank" title="Sponsorship">Sponsorship</a> |
| </li> |
| <li class="none"> |
| |
| |
| <a href="http://www.apache.org/foundation/thanks.html" class="external" target="_blank" title="Thanks">Thanks</a> |
| </li> |
| <li class="none"> |
| |
| |
| <a href="http://www.apachecon.com" class="external" target="_blank" title="Conferences">Conferences</a> |
| </li> |
| </ul> |
| </div> |
| <div id="poweredBy"> |
| <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> |
| <img class="poweredBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /> |
| </a> |
| </div> |
| </td> |
| <td class="content"> |
| <!-- Licensed to the Apache Software Foundation (ASF) under one or more --><!-- contributor license agreements. See the NOTICE file distributed with --><!-- this work for additional information regarding copyright ownership. --><!-- The ASF licenses this file to You under the Apache License, Version 2.0 --><!-- (the "License"); you may not use this file except in compliance with --><!-- the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, software --><!-- distributed under the License is distributed on an "AS IS" BASIS, --><!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --><!-- See the License for the specific language governing permissions and --><!-- limitations under the License. --><div class="section"> |
| <h2>Building Apache log4cxx with Apache Maven 2<a name="Building_Apache_log4cxx_with_Apache_Maven_2"></a></h2> |
| <p><a class="externalLink" href="http://maven.apache.org">Apache Maven 2</a> is used to generate the release assemblies and generate product documentation. It delegates to the <a href="./ant.html">Apache Ant build</a> 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.</p> |
| <div class="section"> |
| <h3>Quick start:<a name="Quick_start:"></a></h3> |
| <ul> |
| <li>Install <a class="externalLink" href="http://maven.apache.org">Apache Maven</a> 2.0.8 or later.</li> |
| <li>Install APR and APR-Util or place source in apr and apr-util directories in same parent directory as log4cxx directory. |
| <p>Building and testing log4cxx on a Unix platform with packaged APR and APR-Util.</p> |
| <div class="source"> |
| <pre> sudo apt-get install libapr1.0-dev libaprutil1.0-dev doxygen |
| cd apache-log4cxx-0.10.0 |
| export PATH=/home/myself/maven-2.0.8/bin:$PATH |
| mvn package |
| </pre></div> |
| <p>Building and testing log4cxx on a Microsoft Windows with APR and APR-Util built from source.</p> |
| <div class="source"> |
| <pre> set PATH=\maven-2.0.8\bin;%PATH% |
| tar -xvzf apr-1.2.12.tar.gz |
| rename apr-1.2.12 apr |
| tar -xvzf apr-util-1.2.12.tar.gz |
| rename apr-util-1.2.12 apr-util |
| cd apache-log4cxx-0.10.0 |
| mvn package |
| </pre></div></li></ul></div> |
| <div class="section"> |
| <h3>Common Maven targets<a name="Common_Maven_targets"></a></h3> |
| <table border="1" class="bodyTable"> |
| <tr class="a"> |
| <td align="left">compile</td> |
| <td align="left">build log4cxx library.</td></tr> |
| <tr class="b"> |
| <td align="left">package</td> |
| <td align="left">build logcxx library and build and run unit tests and examples.</td></tr> |
| <tr class="a"> |
| <td align="left">site</td> |
| <td align="left">Generate documentation and IDE project files, requires doxygen.</td></tr> |
| <tr class="b"> |
| <td align="left">site assembly:assembly</td> |
| <td align="left">Generate snapshot tarball and zip file.</td></tr> |
| <tr class="a"> |
| <td align="left">site-deploy</td> |
| <td align="left">Publish website to staging area on ASF subversion repository (requires credentials).</td></tr> |
| <tr class="b"> |
| <td align="left">clean</td> |
| <td align="left">Delete all generated files.</td></tr></table> |
| <p>All build products will be placed in the target subdirectory.</p> |
| <p>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.</p> |
| <p>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.</p></div> |
| <div class="section"> |
| <h3>Platform specific notes:<a name="Platform_specific_notes:"></a></h3> |
| <p>See the <a href="./ant.html">Apache Ant build</a> for platform specific notes.</p></div></div> |
| </td> |
| </tr> |
| </table> |
| </div> |
| |
| <div class="footer"> |
| <p>Copyright © 2003-2019 <a class="external" href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.</p> |
| <p>Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.</p> |
| <p>Site powered by <a class="external" href="http://getbootstrap.com/">Twitter Bootstrap</a>. Icons from <a class="external" href="http://glyphicons.com/">Glyphicons Free</a>.</p> |
| </div> |
| </body> |
| </html> |