Maven: Is it possible to upload a set of 3rd party jars to repository, which can then be referenced as a single dependency?

前端 未结 2 1131
不知归路
不知归路 2021-01-17 03:56

We are using an internal Nexus Repository for third party jars which are dependencies in our applications.

I am starting a new project, and have a set of 4 third par

2条回答
  •  春和景丽
    2021-01-17 04:30

    I would use a custom property in the pom file to hold the version number, so that you can change the version once for all the dependencies. For example:

    
        3.1.2.RELEASE
    
    
    
    
        
            org.springframework
            spring-core
            ${spring.version}
        
    
        
            org.springframework
            spring-context
            ${spring.version}
        
    
    
    

提交回复
热议问题