Browse Source

插件开发配置

persist/10.0
richie 6 years ago
parent
commit
1f17678f58
  1. 1
      .gitignore
  2. 0
      plugin-function/build.xml
  3. 0
      plugin-function/plugin.xml
  4. 28
      plugin-function/pom.xml
  5. 0
      plugin-function/src/main/java/com/fr/plugin/MyAbs.java
  6. 14
      plugins/plugin-function/pom.xml
  7. 21
      plugins/pom.xml
  8. 5
      pom.xml

1
.gitignore vendored

@ -2,3 +2,4 @@
.idea/ .idea/
/target/ /target/
/download/ /download/
/webroot/

0
plugins/plugin-function/build.xml → plugin-function/build.xml

0
plugins/plugin-function/plugin.xml → plugin-function/plugin.xml

28
plugin-function/pom.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<version>10.0</version>
</parent>
<packaging>jar</packaging>
<artifactId>plugin-function</artifactId>
<dependencies>
<dependency>
<groupId>com.fr.plugin</groupId>
<artifactId>gson</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/gson-2.3.1.jar</systemPath>
</dependency>
</dependencies>
<build>
<!---如果要更改调试插件,改这里的配置就可以了-->
<outputDirectory>${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.plugin.function.test-1.0/classes</outputDirectory>
</build>
</project>

0
plugins/plugin-function/src/main/java/com/fr/plugin/MyAbs.java → plugin-function/src/main/java/com/fr/plugin/MyAbs.java

14
plugins/plugin-function/pom.xml

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>com.fr.plugin</groupId>
<artifactId>plugins</artifactId>
<version>1.0</version>
</parent>
<packaging>jar</packaging>
<artifactId>plugin-function</artifactId>
</project>

21
plugins/pom.xml

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<version>1.0</version>
</parent>
<packaging>pom</packaging>
<artifactId>plugins</artifactId>
<modules>
<module>plugin-function</module>
</modules>
<build>
<!---如果要更改调试插件,改这里的配置就可以了-->
<outputDirectory>${web-inf-path}/plugins/plugin-com.fr.plugin.function.test-1.0/classes</outputDirectory>
</build>
</project>

5
pom.xml

@ -3,14 +3,14 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.fr.plugin</groupId> <groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId> <artifactId>starter</artifactId>
<version>1.0</version> <version>10.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<common-version>10.0-RELEASE-SNAPSHOT</common-version> <common-version>10.0-RELEASE-SNAPSHOT</common-version>
<web-inf-path>${project.basedir}/webroot/WEB-INF</web-inf-path> <web-inf-path>${project.basedir}/webroot/WEB-INF</web-inf-path>
</properties> </properties>
<modules> <modules>
<module>plugins</module> <module>plugin-function</module>
</modules> </modules>
<dependencies> <dependencies>
<!-- core包 --> <!-- core包 -->
@ -143,6 +143,7 @@
</dependencies> </dependencies>
<build> <build>
<outputDirectory>${web-inf-path}/classes</outputDirectory>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>

Loading…
Cancel
Save