maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Douglas Jackson (JIRA)" <>
Subject [jira] [Updated] (MNG-5881) Resource not put into jar
Date Thu, 03 Sep 2015 21:03:46 GMT


Douglas Jackson updated MNG-5881:

Here is a zip file with the a parent maven project and two children.
"two" tries to embed a blueprint file from "one".
The file from one is put into two/target/classes/OSGI-INF/blueprint/
however it does not show up in two-1.0.jar 

> Resource not put into jar
> -------------------------
>                 Key: MNG-5881
>                 URL:
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.3
>         Environment: windows 7
>            Reporter: Douglas Jackson
>         Attachments:
> I have a resource that I am copying to the target/classes directory using the maven-dependency-plugin
> version 2.10.  The <outputDirectory> is specified as:
>      ${}/OSGI-INF/blueprint
> I am doing so in the "validate" phase.
> After doing a "clean install", the file is in the /target/classes/OSGI-INF/blueprint
directory alongside
> 2 other files that were in the src/main/resources/OSGI-INF/blueprint directory.
> However, the file does not appear in the output jar file.  From posts on the
> web it appears that all files in the classes directory should be copied into
> the jar.
> I tried using the dependency copy plugin to copy it first to another folder and then
using the maven resources plugin to copy it to the ${}/OSGI-INF/blueprint
> That did not work either.
> I am using maven version 3.2.3.
> It is an .xml file just like the other files from the src/main/resources. 

This message was sent by Atlassian JIRA

View raw message