esa / CCSDS_MO_POM

ESA top level POM for CCSDS MO based artifacts
Other
3 stars 6 forks source link

When using the CCSDS_MO_POM as a parent, project resources are not included in the bundled JAR #1

Closed pabrabbin closed 8 years ago

pabrabbin commented 8 years ago

Version 4 of the CCSDS_MO_POM contains the following resource specification.

<resources>
  <resource>
    <directory>${basedir}</directory>
    <includes>
      <include>LICENCE.md</include>
    </includes>
  </resource>
</resources>

The "default" resource specification from the Maven Super POM (pom-4.0.0.xml) is:

<resources> 
  <resource> 
    <directory>${project.basedir}/src/main/resources</directory> 
  </resource> 
</resources> 

When using the CCSDS_MO_POM as a parent, any project resources in the directory "src/main/resources" are not included in the bundled JAR.

(This can be verified by running the command "mvn help:effective-pom" : the effective POM contains only the LICENCE.md resource, and not the resources directory specified in the Super POM.)

It seems that restoring the Super POM resource specification in the CCSDS_MO_POM fixes this.

<resources>
  <resource>
    <directory>${basedir}</directory>
    <includes>
      <include>LICENCE.md</include>
    </includes>
  </resource>
  <resource> 
    <directory>${project.basedir}/src/main/resources</directory> 
  </resource> 
</resources>
SamCooper commented 8 years ago

Fixed