wesabe/grendel

Build failing on OS X 10.8

Closed this issue · 1 comments

Hi There,

Apologies if I'm posting in the wrong place.

I'm trying to install grendel on OS X following the GETTING-STARTED.md file. I have installed the latest Java JDK, which on OS X put's JAVA_HOME in /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home and added the Bouncy Castle .jar to /Library/Java/Extentions as described here.

When I clone grendel, and run mvn clean package I get the below output.

I'm not really sure where to begin with this issue - any help is much appreciated! :)

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Grendel 0.4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.jboss.org/maven2/com/wideplay/warp/warp-persist/2.0-SNAPSHOT/maven-metadata.xml

[WARNING] Could not transfer metadata com.wideplay.warp:warp-persist:2.0-SNAPSHOT/maven-metadata.xml from/to jboss (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/com/wideplay/warp/warp-persist/2.0-SNAPSHOT/maven-metadata.xml, ReasonPhrase:Forbidden.
[WARNING] Failure to transfer com.wideplay.warp:warp-persist:2.0-SNAPSHOT/maven-metadata.xml from http://repository.jboss.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of jboss has elapsed or updates are forced. Original error: Could not transfer metadata com.wideplay.warp:warp-persist:2.0-SNAPSHOT/maven-metadata.xml from/to jboss (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/com/wideplay/warp/warp-persist/2.0-SNAPSHOT/maven-metadata.xml, ReasonPhrase:Forbidden.
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ grendel ---
[INFO] Deleting /Users/fred/Library/grendel/target
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ grendel ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ grendel ---
[INFO] Compiling 53 source files to /Users/fred/Library/grendel/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) @ grendel ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ grendel ---
[INFO] Compiling 46 source files to /Users/fred/Library/grendel/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ grendel ---
[INFO] Surefire report directory: /Users/fred/Library/grendel/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.wesabe.grendel.auth.tests.BasicAuthProviderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.273 sec
Running com.wesabe.grendel.auth.tests.CredentialsTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec
Running com.wesabe.grendel.auth.tests.SessionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.wesabe.grendel.entities.dao.tests.DocumentDAOTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.194 sec
Running com.wesabe.grendel.entities.dao.tests.UserDAOTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.wesabe.grendel.entities.tests.DocumentTest
Tests run: 15, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.196 sec <<< FAILURE!
Running com.wesabe.grendel.entities.tests.UserTest
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.013 sec <<< FAILURE!
Running com.wesabe.grendel.modules.tests.SecureRandomProviderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.235 sec
Running com.wesabe.grendel.openpgp.tests.AsymmetricAlgorithmTest
Tests run: 26, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running com.wesabe.grendel.openpgp.tests.CompressionAlgorithmTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running com.wesabe.grendel.openpgp.tests.CryptographicExceptionTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running com.wesabe.grendel.openpgp.tests.HashAlgorithmTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec
Running com.wesabe.grendel.openpgp.tests.KeyFlagTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running com.wesabe.grendel.openpgp.tests.KeySetGeneratorTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.852 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.KeySetTest
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.007 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.KeySignatureTest
Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.MasterKeyTest
Tests run: 16, Failures: 0, Errors: 16, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.MessageReaderTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.MessageWriterTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.PregeneratedDHParameterSpecTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.468 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.PregeneratedDSAParameterSpecTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.wesabe.grendel.openpgp.tests.SignatureTypeTest
Tests run: 30, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec
Running com.wesabe.grendel.openpgp.tests.SubKeyTest
Tests run: 11, Failures: 0, Errors: 11, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.SymmetricAlgorithmTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec
Running com.wesabe.grendel.openpgp.tests.UnlockedKeySetTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.UnlockedMasterKeyTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
Running com.wesabe.grendel.openpgp.tests.UnlockedSubKeyTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
Running com.wesabe.grendel.representations.tests.CreateUserRepresentationTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
Running com.wesabe.grendel.representations.tests.DocumentListRepresentationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec
Running com.wesabe.grendel.representations.tests.LinkedDocumentListRepresentationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
Running com.wesabe.grendel.representations.tests.LinkListRepresentationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running com.wesabe.grendel.representations.tests.UpdateUserRepresentationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.wesabe.grendel.representations.tests.UserInfoRepresentationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running com.wesabe.grendel.representations.tests.UserListRepresentationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.wesabe.grendel.representations.tests.ValidationExceptionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.wesabe.grendel.resources.tests.DocumentResourceTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.124 sec
Running com.wesabe.grendel.resources.tests.DocumentsResourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running com.wesabe.grendel.resources.tests.LinkedDocumentResourceTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running com.wesabe.grendel.resources.tests.LinkedDocumentsResourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running com.wesabe.grendel.resources.tests.LinkResourceTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running com.wesabe.grendel.resources.tests.LinksResourceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.wesabe.grendel.resources.tests.UserResourceTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running com.wesabe.grendel.resources.tests.UsersResourceTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running com.wesabe.grendel.util.tests.HashCodeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.wesabe.grendel.util.tests.IntegerEquivalentsTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.009 sec
Running com.wesabe.grendel.util.tests.IteratorsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec

Results :

Tests in error: 
  itCanDecryptIt(com.wesabe.grendel.entities.tests.DocumentTest$Decrypting_A_Document_Body): org/bouncycastle/asn1/DEREncodable
  itStoresItAsAnEncryptedOpenPGPMessage(com.wesabe.grendel.entities.tests.DocumentTest$Encrypting_A_Document_Body): org/bouncycastle/asn1/DEREncodable
  itHasAUserId(com.wesabe.grendel.entities.tests.UserTest$A_User_Loaded_From_The_Database): org/bouncycastle/asn1/DEREncodable
  com.wesabe.grendel.openpgp.tests.KeySetGeneratorTest$A_Freshly_Generated_KeySet: org/bouncycastle/asn1/DEREncodable
  itHasAMasterKey(com.wesabe.grendel.openpgp.tests.KeySetTest$A_Key_Set): org/bouncycastle/asn1/DEREncodable
  itHasASubKey(com.wesabe.grendel.openpgp.tests.KeySetTest$A_Key_Set): org/bouncycastle/asn1/DEREncodable
  itHasAUserID(com.wesabe.grendel.openpgp.tests.KeySetTest$A_Key_Set): org/bouncycastle/asn1/DEREncodable
  itSerializesItselfToAStream(com.wesabe.grendel.openpgp.tests.KeySetTest$A_Key_Set): org/bouncycastle/asn1/DEREncodable
  itIsHumanReadable(com.wesabe.grendel.openpgp.tests.KeySetTest$A_Key_Set): org/bouncycastle/asn1/DEREncodable
  itHasACreationTimestamp(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasAKeyID(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itIsAPositiveCertification(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasAHashAlgorithm(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasAKeyAlgorithm(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasKeyFlags(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasPreferredSymmetricAlgorithms(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasPreferredCompressionAlgorithms(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itHasPreferredHashAlgorithms(com.wesabe.grendel.openpgp.tests.KeySignatureTest$A_Self_Signature): org/bouncycastle/asn1/DEREncodable
  itReturnsAnUnlockedMasterKeyForTheCorrectPassphrase(com.wesabe.grendel.openpgp.tests.MasterKeyTest$Unlocking_A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itThrowsACryptographicExceptionForTheIncorrectPassphrase(com.wesabe.grendel.openpgp.tests.MasterKeyTest$Unlocking_A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itCannotBeLoadedAsAMasterKey(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasACreationTimestamp(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasAUserID(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasKeyFlags(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredSymmetricAlgorithms(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredCompressionAlgorithms(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredHashAlgorithms(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasAnID(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasAHumanReadableID(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itIsAnRSAKey(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itIs2048BitsLong(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itCannotEncryptData(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itCanSignData(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itIsHumanReadable(com.wesabe.grendel.openpgp.tests.MasterKeyTest$A_Master_Key): org/bouncycastle/asn1/DEREncodable
  itReadsAnEncryptedMessage(com.wesabe.grendel.openpgp.tests.MessageReaderTest$Reading_An_Encrypted_Message): org/bouncycastle/asn1/DEREncodable
  itIsDecryptableByMessageReader(com.wesabe.grendel.openpgp.tests.MessageWriterTest$Encrypting_A_Message): org/bouncycastle/asn1/DEREncodable
  itCanBeUsedToGenerateElGamalKeyPairs(com.wesabe.grendel.openpgp.tests.PregeneratedDHParameterSpecTest$A_Pregenerated_DHParameterSpec): Illegal key size or default parameters
  itHasACreationTimestamp(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itCannotSignData(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasAMasterKey(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasAUserID(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredSymmetricAlgorithms(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredCompressionAlgorithms(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasPreferredHashAlgorithms(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasAnID(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itIsAnRSAKey(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itIs2048BitsLong(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itCanEncryptData(com.wesabe.grendel.openpgp.tests.SubKeyTest$A_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasAnUnlockedSubKey(com.wesabe.grendel.openpgp.tests.UnlockedKeySetTest$An_Unlocked_Key_Set): org/bouncycastle/asn1/DEREncodable
  itHasAnUnlockedMasterKey(com.wesabe.grendel.openpgp.tests.UnlockedKeySetTest$An_Unlocked_Key_Set): org/bouncycastle/asn1/DEREncodable
  itCanRelockTheKeySetWithADifferentPassphrase(com.wesabe.grendel.openpgp.tests.UnlockedKeySetTest$An_Unlocked_Key_Set): org/bouncycastle/asn1/DEREncodable
  itReturnsItselfWhenUnlocked(com.wesabe.grendel.openpgp.tests.UnlockedMasterKeyTest$An_Unlocked_Master_Key): org/bouncycastle/asn1/DEREncodable
  itHasAPrivateKey(com.wesabe.grendel.openpgp.tests.UnlockedMasterKeyTest$An_Unlocked_Master_Key): org/bouncycastle/asn1/DEREncodable
  itReturnsItselfWhenUnlocked(com.wesabe.grendel.openpgp.tests.UnlockedSubKeyTest$An_Unlocked_Sub_Key): org/bouncycastle/asn1/DEREncodable
  itHasAPrivateKey(com.wesabe.grendel.openpgp.tests.UnlockedSubKeyTest$An_Unlocked_Sub_Key): org/bouncycastle/asn1/DEREncodable

Tests run: 322, Failures: 0, Errors: 55, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.710s
[INFO] Finished at: Fri Sep 13 17:18:00 PDT 2013
[INFO] Final Memory: 23M/233M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project grendel: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/fred/Library/grendel/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

So this seemed to be fixed by downgrading my version of the BouncyCastle .jar (bcprov-jdk15on-149.jar to bcprov-jdk12-145.jar).