You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@codehaus.org> on 2014/08/07 21:43:10 UTC

[jira] (MDEP-258) Unpack does not seem to extract *.txt files

     [ https://jira.codehaus.org/browse/MDEP-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MDEP-258:
--------------------------------

    Description: 
When using the maven-dependency-plugin in the following example any *.txt files do not seem to get extracted, although everything else does.  I've tried with and without any exclude patterns and with different phase values, but nothing seems to make a difference.  Sample JAR is included.  Apologies if this is due to some rule about what can/cannot be included in a JAR file, but I would assume that since the *.txt files are packaged by Maven that they should also be allowed to be extracted.
{code:xml}
<!--
Currently the sql.*.properties files and default topic files are in the
jamwiki-db.jar file.  To make it easy for sites to customize SQL (for bug
fixing and such) and to create new translations, unpack these files
from the JAR and place them into the WEB-INF/classes folder.
-->
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <executions>
    <execution>
      <id>unpack</id>
      <goals>
        <goal>unpack</goal>
      </goals>
      <configuration>
        <artifactItems>
          <artifactItem>
            <groupId>org.jamwiki</groupId>
            <artifactId>jamwiki-db</artifactId>
            <type>jar</type>
            <outputDirectory>${project.build.directory}/classes</outputDirectory>
          </artifactItem>
        </artifactItems>
      </configuration>
    </execution>
  </executions>
</plugin> 
{code}


  was:
When using the maven-dependency-plugin in the following example any *.txt files do not seem to get extracted, although everything else does.  I've tried with and without any exclude patterns and with different phase values, but nothing seems to make a difference.  Sample JAR is included.  Apologies if this is due to some rule about what can/cannot be included in a JAR file, but I would assume that since the *.txt files are packaged by Maven that they should also be allowed to be extracted.

<!--
Currently the sql.*.properties files and default topic files are in the
jamwiki-db.jar file.  To make it easy for sites to customize SQL (for bug
fixing and such) and to create new translations, unpack these files
from the JAR and place them into the WEB-INF/classes folder.
-->
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <executions>
    <execution>
      <id>unpack</id>
      <goals>
        <goal>unpack</goal>
      </goals>
      <configuration>
        <artifactItems>
          <artifactItem>
            <groupId>org.jamwiki</groupId>
            <artifactId>jamwiki-db</artifactId>
            <type>jar</type>
            <outputDirectory>${project.build.directory}/classes</outputDirectory>
          </artifactItem>
        </artifactItems>
      </configuration>
    </execution>
  </executions>
</plugin> 




> Unpack does not seem to extract *.txt files
> -------------------------------------------
>
>                 Key: MDEP-258
>                 URL: https://jira.codehaus.org/browse/MDEP-258
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: unpack
>    Affects Versions: 2.1
>         Environment: Windows 7 (64-bit), Java 1.5.0_22, Maven 2.2.1
>            Reporter: Ryan Holliday
>         Attachments: jamwiki-db-0.9.0-SNAPSHOT.jar
>
>
> When using the maven-dependency-plugin in the following example any *.txt files do not seem to get extracted, although everything else does.  I've tried with and without any exclude patterns and with different phase values, but nothing seems to make a difference.  Sample JAR is included.  Apologies if this is due to some rule about what can/cannot be included in a JAR file, but I would assume that since the *.txt files are packaged by Maven that they should also be allowed to be extracted.
> {code:xml}
> <!--
> Currently the sql.*.properties files and default topic files are in the
> jamwiki-db.jar file.  To make it easy for sites to customize SQL (for bug
> fixing and such) and to create new translations, unpack these files
> from the JAR and place them into the WEB-INF/classes folder.
> -->
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>unpack</id>
>       <goals>
>         <goal>unpack</goal>
>       </goals>
>       <configuration>
>         <artifactItems>
>           <artifactItem>
>             <groupId>org.jamwiki</groupId>
>             <artifactId>jamwiki-db</artifactId>
>             <type>jar</type>
>             <outputDirectory>${project.build.directory}/classes</outputDirectory>
>           </artifactItem>
>         </artifactItems>
>       </configuration>
>     </execution>
>   </executions>
> </plugin> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)