外部jar包发布到本地仓库命令,以及pom文件引用外部jar包的标签

1.外部jar包发布到本地仓库命令

mvn install:install-file  -s "F:\apache-maven-3.5.4\conf\settings.xml" -Dfile="F:\ConstructionBankWorkSpace\znjqServer\web\WEB-INF\lib\javacv.jar" -DgroupId="nt.znjq" -DartifactId=javacv -Dversion="1.3.3" -Dpackaging=jar

2.以及pom文件引用外部jar包的标签

     

 
            nt.znjq
            ffmpeg-3.1.2-1.2-windows-x86_64
            1.0.0
            system
            ${project.basedir}/src/main/resources/lib/ffmpeg-3.1.2-1.2-windows-x86_64.jar
        

3.写的一个打包jar包pom文件案例


	4.0.0
	com.boot.study
	weatherTask
	1.0


	
	
		org.springframework.boot
		spring-boot-starter-parent
		1.5.6.RELEASE
	

	
		1.8
	

	
	
		
			org.springframework.boot
			spring-boot-starter-web
		

		
		
			mysql
			mysql-connector-java
		

		
			org.projectlombok
			lombok
		

		
		
			com.alibaba
			druid-spring-boot-starter
			1.1.10
		

		
			org.mybatis.spring.boot
			mybatis-spring-boot-starter
			1.3.1
		
		
			org.springframework.boot
			spring-boot-starter-test
		

		
			org.apache.httpcomponents
			httpclient
			4.5.2
		
		
		
          org.apache.httpcomponents
          httpcore
        4.4.4
      

		
			commons-io
			commons-io
			2.0.1
		

		
			com.alibaba
			fastjson
			1.1.33
		

		
			ro.nextreports
			jofc2
			1.0.1
		
		
			nt.znjq
			arges-visionex
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/arges-visionex.jar
		
		
		
			nt.znjq
			json-lib
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/json-lib-2.4-jdk15.jar
		
		
			nt.znjq
			ffmpeg
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/ffmpeg-3.1.2-1.2.jar
		
		
			nt.znjq
			ffmpeg-3.1.2-1.2-linux-x86_64
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/ffmpeg-3.1.2-1.2-linux-x86_64.jar
		
		
			nt.znjq
			ffmpeg-3.1.2-1.2-windows-x86
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/ffmpeg-3.1.2-1.2-windows-x86.jar
		
		
			nt.znjq
			ffmpeg-3.1.2-1.2-windows-x86_64
			1.0.0
			system
			${project.basedir}/src/main/resources/lib/ffmpeg-3.1.2-1.2-windows-x86_64.jar
		
		
			nt.znjq
			ojdbc6
			1.1.1
		
		
			nt.znjq
			javacpp
			1.1.1
		
		
			nt.znjq
			javacv
			1.3.3
		
		
		    commons-beanutils
		    commons-beanutils
		    1.7.0
        
        
		    commons-collections
		    commons-collections
		    3.2.1
        
        
		    commons-lang
		    commons-lang
		    2.5
        
        
		    commons-logging
		    commons-logging
		    1.1.1
        
        
		    net.sf.ezmorph
		    ezmorph
		    1.0.6
        
	

	
	

		
			
				org.springframework.boot
				spring-boot-maven-plugin
			
			
				com.nt.znjqBeforeServer.BootApplication
				true
				false
			
			
				
					
						repackage
					
				
			
			
		
	
	

 

你可能感兴趣的:(maven)