Commit 192b9d22 authored by yangfuhai's avatar yangfuhai
Browse files

修复插件依赖外部 jar ,在某些情况下可能会导致无法被安装的问题

parent a9483756
Showing with 34 additions and 2 deletions
+34 -2
......@@ -13,15 +13,44 @@
<artifactId>jpress-addon-helloworld</artifactId>
<dependencies>
<dependency>
<groupId>io.jpress</groupId>
<artifactId>jpress-core</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 若没有依赖外部的jar,可以不用添加这个插件,相反,如果依赖了外部的jar,则必须添加 maven-assembly-plugin 插件-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
<!-- <version>3.1.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>make-assembly</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>single</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <descriptorRefs>-->
<!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
<!-- </descriptorRefs>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
......
......@@ -13,16 +13,19 @@
<dependencies>
<dependency>
<groupId>io.jpress</groupId>
<artifactId>jpress-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.jpress</groupId>
<artifactId>codegen</artifactId>
<version>4.0</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
</dependencies>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment