Wednesday, September 5, 2012

How to deploy/import your maven test jar

A little useful maven feature. Using maven, you can produce and deploy your test-jar that could be used in other projects just by importing it.

Below the snippet, taken from apache maven mini guide attached-tests.

    [your group id]
    [your artifact id]
    [your version]
    
        
            
            maven-jar-plugin
                
                    
                        
                            test-jar
                        
                    
                
            
        
    

How to import? It's simple:

    
        
            [your group id]
            [your artifact id]
            [your version]
            test-jar
            test
        
    

No comments:

Post a Comment