目前apache archiva的最新稳定版已经到了2.1.1. 相比1.3.x版本来说,界面看起来更卡通了一些,也加上了大量的ajax。不知道这样是好还是不好。反正对于纯文本之类的w3m来说,肯定是件坏事。
这个版本的archiva有个毛病,会自作主张地在${user.home}/.m2/下面产生一个archiva.xml,而不管你是否在安装目录下面已经预置了一个archiva.xml. 而这样会影响到老版本的archiva.一般情况下如果是用的standalone安装文件,那么它是不会这么去做的。因为archiva读取archiva.xml的优先顺序是
http://archiva.apache.org/docs/1.3.6/adminguide/standalone.html 写道
Configuring Archiva
Archiva's configuration is loaded from the following files, in order of most precedent:
~/.m2/archiva.xml
$ARCHIVA_BASE/conf/archiva.xml
conf/archiva.xml in the Archiva installation
When Archiva saves it's configuration, all configuration is stored to a single file. The file chosen is by the following rules:
If ~/.m2/archiva.xml exists, it is saved there
Otherwise, if $ARCHIVA_BASE/conf/archiva.xml exists, it is saved there
If neither apply, it is saved to ~/.m2/archiva.xml.
The configuration will never be saved in the Archiva installation directory if you are using a separate base directory.
Note that the configuration can be edited, but only when Archiva is not running as it will not reload a changed configuration file, and will save over it if something is changed in the web interface.
Archiva's configuration is loaded from the following files, in order of most precedent:
~/.m2/archiva.xml
$ARCHIVA_BASE/conf/archiva.xml
conf/archiva.xml in the Archiva installation
When Archiva saves it's configuration, all configuration is stored to a single file. The file chosen is by the following rules:
If ~/.m2/archiva.xml exists, it is saved there
Otherwise, if $ARCHIVA_BASE/conf/archiva.xml exists, it is saved there
If neither apply, it is saved to ~/.m2/archiva.xml.
The configuration will never be saved in the Archiva installation directory if you are using a separate base directory.
Note that the configuration can be edited, but only when Archiva is not running as it will not reload a changed configuration file, and will save over it if something is changed in the web interface.
所以,在${user.home}/.m2下生成的archiva.xml会把其他的以standalone方式安装的archiva的配置搅乱。在仔细对比文件之后发现1.3.6和1.3.9下面都有一个application.xml的配置文件,如下:
./apache-archiva-1.3.6/apps/archiva/WEB-INF/classes/META-INF/plexus/application.xml ./apache-archiva-1.3.9/apps/archiva/WEB-INF/classes/META-INF/plexus/application.xml
但是2.1.1下面却没有这个文件。把这个文件也拷贝过来。例如:
./apache-archiva-2.1.1/apps/archiva/WEB-INF/classes/META-INF/application.xml
删掉已经生成的archiva.xml,再测试,发现确实就不再生成archiva.xml了。虽然放的目录少了一截plexus,但是也能正常工作。
相关推荐
标签:archiva-rss-2.1.1.jar,archiva,rss,2.1.1,jar包下载,依赖包
标签:archiva-configuration-2.1.1.jar,archiva,configuration,2.1.1,jar包下载,依赖包
标签:archiva-security-2.1.1.jar,archiva,security,2.1.1,jar包下载,依赖包
标签:archiva-cli-2.1.1.jar,archiva,cli,2.1.1,jar包下载,依赖包
标签:archiva-common-2.1.1.jar,archiva,common,2.1.1,jar包下载,依赖包
标签:archiva-common-2.1.1-javadoc.jar,archiva,common,2.1.1,javadoc,jar包下载,依赖包
标签:archiva-converter-1.3.1.jar,archiva,converter,1.3.1,jar包下载,依赖包
在Java开发领域,管理依赖库是一项至关重要的任务,而Apache Archiva作为一个开源的、企业级的Maven仓库管理器,为开发者提供了强大的解决方案。本文将深入探讨Archiva的搜索功能,特别是通过`archiva-search-1.1....
开发者需要阅读Archiva Test 1.0的相关文档,了解提供的类和方法,以便在自己的测试代码中正确地调用。此外,通过阅读源代码或查看JAR包的MANIFEST.MF文件,可以获取关于库作者、许可证和版本等更多信息。 总结来说...
《深入解析Archiva Test 2.0:jar.zip包的奥秘》 在软件开发领域,jar文件(Java Archive)是Java平台上的一个标准归档格式,用于集合多个类文件和其他资源,形成一个单一的可分发单元。当我们谈论"archiva-test-...
在实际开发中,Archiva 可以与 Maven 集成,通过配置 Maven 的 settings.xml 文件,指定 Archiva 仓库作为远程仓库。这样,当 Maven 构建项目时,会自动从 Archiva 中获取依赖,同时,你也可以将本地构建的项目部署...
标签:archiva-configuration-2.1.1-javadoc.jar,archiva,configuration,2.1.1,javadoc,jar包下载,依赖包
6. **专一性**:Archiva专注于Maven仓库管理,不支持NPM、RubyGems或其他类型的仓库,这使得它在Maven环境中的表现更加专业和高效。 在安装和配置Apache Archiva 2.2.3时,你需要解压“apache-archiva-2.2.3”这个...
标签:archiva-rss-2.1.1-javadoc.jar,archiva,rss,2.1.1,javadoc,jar包下载,依赖包
标签:archiva-security-2.1.1-sources.jar,archiva,security,2.1.1,sources,jar包下载,依赖包
标签:archiva-security-2.1.1-javadoc.jar,archiva,security,2.1.1,javadoc,jar包下载,依赖包
标签:archiva-cli-2.1.1-sources.jar,archiva,cli,2.1.1,sources,jar包下载,依赖包
标签:archiva-cli-2.1.1-javadoc.jar,archiva,cli,2.1.1,javadoc,jar包下载,依赖包
标签:archiva-configuration-2.1.1-sources.jar,archiva,configuration,2.1.1,sources,jar包下载,依赖包
标签:archiva-rss-2.1.1-sources.jar,archiva,rss,2.1.1,sources,jar包下载,依赖包