You must first resolve the error in the distribution of control as follows:
<distributionManagement> <snapshotRepository> <id>wvoNexus</id> <url>http://nexus.corproot.com/nexus/content/repositories/snapshots/</url> </snapshotRepository> <repository> <id>wvoNexus</id> <url>http://nexus.corproot.com/nexus/content/repositories/releases/</url> </repository> </distributionManagement>
If you fixed that you can simply deploy the files to your link via:
mvn clean deploy
If you donβt like having an expanded can, you need to change the type of packaging in your pump, like this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wyndhamvo.prototype.dbscripts</groupId> <artifactId>DB_SCRIPTS</artifactId> <version>2.0.0.1</version> <packaging>pom</packaging> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptor>src/assembly/descriptor.xml</descriptor> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
In addition, I recommend defining the versions of your used plugins as follows:
<build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version> <configuration> <descriptor>src/assembly/descriptor.xml</descriptor> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
source share