Browse Source

Added more deployment related info and other minor changes

Abhinav Sarkar 10 years ago
parent
commit
932e614a50
2 changed files with 53 additions and 15 deletions
  1. 52
    14
      pom.xml
  2. 1
    1
      src/test/scala/net/abhinavsarkar/spelhelper/ExtensionFunctionsSpec.scala

+ 52
- 14
pom.xml View File

@@ -20,6 +20,20 @@
20 20
   <system>GitHub</system>
21 21
   <url>http://github.com/abhin4v/spelhelper/issues</url>
22 22
  </issueManagement>
23
+ <inceptionYear>2010</inceptionYear>
24
+ <distributionManagement>
25
+  <repository>
26
+   <id>ftp-maven.abhinavsarkar.net</id>
27
+   <url>ftp://ftp.byethost14.com/maven.abhinavsarkar.net/htdocs</url>
28
+  </repository>
29
+ </distributionManagement>
30
+ <licenses>
31
+  <license>
32
+   <name>GNU LESSER GENERAL PUBLIC LICENSE, Version 3</name>
33
+   <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
34
+   <distribution>repo</distribution>
35
+  </license>
36
+ </licenses>
23 37
  <developers>
24 38
   <developer>
25 39
    <id>abhin4v</id>
@@ -34,7 +48,29 @@
34 48
   <url>scm:git:git://github.com/abhin4v/spelhelper.git</url>
35 49
  </scm>
36 50
  <build>
51
+  <extensions>
52
+   <!-- Enabling the use of FTP -->
53
+   <extension>
54
+    <groupId>org.apache.maven.wagon</groupId>
55
+    <artifactId>wagon-ftp</artifactId>
56
+    <version>1.0-beta-6</version>
57
+   </extension>
58
+  </extensions>
37 59
   <plugins>
60
+   <plugin>
61
+    <groupId>org.apache.maven.plugins</groupId>
62
+    <artifactId>maven-source-plugin</artifactId>
63
+    <version>2.1.2</version>
64
+    <executions>
65
+     <execution>
66
+      <id>attach-sources</id>
67
+      <phase>verify</phase>
68
+      <goals>
69
+       <goal>jar-no-fork</goal>
70
+      </goals>
71
+     </execution>
72
+    </executions>
73
+   </plugin>
38 74
    <plugin>
39 75
     <groupId>org.apache.maven.plugins</groupId>
40 76
     <artifactId>maven-javadoc-plugin</artifactId>
@@ -42,15 +78,17 @@
42 78
     <executions>
43 79
      <execution>
44 80
       <id>javadoc</id>
45
-      <phase>install</phase>
81
+      <phase>verify</phase>
46 82
       <goals>
47 83
        <goal>javadoc</goal>
84
+       <goal>jar</goal>
48 85
       </goals>
49 86
      </execution>
50 87
     </executions>
51 88
     <configuration>
52 89
      <reportOutputDirectory>${basedir}/../apidocs</reportOutputDirectory>
53
-     <footer>Code hosted at &lt;a target='_blank' href='http://github.com/abhin4v/spelhelper/'&gt;github&lt;/a&gt;</footer>
90
+     <footer>Code hosted at &lt;a target='_blank'
91
+      href='http://github.com/abhin4v/spelhelper/'&gt;github&lt;/a&gt;</footer>
54 92
      <links>
55 93
       <link>http://static.springsource.org/spring/docs/3.0.x/javadoc-api/</link>
56 94
      </links>
@@ -106,12 +144,12 @@
106 144
     <artifactId>maven-surefire-report-plugin</artifactId>
107 145
     <version>2.5</version>
108 146
     <executions>
109
-      <execution>
110
-        <phase>test</phase>
111
-        <goals>
112
-          <goal>report-only</goal>
113
-        </goals>
114
-      </execution>
147
+     <execution>
148
+      <phase>test</phase>
149
+      <goals>
150
+       <goal>report-only</goal>
151
+      </goals>
152
+     </execution>
115 153
     </executions>
116 154
    </plugin>
117 155
    <plugin>
@@ -119,12 +157,12 @@
119 157
     <artifactId>cobertura-maven-plugin</artifactId>
120 158
     <version>2.4</version>
121 159
     <executions>
122
-      <execution>
123
-        <phase>verify</phase>
124
-        <goals>
125
-          <goal>cobertura</goal>
126
-        </goals>
127
-      </execution>
160
+     <execution>
161
+      <phase>verify</phase>
162
+      <goals>
163
+       <goal>cobertura</goal>
164
+      </goals>
165
+     </execution>
128 166
     </executions>
129 167
    </plugin>
130 168
   </plugins>

+ 1
- 1
src/test/scala/net/abhinavsarkar/spelhelper/ExtensionFunctionsSpec.scala View File

@@ -33,7 +33,7 @@ class ExtensionFunctionsSpec extends FlatSpec with ShouldMatchersForJUnit {
33 33
       new {}, classOf[JMap[String,Int]]) should equal(map)
34 34
   }
35 35
 
36
-  "Extension Function 'map'" should "throw SpelEvaluationException" +
36
+  "Extension Function 'map'" should "throw SpelEvaluationException " +
37 37
           "if length of key and values lists is not same " in {
38 38
     evaluating { new SpelHelper().evalExpression("#map(#list('a','b','c'),#list(1,2))",
39 39
       new {}, classOf[JMap[String,Int]]) } should produce [SpelEvaluationException]

Loading…
Cancel
Save