Posts tagged: build

Maven – The basic build phases

These notes are summarized from the main Maven site, at ‘Introduction to the Build Lifecycle‘.

These notes assume a standard Maven installation.

The basic build phases (think Ant ‘targets’) for Maven builds are the following:

  • validate – validate the project is correct and all necessary information is available
  • compile – compile the source code of the project
  • test – test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
  • package – take the compiled code and package it in its distributable format, such as a JAR.
  • integration-test – process and deploy the package if necessary into an environment where integration tests can be run
  • verify – run any checks to verify the package is valid and meets quality criteria
  • install – install the package into the local repository, for use as a dependency in other projects locally
  • deploy – done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

For a complete list of the build phases, refer to the Lifecycle Reference.

To run any phase, specify:

mvn <phase>

For example to compile a project:

mvn compile

Apache 2 – Configuration and build

Configuration options that seem to make Apache2 and Ruby on Rails happy

./configure \
–enable-rewrite=yes \
–enable-dav=yes \
–enable-suexec \
–with-suexec-docroot=/usr/local/apache2/htdocs \
$@

PHP4 – Configuration and build

'./configure' \
'--prefix=/Library/PHP4' \
'--with-apxs2=/Library/Apache2/bin/apxs' \
'--with-openssl=/usr' \
'--with-zlib=/usr' \
'--enable-calendar'  \
'--enable-shared'  \
'--enable-exif' \
'--enable-ftp'  \
'--enable-mbstring'  \
'--enable-mbregex'  \
'--enable-session'  \
'--enable-sockets'  \
'--enable-tokenizer'  \
'--enable-wddx'  \
'--with-xml'  \
'--enable-yp'  \
'--enable-versioning'  \
'--enable-trans-id'  \
'--enable-track-vars'  \
'--with-mysql=/Library/PHP4'  \
'--with-ldap=/usr'  \
'--with-iodbc=/Library/PHP4' \
'--with-gd'  \
'--with-jpeg-dir=/Library/PHP4'  \
'--with-png-dir=/Library/PHP4'  \
'--enable-xslt'  \
'--with-xslt-sablot=/Library/PHP4'  \
'--with-pdflib=/Library/PHP4'  \
'--with-tiff-dir=/Library/PHP4'  \
'--with-pgsql=/Library/PHP4'  \
'--with-iconv'  \
'--with-sybase=/Library/PHP4'  \
'--with-mcrypt=/Library/PHP4'  \
'--with-curl=/usr'  \
'--with-freetype-dir=/Library/PHP4'  \
'--with-ttf=/Library/PHP4'  \
'--with-gettext=/Library/PHP4'  \
'--with-xmlrpc' ' \
--with-mime-magic' ' \
--with-pspell=/Library/PHP4' '\
--with-expat-dir=/Library/Apache2' '
--with-t1lib=/Library/PHP4'
'--enable-dbx' '
--with-imap=/Library/PHP4' '
--with-imap-ssl=/usr' '
--enable-cli' '
--without-xpm-dir' '
--enable-dbase' '
--with-bz2=/usr' '
--enable-cgi' '
--with-pear' '
--with-java' '
--with-dom=/Library/PHP4' '
--with-dom-xslt=/Library/PHP4' '
--with-dom-exslt=/Library/PHP4' '
--with-snmp=/Library/PHP4' '
--enable-ucd-snmp-hack' '
--with-mhash=/Library/PHP4' '
--with-ming=/Library/PHP4' '
--with-pear' '
--enable-shmop' '
--with-mcal=/Library/PHP4' '
--with-gmp=/Library/PHP4' '
--enable-dio' '
--enable-bcmath' '
--enable-ctype' '
--enable-dba' '
--with-cdb' '
--enable-gd-native-ttf' '
--with-zip=/Library/PHP4'

WordPress Themes