Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] How to unpack from jar/zip subfolder?

I have a jar like:

myArchive.jar:

rootFolder

   myFile.txt

   otherFolder

    moreFile.txt

   

 

It seems impossible to specify that I just want everything under rootFolder but not the folder “rootFolder” itself.

 

<includes>rootFolder/**/*</includes> doesn’t work.

 

So what I’m looking of is specifying a base folder/directory where to start unpack from.

 

<plugins>

<plugin>

                                <groupId>org.apache.maven.plugins</groupId>

                                <artifactId>maven-dependency-plugin</artifactId>

                                <version>2.3</version>

                                <executions>

                                                <execution>

                                                                <id>unpack</id>

                                                                <phase>package</phase>

                                                                <goals>

                                                                                <goal>unpack</goal>

                                                                </goals>

                                                                <configuration>

                                                                                <artifactItems>

                                                                                                <artifactItem>

                                                                                                                <groupId>myArchive </groupId>

                                                                                                                <artifactId myArchive </artifactId>

                                                                                                                <version>1</version>


Back to the top