Reputation: 1
I am trying to deploy a jar to a maven repo with some dependencies, from the maven. I tried using aven-assembly-plugin and maven-shade-plugin and some other ones. And I am trying to deploy using clean deploy -Dmaven.resolver.transport=wagon dependency:copy-dependencies
its building the jar with my code and not adding dependencies.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>localrepo</outputDirectory>
<useRepositoryLayout>true</useRepositoryLayout>
<artifactSet>
<includes>
<include>com.zaxxer:HikariCP</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Thanks for your time!
Upvotes: 0
Views: 26