Просмотр исходного кода

Deleted Eclipse files

Deleted hard coded dependency
Modified pom to assemble jar with dependencies
jorgen_falk 18 лет назад
Родитель
Сommit
31912b0410
4 измененных файлов: 107 добавлений и 43 удалений
  1. 0
    10
      register-app/.classpath
  2. 0
    23
      register-app/.project
  3. Двоичные данные
      register-app/dddsample-1.0-SNAPSHOT.jar
  4. 107
    10
      register-app/pom.xml

+ 0
- 10
register-app/.classpath Просмотреть файл

@@ -1,10 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<classpath>
3
-	<classpathentry kind="src" path="src/main/java"/>
4
-	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
5
-	<classpathentry kind="src" path="src/main/resources"/>
6
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
7
-	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
8
-	<classpathentry kind="lib" path="dddsample-1.0-SNAPSHOT.jar"/>
9
-	<classpathentry kind="output" path="target/classes"/>
10
-</classpath>

+ 0
- 23
register-app/.project Просмотреть файл

@@ -1,23 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<projectDescription>
3
-	<name>register-app</name>
4
-	<comment></comment>
5
-	<projects>
6
-	</projects>
7
-	<buildSpec>
8
-		<buildCommand>
9
-			<name>org.maven.ide.eclipse.maven2Builder</name>
10
-			<arguments>
11
-			</arguments>
12
-		</buildCommand>
13
-		<buildCommand>
14
-			<name>org.eclipse.jdt.core.javabuilder</name>
15
-			<arguments>
16
-			</arguments>
17
-		</buildCommand>
18
-	</buildSpec>
19
-	<natures>
20
-		<nature>org.eclipse.jdt.core.javanature</nature>
21
-		<nature>org.maven.ide.eclipse.maven2Nature</nature>
22
-	</natures>
23
-</projectDescription>

Двоичные данные
register-app/dddsample-1.0-SNAPSHOT.jar Просмотреть файл


+ 107
- 10
register-app/pom.xml Просмотреть файл

@@ -1,22 +1,23 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project xmlns="http://maven.apache.org/POM/4.0.0"
3
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5 5
   <modelVersion>4.0.0</modelVersion>
6 6
   <groupId>se.citerus</groupId>
7 7
   <artifactId>register-app</artifactId>
8
+  <packaging>jar</packaging>
8 9
   <name>register-app</name>
9 10
   <version>1.0-SNAPSHOT</version>
10 11
   <url>http://maven.apache.org</url>
11
-    <repositories>
12
+  <repositories>
12 13
     <repository>
13 14
       <id>maven2-repository.dev.java.net</id>
14 15
       <name>Java.net Repository for Maven</name>
15 16
       <url>http://download.java.net/maven/2/</url>
16 17
       <layout>default</layout>
17 18
     </repository>
18
-   </repositories>
19
-     <pluginRepositories>
19
+  </repositories>
20
+  <pluginRepositories>
20 21
     <pluginRepository>
21 22
       <id>maven2-repository.dev.java.net</id>
22 23
       <name>Java.net Repository for Maven</name>
@@ -24,7 +25,7 @@
24 25
     </pluginRepository>
25 26
   </pluginRepositories>
26 27
   <build>
27
-     <plugins>
28
+    <plugins>
28 29
       <!-- Compiler -->
29 30
       <plugin>
30 31
         <artifactId>maven-compiler-plugin</artifactId>
@@ -34,8 +35,32 @@
34 35
           <encoding>UTF-8</encoding>
35 36
         </configuration>
36 37
       </plugin>
37
-     </plugins>
38
-   </build> 
38
+      <plugin>
39
+        <groupId>org.apache.maven.plugins</groupId>
40
+        <artifactId>maven-jar-plugin</artifactId>
41
+        <configuration>
42
+          <archive>
43
+            <manifest>
44
+              <mainClass>se.citerus.App</mainClass>
45
+            </manifest>
46
+          </archive>
47
+        </configuration>
48
+      </plugin>
49
+      <plugin>
50
+        <artifactId>maven-assembly-plugin</artifactId>
51
+        <configuration>
52
+          <descriptorRefs>
53
+            <descriptorRef>jar-with-dependencies</descriptorRef>
54
+          </descriptorRefs>
55
+          <archive>
56
+            <manifest>
57
+              <mainClass>se.citerus.App</mainClass>
58
+            </manifest>
59
+          </archive>
60
+        </configuration>
61
+      </plugin>
62
+    </plugins>
63
+  </build>
39 64
   <dependencies>
40 65
     <dependency>
41 66
       <groupId>junit</groupId>
@@ -57,11 +82,83 @@
57 82
       <groupId>com.jgoodies</groupId>
58 83
       <artifactId>looks</artifactId>
59 84
       <version>2.1.2</version>
60
-    </dependency>   
61
-        <dependency>
85
+    </dependency>
86
+    <dependency>
62 87
       <groupId>com.sun.xml.ws</groupId>
63 88
       <artifactId>jaxws-rt</artifactId>
64 89
       <version>2.1.3</version>
65 90
     </dependency>
91
+    <dependency>
92
+      <groupId>se.citerus</groupId>
93
+      <artifactId>dddsample</artifactId>
94
+      <version>1.0-SNAPSHOT</version>
95
+      <classifier>ws-client</classifier>
96
+      <exclusions>
97
+        <exclusion>
98
+          <groupId>org.springframework</groupId>
99
+          <artifactId>spring-webmvc</artifactId>
100
+        </exclusion>
101
+        <exclusion>
102
+          <groupId>org.springframework</groupId>
103
+          <artifactId>spring-hibernate3</artifactId>
104
+        </exclusion>
105
+        <exclusion>
106
+          <groupId>org.springframework</groupId>
107
+          <artifactId>spring-jdbc</artifactId>
108
+        </exclusion>
109
+        <exclusion>
110
+          <groupId>org.springframework</groupId>
111
+          <artifactId>spring-aop</artifactId>
112
+        </exclusion>
113
+        <exclusion>
114
+          <groupId>org.springframework</groupId>
115
+          <artifactId>spring-mock</artifactId>
116
+        </exclusion>
117
+        <exclusion>
118
+          <groupId>org.springframework</groupId>
119
+          <artifactId>spring-context</artifactId>
120
+        </exclusion>
121
+        <exclusion>
122
+          <groupId>org.springframework</groupId>
123
+          <artifactId>spring-beans</artifactId>
124
+        </exclusion>
125
+        <exclusion>
126
+          <groupId>org.hibernate</groupId>
127
+          <artifactId>hibernate</artifactId>
128
+        </exclusion>
129
+        <exclusion>
130
+          <groupId>org.hibernate</groupId>
131
+          <artifactId>hibernate-annotations</artifactId>
132
+        </exclusion>
133
+        <exclusion>
134
+          <groupId>org.hibernate</groupId>
135
+          <artifactId>hibernate-commons-annotations</artifactId>
136
+        </exclusion>
137
+        <exclusion>
138
+          <groupId>commons-dbcp</groupId>
139
+          <artifactId>commons-dbcp</artifactId>
140
+        </exclusion>
141
+        <exclusion>
142
+          <groupId>hsqldb</groupId>
143
+          <artifactId>hsqldb</artifactId>
144
+        </exclusion>
145
+        <exclusion>
146
+          <groupId>javax.servlet</groupId>
147
+          <artifactId>servlet-api</artifactId>
148
+        </exclusion>
149
+        <exclusion>
150
+          <groupId>taglibs</groupId>
151
+          <artifactId>standard</artifactId>
152
+        </exclusion>
153
+        <exclusion>
154
+          <groupId>javax.servlet</groupId>
155
+          <artifactId>jstl</artifactId>
156
+        </exclusion>
157
+        <exclusion>
158
+          <groupId>opensymphony</groupId>
159
+          <artifactId>sitemesh</artifactId>
160
+        </exclusion>
161
+      </exclusions>
162
+    </dependency>
66 163
   </dependencies>
67 164
 </project>