# # Repository Managers(maven私服) The following list (alphabetical order) of open source and commercial repository managers are known to support the repository format used by Maven. Please refer to the respective linked web sites for further information about repository management in general and the features provided by these products. ## # Apache Archiva 用户和管理员使用可视化界面来操作,非常方便 > **文档** > Simple out of the box configuration and[quick start guide](https://archiva.apache.org/docs/2.2.9/quick-start.html)Read the[users guide](https://archiva.apache.org/docs/2.2.9/userguide/index.html)and[administration documentation](https://archiva.apache.org/docs/2.2.9/adminguide/index.html)For security issues, read the[security vulnerabilities document](https://archiva.apache.org/security.html)Documentation is also available for[previous versions](https://archiva.apache.org/versions.html) 安装Archiva的最快方法是下载 (opens new window)并使用独立发行版。这包括一个捆绑的Jetty服务器,可以轻松启动。有关此实例的高级配置的详细信息,请参阅《管理指南》 (opens new window)。 要立即开始,可以在解压缩后运行以下命令: on linux ```{lang} ./bin/archiva console ``` or windows ```{lang} .\bin\archiva.bat ``` 项目启动之后的默认端口是8080,你也可以自定义端口号,修改apache-archiva-x.x.x/conf/jetty.xml中的port对应的值即可 : ```{lang} 30000 2 false 8443 5000 5000 ``` spring boot项目配置 配置pom文件,添加以下内容 ```{lang} ... internal http://192.168.9.15:7070/repository/internal/ internal Archiva Managed Internal Repository http://192.168.9.15:7070/repository/internal/ true false internal Archiva Managed Internal Repository http://192.168.9.15:7070/repository/internal/ true false ... ``` 配置maven的settings文件,设置 ```{lang} privateMaven private maven http://192.168.9.224:7070/repository/internal external:* ``` Loading... # # Repository Managers(maven私服) The following list (alphabetical order) of open source and commercial repository managers are known to support the repository format used by Maven. Please refer to the respective linked web sites for further information about repository management in general and the features provided by these products. ## # Apache Archiva 用户和管理员使用可视化界面来操作,非常方便 > **文档** > Simple out of the box configuration and[quick start guide](https://archiva.apache.org/docs/2.2.9/quick-start.html)<img alt="img" class="medium-zoom-image" src="https://archiva.apache.org/images/collapsed.gif"/>Read the[users guide](https://archiva.apache.org/docs/2.2.9/userguide/index.html)and[administration documentation](https://archiva.apache.org/docs/2.2.9/adminguide/index.html)<img alt="img" class="medium-zoom-image" src="https://archiva.apache.org/images/collapsed.gif"/>For security issues, read the[security vulnerabilities document](https://archiva.apache.org/security.html)<img alt="img" class="medium-zoom-image" src="https://archiva.apache.org/images/collapsed.gif"/>Documentation is also available for[previous versions](https://archiva.apache.org/versions.html) 安装Archiva的最快方法是下载 (opens new window)并使用独立发行版。这包括一个捆绑的Jetty服务器,可以轻松启动。有关此实例的高级配置的详细信息,请参阅《管理指南》 (opens new window)。 要立即开始,可以在解压缩后运行以下命令: on linux ```{lang} ./bin/archiva console ``` or windows ```{lang} .\bin\archiva.bat ``` 项目启动之后的默认端口是8080,你也可以自定义端口号,修改apache-archiva-x.x.x/conf/jetty.xml中的port对应的值即可 : ```{lang} <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><SystemProperty name="jetty.host"/></Set> <Set name="port"><SystemProperty name="jetty.port" default="8080"/></Set> <Set name="maxIdleTime">30000</Set> <Set name="Acceptors">2</Set> <Set name="statsOn">false</Set> <Set name="confidentialPort">8443</Set> <Set name="lowResourcesConnections">5000</Set> <Set name="lowResourcesMaxIdleTime">5000</Set> </New> </Arg> </Call> ``` spring boot项目配置 配置pom文件,添加以下内容 ```{lang} <project> ... <distributionManagement> <repository> <id>internal</id> <url>http://192.168.9.15:7070/repository/internal/</url> </repository> </distributionManagement> <repositories> <repository> <id>internal</id> <name>Archiva Managed Internal Repository</name> <url>http://192.168.9.15:7070/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>internal</id> <name>Archiva Managed Internal Repository</name> <url>http://192.168.9.15:7070/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> ... </project> ``` 配置maven的settings文件,设置 ```{lang} <mirrors> <mirror> <id>privateMaven</id> <name>private maven</name> <url>http://192.168.9.224:7070/repository/internal</url> <mirrorOf>external:*</mirrorOf> </mirror> </mirrors> ``` 最后修改:2025 年 07 月 14 日 © 允许规范转载 赞 别打赏,我怕忍不住购买辣条与续命水