I used maven-dependency-plugin plugin to unpack-dependencies .
I can see unpacked jars (those needed at compile stage) under target/dependency when run
mvn dependency:unpack-dependencies
But instead if I run
mvn clean install
I get compilation errors .
How could I let know maven that these unpacked jars to be used when compiling and installing ?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>package</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>com.group</includeGroupIds>
<includeArtifactIds>zippedArtifact</includeArtifactIds>
<includes>x.jar,y.jar</includes>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>