Menu

Maven Build Lifecycle

There are three out-of-the-box/implicit build lifecycles that Apache Maven provides: clean, default and site. The clean lifecycle handles project cleaning, while the default(install) lifecycle handles your project deployment, and the site lifecycle handles the creation of your project's website. You can read more detail of these Lifecycle phases of Maven Site.

Skip Running Tests from Maven Build

There are multiple ways to skip the execution of the tests from a Maven project. So that at the time of build it doesn't compile the unit tests. Following are the steps using that you can skip the unit test compilation.

1. The first way is; while compiling or building the project using mvn install command. There are two commands that you can use on the command line to skip the tests running.

a. -DskipTests

b. -Dmaven.test.skip=true

2. Another way is to add the skipTests configuration in POM.xml file within the maven-surefire-plugin plugin. Below is the plugin code snippet for POM file.

     <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.12.4</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>

Reference

  1. Skipping Tests - Maven

What is httpd?

HTTP server daemon(HTTPD), or the Apache HTTP Server, is a popular open-source web server software that is used to serve websites and web applications over the internet. It is developed and maintained by the Apache Software Foundation and is available for multiple operating systems including Linux, Windows, and macOS.

Apache HTTP Server is capable of handling a wide range of HTTP requests and supports several important web protocols such as HTTP/1.1, HTTP/2, and TLS/SSL. It can also be configured to support various programming languages and frameworks such as PHP, Python, and Ruby on Rails.

One of the reasons for Apache's popularity is its flexibility and extensibility. It supports a wide range of modules and plugins, which can be used to add various features and functionalities to the web server. These modules can be used to enhance the security, performance, and functionality of the web server.

Overall, Apache HTTP Server is a reliable and widely used web server software that has been serving websites and web applications for over two decades.