How to deploy Applet with dependencies jar using maven and sign it?

前端 未结 2 893
无人及你
无人及你 2020-12-29 12:28

Can someone show me how pom file should look like to create a jar file with applet which depends from some other jars is it possible to have one jar as applet, and how to si

2条回答
  •  春和景丽
    2020-12-29 12:35

    If you would like your classes and the dependencies to appear in one jar file, you should use either the assembly plugin or the one-jar plugin before the jarsigner. I have the following working setup with the assembly plugin, it will produce the normal (signed) jar and a ${artifactId}-${version}-jar-with-dependencies.jar (also signed).

                
                maven-assembly-plugin
                2.2-beta-5
                
                    
                        jar-with-dependencies
                    
                    
                        true
                        
                            true
                        
                    
                
                
                    
                        make-my-applet-jar
                        package
                        
                            single
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-jarsigner-plugin
                1.2
                
                    
                        sign
                        
                            sign
                        
                    
                
                
                    keystore
                    keyalias
                    storepass
                    keypass
                
            
    

提交回复
热议问题