[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.hellblazer:ibe:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.hellblazer:ibe.app:0.0.1-SNAPSHOT, F:\Workspace\eclipse\IBE-master\pom.xml, line 16, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.hellblazer:provider-testing:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.hellblazer:ibe.app:0.0.1-SNAPSHOT, F:\Workspace\eclipse\IBE-master\pom.xml, line 16, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.hellblazer:ibe.app:pom:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 16, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Identity Based Encryption JCA [INFO] Identity Based Encryption JCA [INFO] JCE Provider Testing [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Identity Based Encryption JCA 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Identity Based Encryption JCA 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ibe --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ ibe --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ibe --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory F:\Workspace\eclipse\IBE-master\framework\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ ibe --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ibe --- [INFO] Surefire report directory: F:\Workspace\eclipse\IBE-master\framework\target\surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running nuim.cs.crypto.algebra.AltTangentTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec Running nuim.cs.crypto.algebra.FunctionTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.algebra.StraightLineTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec Running nuim.cs.crypto.algebra.TangentLineTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.algebra.VerticalLineTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.bilinear.ModifiedTatePairingTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.575 sec Running nuim.cs.crypto.bilinear.PairingEllipticCurveTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.bilinear.TatePairingTest Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.985 sec Running nuim.cs.crypto.bilinear.WeilPairingTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.593 sec Running nuim.cs.crypto.blitz.curve.CubicCurveTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec Running nuim.cs.crypto.blitz.curve.EllipticCurveTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.curve.strategy.affine.PrimeAffineAddStrategyTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.curve.strategy.affine.PrimeAffineDoubleStrategyTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.field.ElementTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.field.extension.Fp2ElementTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.field.extension.Fp2Test Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running nuim.cs.crypto.blitz.field.FieldTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.field.FiniteFieldPrimeTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.blitz.point.AffinePointTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.ibe.IbeCipherTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.727 sec Running nuim.cs.crypto.ibe.IbeKeyPairGeneratorTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.827 sec Running nuim.cs.crypto.ibe.IbeKeyParametersTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running nuim.cs.crypto.ibe.IbeKeyTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.ibe.IbePrivateKeyTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.ibe.IbeProviderTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.ibe.IbePublicKeyTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.ibe.IbeSystemParametersTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.936 sec Running nuim.cs.crypto.md.XORMessageDigestTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.primality.GordonTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.47 sec Running nuim.cs.crypto.tender.elgamal.ellipticcurve.LegendreTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.tender.elgamal.ellipticcurve.QuadraticNonresiduesTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.tender.elgamal.ellipticcurve.SquareRootModuloPTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running nuim.cs.crypto.util.BigSquareRootTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
Results :
Tests run: 121, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JCE Provider Testing 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ provider-testing --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory F:\Workspace\eclipse\IBE-master\provider-testing\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ provider-testing --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ provider-testing --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory F:\Workspace\eclipse\IBE-master\provider-testing\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ provider-testing --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ provider-testing --- [INFO] Surefire report directory: F:\Workspace\eclipse\IBE-master\provider-testing\target\surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running nuim.cs.crypto.ibe.test.IbeProviderTest Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.741 sec <<< FAILURE! testCipher(nuim.cs.crypto.ibe.test.IbeProviderTest) Time elapsed: 0.12 sec <<< ERROR! java.lang.SecurityException: JCE cannot authenticate the provider NUIMCSCGIBE at javax.crypto.Cipher.getInstance(Cipher.java:642) at nuim.cs.crypto.ibe.test.IbeProviderTest.testCipher(IbeProviderTest.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.SecurityException: Cannot verify jar:file:/F:/Workspace/eclipse/IBE-master/framework/target/classes/!/ at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:406) at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322) at javax.crypto.JarVerifier.verify(JarVerifier.java:250) at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161) at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187) at javax.crypto.Cipher.getInstance(Cipher.java:638) ... 26 more Caused by: java.security.PrivilegedActionException: java.io.FileNotFoundException: F:\Workspace\eclipse\IBE-master\framework\target\classes (拒绝访问。) at java.security.AccessController.doPrivileged(Native Method) at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:384) ... 31 more Caused by: java.io.FileNotFoundException: F:\Workspace\eclipse\IBE-master\framework\target\classes (拒绝访问。) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:91) at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89) at javax.crypto.JarVerifier$2.run(JarVerifier.java:399) ... 33 more
testCreateCipher(nuim.cs.crypto.ibe.test.IbeProviderTest) Time elapsed: 0 sec <<< ERROR! java.lang.SecurityException: JCE cannot authenticate the provider NUIMCSCGIBE at javax.crypto.Cipher.getInstance(Cipher.java:642) at nuim.cs.crypto.ibe.test.IbeProviderTest.testCreateCipher(IbeProviderTest.java:147) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.SecurityException: Cannot verify jar:file:/F:/Workspace/eclipse/IBE-master/framework/target/classes/!/ at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:406) at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:322) at javax.crypto.JarVerifier.verify(JarVerifier.java:250) at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:161) at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:187) at javax.crypto.Cipher.getInstance(Cipher.java:638) ... 26 more Caused by: java.security.PrivilegedActionException: java.io.FileNotFoundException: F:\Workspace\eclipse\IBE-master\framework\target\classes (拒绝访问。) at java.security.AccessController.doPrivileged(Native Method) at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:384) ... 31 more Caused by: java.io.FileNotFoundException: F:\Workspace\eclipse\IBE-master\framework\target\classes (拒绝访问。) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:215) at java.util.zip.ZipFile.<init>(ZipFile.java:145) at java.util.jar.JarFile.<init>(JarFile.java:154) at java.util.jar.JarFile.<init>(JarFile.java:91) at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:109) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89) at javax.crypto.JarVerifier$2.run(JarVerifier.java:399) ... 33 more
Results :
Tests in error: testCipher(nuim.cs.crypto.ibe.test.IbeProviderTest): JCE cannot authenticate the provider NUIMCSCGIBE testCreateCipher(nuim.cs.crypto.ibe.test.IbeProviderTest): JCE cannot authenticate the provider NUIMCSCGIBE
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Identity Based Encryption JCA ..................... SUCCESS [ 0.780 s] [INFO] Identity Based Encryption JCA ..................... SUCCESS [ 45.866 s] [INFO] JCE Provider Testing .............................. FAILURE [ 2.787 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 49.704 s [INFO] Finished at: 2015-06-10T16:31:54+08:00 [INFO] Final Memory: 6M/15M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project provider-testing: There are test failures. [ERROR] [ERROR] Please refer to F:\Workspace\eclipse\IBE-master\provider-testing\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :provider-testing