Pick up native JNI files in Maven test (lwjgl)

后端 未结 3 1423
时光说笑
时光说笑 2021-01-01 02:08

I\'m creating a program with LWJGL and Maven, and I\'m writing unit tests for the graphical code. My problem is getting Maven to put the native binaries on the classpath so

3条回答
  •  再見小時候
    2021-01-01 02:47

    ...
    
        ...
        
            ...
            0.0.6
        
        ...
        
            ...
            
                ...
                
                    org.apache.maven.plugins
                    maven-surefire-plugin
                    
                        once
                        -Djava.library.path=target/natives
                    
                
                
                    com.googlecode.mavennatives
                    maven-nativedependencies-plugin
                    ${natives.version}
                    
                        
                            unpacknatives
                            generate-resources
                            
                                
                                copy
                            
                        
                    
                
            
            ...
        
        ...
    
    

提交回复
热议问题