Selaa lähdekoodia

Merge branch 'StephenPCG-fix-building'

KeYuan 8 vuotta sitten
vanhempi
commit
a9cda0bf97
2 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 6 0
      pom.xml
  2. 1 2
      src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java

+ 6 - 0
pom.xml

@@ -15,6 +15,12 @@
       <scope>test</scope>
     </dependency>
     
+<!-- https://mvnrepository.com/artifact/com.sun.xml.security/xml-security-impl -->
+	<dependency>
+		<groupId>com.sun.xml.security</groupId>
+		<artifactId>xml-security-impl</artifactId>
+		<version>1.0</version>
+	</dependency>
 	<dependency>
 		<groupId>org.apache.geronimo.specs</groupId>
 		<artifactId>geronimo-j2ee-management_1.1_spec</artifactId>

+ 1 - 2
src/main/java/com/key/common/plugs/jcaptcha/CaptchaEngineEx.java

@@ -24,7 +24,6 @@ import com.octo.captcha.component.word.wordgenerator.ComposeDictionaryWordGenera
 import com.octo.captcha.component.word.wordgenerator.WordGenerator;
 import com.octo.captcha.engine.image.ListImageCaptchaEngine;
 import com.octo.captcha.image.gimpy.GimpyFactory;
-import com.sun.image.codec.jpeg.ImageFormatException;
 
 public class CaptchaEngineEx extends ListImageCaptchaEngine {
 
@@ -97,4 +96,4 @@ public class CaptchaEngineEx extends ListImageCaptchaEngine {
 	                background, randomPaster, backDef, textDef, postDef);  
 	        addFactory(new GimpyFactory(dictionnaryWords, word2image));  
 	    }  
-}
+}