title: Unable to find a suitable main class, please add a 'mainClass' property, Spring boot
body: <p>Hi friends i am developing a spring boot maven based project and and i have created a maven submodules but when i try to run my project it gives an error </p>
  
  <pre><code>[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.2.5.RELEASE:run (default-cli) on project demo-jhipster: Unable to find a suitable main class, please add a 'mainClass' property -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.2.5.RELEASE:run (default-cli) on project demo-jhipster: Unable to find a suitable main class, please add a 'mainClass' property
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
  </code></pre>
  
  <p>my parent pom and child pom is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;parent&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt;
      &lt;/parent&gt;
  
      &lt;groupId&gt;com.aquevix.demo&lt;/groupId&gt;
      &lt;artifactId&gt;demo-jhipster&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;name&gt;demo_jhipster&lt;/name&gt;
  
      &lt;prerequisites&gt;
          &lt;maven&gt;3.0.0&lt;/maven&gt;
      &lt;/prerequisites&gt;
      &lt;modules&gt;
          &lt;module&gt;JhipsterSubmodule&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;properties&gt;
          &lt;assertj-core.version&gt;3.1.0&lt;/assertj-core.version&gt;
          &lt;awaitility.version&gt;1.4.0&lt;/awaitility.version&gt;
          &lt;commons-io.version&gt;2.4&lt;/commons-io.version&gt;
          &lt;commons-lang.version&gt;2.6&lt;/commons-lang.version&gt;
          &lt;gatling-maven-plugin.version&gt;2.1.6&lt;/gatling-maven-plugin.version&gt;
          &lt;gatling.version&gt;2.1.6&lt;/gatling.version&gt;
          &lt;hibernate.version&gt;4.3.10.Final&lt;/hibernate.version&gt;
          &lt;hikaricp.version&gt;2.4.0&lt;/hikaricp.version&gt;
          &lt;jacoco-maven-plugin.version&gt;0.7.4.201502262128&lt;/jacoco-maven-plugin.version&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;javax.inject.version&gt;1&lt;/javax.inject.version&gt;
          &lt;joda-time-hibernate.version&gt;1.4&lt;/joda-time-hibernate.version&gt;
          &lt;liquibase-hibernate4.version&gt;3.5&lt;/liquibase-hibernate4.version&gt;
          &lt;liquibase-slf4j.version&gt;1.2.1&lt;/liquibase-slf4j.version&gt;
          &lt;liquibase.version&gt;3.4.1&lt;/liquibase.version&gt;
          &lt;mapstruct.version&gt;1.0.0.CR1&lt;/mapstruct.version&gt;
          &lt;maven-enforcer-plugin.version&gt;1.3.1&lt;/maven-enforcer-plugin.version&gt;
          &lt;maven-sortpom-plugin.version&gt;2.3.0&lt;/maven-sortpom-plugin.version&gt;
          &lt;maven.build.timestamp.format&gt;yyyyMMddHHmmss&lt;/maven.build.timestamp.format&gt;
          &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
          &lt;metrics-spark-reporter.version&gt;1.2&lt;/metrics-spark-reporter.version&gt;
          &lt;metrics-spring.version&gt;3.1.2&lt;/metrics-spring.version&gt;
          &lt;!-- Sonar properties --&gt;
          &lt;project.testresult.directory&gt;${project.build.directory}/test-results&lt;/project.testresult.directory&gt;
          &lt;run.addResources&gt;false&lt;/run.addResources&gt;
          &lt;sonar-maven-plugin.version&gt;2.6&lt;/sonar-maven-plugin.version&gt;
          &lt;sonar.exclusions&gt;src/main/webapp/assets/**/*.*, src/main/webapp/bower_components/**/*.*, src/main/webapp/dist/**/*.*&lt;/sonar.exclusions&gt;
          &lt;sonar.jacoco.itReportPath&gt;${project.testresult.directory}/coverage/jacoco/jacoco-it.exec&lt;/sonar.jacoco.itReportPath&gt;
          &lt;sonar.jacoco.reportPath&gt;${project.testresult.directory}/coverage/jacoco/jacoco.exec&lt;/sonar.jacoco.reportPath&gt;
          &lt;sonar.java.codeCoveragePlugin&gt;jacoco&lt;/sonar.java.codeCoveragePlugin&gt;
  
          &lt;sonar.javascript.jstestdriver.reportsPath&gt;${project.testresult.directory}/karma&lt;/sonar.javascript.jstestdriver.reportsPath&gt;
          &lt;sonar.javascript.lcov.reportPath&gt;${project.testresult.directory}/coverage/report-lcov/lcov.info&lt;/sonar.javascript.lcov.reportPath&gt;
  
          &lt;sonar.sources&gt;${project.basedir}/src/main/&lt;/sonar.sources&gt;
          &lt;sonar.surefire.reportsPath&gt;${project.testresult.directory}/surefire-reports&lt;/sonar.surefire.reportsPath&gt;
          &lt;sonar.tests&gt;${project.basedir}/src/test/&lt;/sonar.tests&gt;
          &lt;spring-security.version&gt;4.0.2.RELEASE&lt;/spring-security.version&gt;
          &lt;springfox.version&gt;2.0.3&lt;/springfox.version&gt;
          &lt;usertype-core.version&gt;4.0.0.GA&lt;/usertype-core.version&gt;
  
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          // dependencies..
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.xml&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;filtering&gt;false&lt;/filtering&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/*.xml&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.google.code.sortpom&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-sortpom-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven-sortpom-plugin.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;sort&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;sortProperties&gt;true&lt;/sortProperties&gt;
                      &lt;nrOfIndentSpace&gt;4&lt;/nrOfIndentSpace&gt;
                      &lt;sortDependencies&gt;groupId,artifactId&lt;/sortDependencies&gt;
                      &lt;sortPlugins&gt;groupId,artifactId&lt;/sortPlugins&gt;
                      &lt;keepBlankLines&gt;true&lt;/keepBlankLines&gt;
                      &lt;expandEmptyElements&gt;false&lt;/expandEmptyElements&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;io.gatling&lt;/groupId&gt;
                  &lt;artifactId&gt;gatling-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${gatling-maven-plugin.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;configFolder&gt;src/test/gatling/conf&lt;/configFolder&gt;
                      &lt;dataFolder&gt;src/test/gatling/data&lt;/dataFolder&gt;
                      &lt;resultsFolder&gt;target/gatling/results&lt;/resultsFolder&gt;
                      &lt;bodiesFolder&gt;src/test/gatling/bodies&lt;/bodiesFolder&gt;
                      &lt;simulationsFolder&gt;src/test/gatling/simulations&lt;/simulationsFolder&gt;
                      &lt;!-- This will force Gatling to ask which simulation to run
                        This is useful when you have multiple simulations --&gt;
                      &lt;simulationClass&gt;*&lt;/simulationClass&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                      &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maven-enforcer-plugin.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;enforce-versions&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;enforce&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;rules&gt;
                          &lt;requireMavenVersion&gt;
                              &lt;message&gt;You are running an older version of Maven. JHipster requires at least Maven 3.0&lt;/message&gt;
                              &lt;version&gt;[3.0.0,)&lt;/version&gt;
                          &lt;/requireMavenVersion&gt;
                          &lt;requireJavaVersion&gt;
                              &lt;message&gt;You are running an older version of Java. JHipster requires at least JDK ${java.version}&lt;/message&gt;
                              &lt;version&gt;[${java.version}.0,)&lt;/version&gt;
                          &lt;/requireJavaVersion&gt;
                      &lt;/rules&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;argLine&gt;-Xmx256m ${surefireArgLine}&lt;/argLine&gt;
                      &lt;!-- Force alphabetical order to have a reproducible build --&gt;
                      &lt;runOrder&gt;alphabetical&lt;/runOrder&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;packagingExcludes&gt;WEB-INF/lib/tomcat-*.jar&lt;/packagingExcludes&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.bsc.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-processor-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2.4&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;process&lt;/id&gt;
                          &lt;phase&gt;generate-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;process&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.mapstruct&lt;/groupId&gt;
                          &lt;artifactId&gt;mapstruct-processor&lt;/artifactId&gt;
                          &lt;version&gt;${mapstruct.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;configuration&gt;
                      &lt;defaultOutputDirectory&gt;${project.build.directory}/generated-sources&lt;/defaultOutputDirectory&gt;
                      &lt;processors&gt;
                          &lt;processor&gt;org.mapstruct.ap.MappingProcessor&lt;/processor&gt;
                      &lt;/processors&gt;
                      &lt;options&gt;
                          &lt;mapstruct.suppressGeneratorTimestamp&gt;true&lt;/mapstruct.suppressGeneratorTimestamp&gt;
                          &lt;mapstruct.defaultComponentModel&gt;spring&lt;/mapstruct.defaultComponentModel&gt;
                      &lt;/options&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${sonar-maven-plugin.version}&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                  &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${jacoco-maven-plugin.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;pre-unit-tests&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;prepare-agent&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;!-- Sets the path to the file which contains the execution data. --&gt;
                              &lt;destFile&gt;${project.testresult.directory}/coverage/jacoco/jacoco.exec&lt;/destFile&gt;
                              &lt;!-- Sets the name of the property containing the settings for JaCoCo runtime agent. --&gt;
                              &lt;propertyName&gt;surefireArgLine&lt;/propertyName&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;!-- Ensures that the code coverage report for unit tests is created after unit tests have been run --&gt;
                      &lt;execution&gt;
                          &lt;id&gt;post-unit-test&lt;/id&gt;
                          &lt;phase&gt;test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;report&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;dataFile&gt;${project.testresult.directory}/coverage/jacoco/jacoco.exec&lt;/dataFile&gt;
                              &lt;outputDirectory&gt;${project.testresult.directory}/coverage/jacoco&lt;/outputDirectory&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
                  &lt;artifactId&gt;liquibase-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${liquibase.version}&lt;/version&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.javassist&lt;/groupId&gt;
                          &lt;artifactId&gt;javassist&lt;/artifactId&gt;
                          &lt;version&gt;3.18.2-GA&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.liquibase.ext&lt;/groupId&gt;
                          &lt;artifactId&gt;liquibase-hibernate4&lt;/artifactId&gt;
                          &lt;version&gt;${liquibase-hibernate4.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
                          &lt;version&gt;${project.parent.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;configuration&gt;
                      &lt;changeLogFile&gt;src/main/resources/config/liquibase/master.xml&lt;/changeLogFile&gt;
                      &lt;diffChangeLogFile&gt;src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml&lt;/diffChangeLogFile&gt;
                      &lt;driver /&gt;
                      &lt;url /&gt;
                      &lt;defaultSchemaName /&gt;
                      &lt;username /&gt;
                      &lt;password /&gt;
                      &lt;referenceUrl&gt;hibernate:spring:com.aquevix.demo.domain?dialect=&lt;/referenceUrl&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;
                      &lt;logging&gt;debug&lt;/logging&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;jvmArguments&gt;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005&lt;/jvmArguments&gt;
                      &lt;arguments&gt;
                          &lt;argument&gt;--spring.profiles.active=dev&lt;/argument&gt;
                      &lt;/arguments&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;dev&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
              &lt;/activation&gt;
              &lt;properties&gt;
                  &lt;!-- log configuration --&gt;
                  &lt;logback.loglevel&gt;DEBUG&lt;/logback.loglevel&gt;
              &lt;/properties&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;fast&lt;/id&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                          &lt;configuration&gt;
                              &lt;arguments&gt;
                                  &lt;argument&gt;--spring.profiles.active=dev,fast&lt;/argument&gt;
                              &lt;/arguments&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
              &lt;properties&gt;
                  &lt;!-- log configuration --&gt;
                  &lt;logback.loglevel&gt;DEBUG&lt;/logback.loglevel&gt;
              &lt;/properties&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-undertow&lt;/artifactId&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;prod&lt;/id&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;com.github.trecloux&lt;/groupId&gt;
                          &lt;artifactId&gt;yeoman-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;0.4&lt;/version&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;run-frontend-build&lt;/id&gt;
                                  &lt;phase&gt;generate-resources&lt;/phase&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;build&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;buildTool&gt;grunt&lt;/buildTool&gt;
                                      &lt;buildArgs&gt;build --force --no-color&lt;/buildArgs&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                          &lt;configuration&gt;
                              &lt;yeomanProjectDirectory&gt;${project.basedir}&lt;/yeomanProjectDirectory&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.5&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;filesets&gt;
                                  &lt;fileset&gt;                                       &lt;directory&gt;src/main/webapp/dist&lt;/directory&gt;
                                  &lt;/fileset&gt;
                                  &lt;fileset&gt;
                                      &lt;directory&gt;.tmp&lt;/directory&gt;
                                  &lt;/fileset&gt;
                                  &lt;fileset&gt;
                                      &lt;directory&gt;node_modules&lt;/directory&gt;
                                  &lt;/fileset&gt;
                              &lt;/filesets&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                          &lt;configuration&gt;
                              &lt;arguments&gt;
                                  &lt;argument&gt;--spring.profiles.active=prod&lt;/argument&gt;
                              &lt;/arguments&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
              &lt;properties&gt;
                  &lt;!-- log configuration --&gt;
                  &lt;logback.loglevel&gt;INFO&lt;/logback.loglevel&gt;
              &lt;/properties&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and chile pom is</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;demo-jhipster&lt;/artifactId&gt;
          &lt;groupId&gt;com.aquevix.demo&lt;/groupId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;JhipsterSubmodule1&lt;/artifactId&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have googled but not found any solution please help in this regard!</p>
  
  <p><a href="https://i.stack.imgur.com/nUmKm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nUmKm.png" alt="enter image description here"></a></p>