title: exec classifier in spring-boot-maven-plugin in pom - pod startup error - Openshift
body: <p>I am trying to push my microservice to nexus and at the same time deploy to openshift.</p>
  <p>my pom has got this:</p>
  <pre><code>&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;classifier&gt;exec&lt;/classifier&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  <p>This results in the creation of two jar files at the time of build.</p>
  <p>my-service-exec.jar
  my-service.jar</p>
  <p>I took the advice from <a href="https://docs.spring.io/spring-boot/docs/1.4.1.RELEASE/maven-plugin/examples/repackage-classifier.html" rel="nofollow noreferrer">https://docs.spring.io/spring-boot/docs/1.4.1.RELEASE/maven-plugin/examples/repackage-classifier.html</a> and added the exec classifier in my pom</p>
  <p>After deploy and at pod startup I see this error message:</p>
  <pre><code>ERROR Neither $JAVA_MAIN_CLASS nor $JAVA_APP_JAR is set and 2 JARs found in /deployments (1 expected)
  </code></pre>
  <p>and the pod is not starting.</p>
  <p>Any help in this regard is much appreciated.</p>