maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From imix <nick.berezov...@gmail.com>
Subject File separator in dependency:unpack plagin
Date Mon, 21 Dec 2009 17:38:26 GMT

Hi colleagues,
I have a big problem with maven-dependency-plugin related to path separator
on linux.
I want to unpack test.jar with following hierarchy:

test.jar
|
-----com
       |
       -----bsuir
              |
              test.lib

I configured my pom as:

<plugin>
        <artifactId>maven-dependency-plugin</artifactId>
	<executions>
		<execution>
			<id>unpack</id>
				<phase>package</phase>
				<goals>
					<goal>unpack</goal>
				</goals>

				<configuration>
                                <artifactItems>
					<artifactItem>
                                                  <groupId>*****</groupId>
						  <artifactId>****</artifactId>
		        			  <includes>**\/*.lib</includes>
						  <outputDirectory>
										
${project.build.directory}/${project.build.finalName}/WEB-INF/classes
						 </outputDirectory>	
					</artifactItem>
				</artifactItems>
		        </configuration>
	        </execution>
        </executions>
</plugin>

And plugin unpack jar not correctly on linux (on windows everything is
allright).
Plugin put into /WEB-INF/classes not a package with name com and so on, it
put com\bsuir\test.lib

Question:
How can I change separator to / for linux.

I also tried to use mvn clean install -DfileSeparator=/ -DpathSeparator=:
... not helped. 

Thanks.
-- 
View this message in context: http://old.nabble.com/File-separator-in-dependency%3Aunpack-plagin-tp26877350p26877350.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message