Skip to content

Commit 9d8562f

Browse files
committed
分支v2.x - 修改pom.xml
1 parent b4ae1aa commit 9d8562f

File tree

4 files changed

+113
-21
lines changed

4 files changed

+113
-21
lines changed

assembly.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
<moduleSet>
2828
<useAllReactorProjects>true</useAllReactorProjects>
2929
<includes>
30-
<include>org.ogcs:core</include>
31-
<include>org.ogcs:okra-spring</include>
32-
<include>org.ogcs:okra-utilities</include>
33-
<include>org.ogcs:okra-flex</include>
30+
<include>org.ogcs:okra-core</include>
3431
</includes>
3532
<!--<sources>
3633
<outputDirectory>sources/${artifactId}</outputDirectory>

okra-core/pom.xml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,102 @@
2727
<artifactId>okra-core</artifactId>
2828
<packaging>jar</packaging>
2929

30+
<properties>
31+
<maven.compiler.source>1.8</maven.compiler.source>
32+
<maven.compiler.target>1.8</maven.compiler.target>
33+
</properties>
34+
35+
<issueManagement>
36+
<system>Github Issue</system>
37+
<url>https://github.com/ogcs/Okra/issues</url>
38+
</issueManagement>
39+
<licenses>
40+
<license>
41+
<name>The Apache Software License, Version 2.0</name>
42+
<url>http://apache.org/licenses/LICENSE-2.0.txt</url>
43+
</license>
44+
</licenses>
45+
<developers>
46+
<developer>
47+
<name>TinyZ.</name>
48+
<email>[email protected]</email>
49+
</developer>
50+
</developers>
51+
52+
<build>
53+
<plugins>
54+
<!-- 设置源文件编码方式 -->
55+
<plugin>
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-compiler-plugin</artifactId>
58+
<!--<configuration>
59+
<defaultLibBundleDir>lib</defaultLibBundleDir>
60+
<source>1.8</source>
61+
<target>1.8</target>
62+
<encoding>UTF-8</encoding>
63+
</configuration>-->
64+
</plugin>
65+
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-jar-plugin</artifactId>
69+
<version>3.0.2</version>
70+
<!--<configuration>
71+
<archive>
72+
<manifest>
73+
<addClasspath>true</addClasspath>
74+
<classpathPrefix>lib/</classpathPrefix>
75+
<mainClass>com.sysware.HelloWorld</mainClass>
76+
</manifest>
77+
</archive>
78+
</configuration>-->
79+
</plugin>
80+
<!-- 拷贝依赖的jar包到lib目录 -->
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-dependency-plugin</artifactId>
84+
<executions>
85+
<execution>
86+
<id>copy</id>
87+
<phase>package</phase>
88+
<goals>
89+
<goal>copy-dependencies</goal>
90+
</goals>
91+
<configuration>
92+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
93+
</configuration>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
<!-- 解决资源文件的编码问题 -->
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-resources-plugin</artifactId>
101+
<version>2.4</version>
102+
<configuration>
103+
<encoding>UTF-8</encoding>
104+
</configuration>
105+
</plugin>
106+
<!-- 打包source文件为jar文件(源码,可选) -->
107+
<plugin>
108+
<artifactId>maven-source-plugin</artifactId>
109+
<version>2.2.1</version>
110+
<configuration>
111+
<attach>true</attach>
112+
<!--<encoding>UTF-8</encoding>-->
113+
</configuration>
114+
<executions>
115+
<execution>
116+
<phase>compile</phase>
117+
<goals>
118+
<goal>jar</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
123+
</plugins>
124+
</build>
125+
30126
<dependencies>
31127
<dependency>
32128
<groupId>io.netty</groupId>
@@ -44,6 +140,16 @@
44140
<groupId>org.apache.logging.log4j</groupId>
45141
<artifactId>log4j-api</artifactId>
46142
</dependency>
143+
<dependency>
144+
<groupId>org.apache.flex.blazeds</groupId>
145+
<artifactId>flex-messaging-core</artifactId>
146+
<version>4.7.2</version>
147+
</dependency>
148+
<dependency>
149+
<groupId>org.apache.flex.blazeds</groupId>
150+
<artifactId>flex-messaging-common</artifactId>
151+
<version>4.7.2</version>
152+
</dependency>
47153
</dependencies>
48154

49155
</project>

okra-demo/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,7 @@
9090
</dependency>
9191
<dependency>
9292
<groupId>org.ogcs</groupId>
93-
<artifactId>core</artifactId>
94-
<version>1.0.1</version>
95-
</dependency>
96-
<dependency>
97-
<groupId>org.ogcs</groupId>
98-
<artifactId>okra-spring</artifactId>
93+
<artifactId>okra-core</artifactId>
9994
<version>1.0.1</version>
10095
</dependency>
10196
</dependencies>

pom.xml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,16 @@
2626
</developers>
2727

2828
<modules>
29-
<module>core</module>
30-
<module>okra-spring</module>
31-
<module>okra-utilities</module>
32-
<module>okra-flex</module>
33-
34-
35-
<module>okra-examples</module>
36-
<module>okra-demo</module>
3729
<module>okra-core</module>
30+
<module>okra-demo</module>
31+
<module>okra-examples</module>
3832
</modules>
3933
<properties>
4034
<maven.compiler.source>1.8</maven.compiler.source>
4135
<maven.compiler.target>1.8</maven.compiler.target>
4236
</properties>
4337

44-
<build>
38+
<!--<build>
4539
<plugins>
4640
<plugin>
4741
<artifactId>maven-compiler-plugin</artifactId>
@@ -51,7 +45,7 @@
5145
<artifactId>maven-assembly-plugin</artifactId>
5246
<version>2.4</version>
5347
<configuration>
54-
<!-- not append assembly id in release file name -->
48+
&lt;!&ndash; not append assembly id in release file name &ndash;&gt;
5549
<appendAssemblyId>false</appendAssemblyId>
5650
<descriptors>
5751
<descriptor>assembly.xml</descriptor>
@@ -68,7 +62,7 @@
6862
</executions>
6963
</plugin>
7064
</plugins>
71-
</build>
65+
</build>-->
7266

7367
<dependencyManagement>
7468
<dependencies>

0 commit comments

Comments
 (0)