JAVA

2020-02-07

JAVA

Java SE Downloads https://www.oracle.com/java/technologies/javase-downloads.html

Oracle Java历史版本下载 https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html

MAVEN

上传本地jar包到私服

项目中有一个依赖包,包名是util-1.0.jar,想把它传到私服中

mvn deploy:deploy-file -DgroupId=com.bric -DartifactId=util -Dversion=1.0 -Dpackaging=jar -Dfile=util-1.0.jar -Durl=http://192.168.11.200:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty

对应settings.xml

<mirrors>    
	<mirror>
        <id>thirdparty</id>
        <name>thirdparty</name>
        <mirrorOf>*</mirrorOf>
        <url>http://192.168.11.200:8081/nexus/content/repositories/thirdparty/</url>
    </mirror>
</mirrors>
<servers>
    <server>
        <id>thirdparty</id>
        <username>admin</username>
        <password>123456</password>
    </server>
</servers>

注意:不要往public仓库传,该仓库没上传权限的。

maven deploy 400错误

这是由于,maven 不允许重复向release仓库中deploy相同的文件, 解决办法,修改release版本

或者修改仓库权限: Repositories -> 3rd party -> configuration -> Deployment Policy -> 改成 Allow Redeploy

手动上传到私服

Nexus Repository Manager OSS 2 版本中: Repositories -> 3rd party -> artifact upload -> 选择pom和jar文件 -> 点upload artifact

后台管理系统

https://github.com/huanzi-qch/base-admin

http://www.linln.cn/