Maven: resource binary changes file size after build

后端 未结 3 1496
感情败类
感情败类 2020-11-30 06:51

I am using the appengine-maven-plugin to build my Java Google App Engine project.

I include .p12 certificates in a WEB-INF sub-folder

When I build my applica

3条回答
  •  猫巷女王i
    2020-11-30 07:13

    It seems that maven was applying filtering to my certificate file

    http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

    The solution was to disable it

    
        ${basedir}/src/main/webapp/certs
        false
        WEB-INF/classes
    
    

    This allowed the certificate to be read correctly and solved the following exception in JavaPNS

    Validating keystore reference: VALID  (keystore was found)
    Verifying keystore content: javapns.communication.exceptions.KeystoreException:
    Keystore exception: DerInputStream.getLength(): lengthTag=111, too big. at javapns.communication.KeystoreManager.wrapKeystoreException(KeystoreManager.java:178)
    

提交回复
热议问题