mvn install:install-file -Dfile=javax.xml.rpc-3.1.1.jar -DgroupId=javax.xml -DartifactId=rpc -Dversion=3.1.1 -Dpackaging=jar
mvn install:install-file -Dfile=javax.xml.rpc-api-1.1.jar -DgroupId=javax.xml -DartifactId=rpc-api -Dversion=1.1 -Dpackaging=jar
<dependency>
<groupId>javax.xml</groupId>
<artifactId>rpc</artifactId>
<version>3.1.1</version>
<!-- <scope>system</scope>
<systemPath>D:/maven_repository/local-jar/javax.xml.rpc-3.1.1.jar</systemPath>-->
</dependency>
<build>
<plugins>
<!-- Java Compiler -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${target.java.version}</source>
<target>${target.java.version}</target>
</configuration>
</plugin>
<!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
<!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<!-- <exclude>com.google.code.findbugs:jsr305</exclude>-->
<!-- <exclude>org.slf4j:*</exclude>-->
<!-- <exclude>org.apache.logging.log4j:*</exclude>-->
</excludes>
</artifactSet>
<filters>
<filter>
<!-- Do not copy the signatures in the META-INF folder.
Otherwise, this might cause SecurityExceptions when using the JAR. -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.sgcc.zj.cst.emas.EMeterEventNoPower</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>