我的意图是使用我的本地Nexus安装代理Roo Maven存储库,以便它包含Roo 1.2.0.RELEASE包.
在http://static.springsource.org/spring-roo/reference/html/resources.html上写道,Roo构建版本发布在http://spring-roo-repository.springsource.org/release上.
不幸的是,该链接返回错误NoSuchKey.
是否有其他Maven存储库可以从中获取Roo包?
不要用Nexus管理精明......
在"手动"上传工件时打开控制台查看网络调用.想要跳过使用Maven或Ivy上传到Nexus.一切查询都通过ExtJS XHR调用,除了发布工件信息,这些信息在Chrome开发者工具中显示为文档调用(假设这是通过ExtJS发布的表单提交).
没有尝试使用curl进行模拟(如果可能的话,不知道如何在curl中处理多部分表单)但这是除了从Ivy或Maven进行传统发布之外"发布"工件的唯一方法吗?看起来Nexus有一个Java API但希望保留在REST HTTP世界中(希望Nexus REST服务基本上可以使用apache的HTTPCLIENT等多部分表单发布).
我有一个fedora服务器.我通过yum包管理器安装了tomcat.然后我在webapps文件夹上部署了nexus war.我尝试使用jsvc在端口80上运行服务器并且无法正常工作.我看到你也可以使用port fowarding.什么是最好的选择?
我跟着3.8.从sonatype doc 运行代理服务器后面的Nexus,我有点困惑.我安装了httpd,我有以下配置,其中example.com是我的域名.
/etc/httpd/conf.d/nexus.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /nexus/ http://localhost:8081/nexus/
ProxyPassReverse /nexus/ http://localhost:8081/nexus/
ProxyPreserveHost On
<Location />
Order allow,deny
Allow from all
</Location>
ErrorLog logs/nexus/error.log
CustomLog logs/nexus/access.log common
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
/家庭/纪尧姆/ WWW /关系/ conf目录
# Jetty section
application-port=8081
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
# Nexus section
nexus-work=${bundleBasedir}/../sonatype-work/nexus
runtime=${bundleBasedir}/nexus/WEB-INF
pr.encryptor.publicKeyPath=/apr/public-key.txt
Run Code Online (Sandbox Code Playgroud)
当我试图访问
http://localhost:8081/nexus/index.html
一切正常http://localhost/nexus/index.html
一切正常http://example.com/nexus/index.html
只是挂起(端口80在防火墙中打开)
$ netstat -tulpn …
我正在尝试与Maven,Jenkins,SVN和Nexus建立一个环境.我通过SVN将作业添加到Jenkins,但由于Maven错误,Jenkins无法构建这些作业.
这是错误日志
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building imagetools 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.756s
[INFO] Finished at: Mon Apr 22 11:43:05 CEST 2013
[INFO] Final Memory: 7M/152M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving C:\Users\franzm\.jenkins\jobs\ImageTools\workspace\pom.xml to C:\Users\franzm\.jenkins\jobs\ImageTools\modules\com.ee$imagetools\builds\2013-04-22_11-42-40\archive\com.ee\imagetools\1.0\imagetools-1.0.pom
Warte bis Jenkins die Datensammlung abgeschlossen hat
mavenExecutionResult exceptions not empty
message : Plugin org.apache.maven.plugins:maven-dependency-plugin:2.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.1
cause : Failed to read …
Run Code Online (Sandbox Code Playgroud) 在Sonatype Nexus中,我想创建一个对特定存储库具有不同访问权限的用户,如下所示:
我尝试在"存储库目标"部分中搜索,但我可以在那里做的就是访问所有存储库中的过滤工件.预定义的存储库组也仅基于repo类型(M1/M2/Site).
如何区分基于存储库的访问,而不管工件是什么?
我们通过本地Nexus存储库使用Maven。不幸的是,在查询新版本时,我们得到了一些误报:
commons-collections:commons-collections ............ 3.2.1 -> 20040616
org.hibernate:hibernate-entitymanager ..... 4.1.9.Final -> 4.3.0.Beta1
Run Code Online (Sandbox Code Playgroud)
第一个是古老的版本,但命名方案不正确。第二个实际上只是一个beta版本(我们通常不会得到这些版本,但是有些似乎会漏掉)。现在的问题是:如何排除这些不是我们存储库中真正存在的版本,而是来自Nexus所指的存储库之一的版本?
我尝试过路由,但是要么我弄错了它,要么它不能阻止特定版本,只能阻止所有版本的完整工件。我在文档中看到了采购,但是看起来很复杂,我也不敢尝试。
如何强制Idea Intellij从Nexus存储库而不是Maven Public repo下载?我在哪里可以在Idea属性中配置它?它没有在pom.xml
文件中定义,我宁愿不这样做.
我在EC2实例上设置了一个私有nexus repo管理器,并按照互联网上的各种说明,了解如何设置maven项目来使用它.我也禁用了匿名帐户.我能够通过连接和复制存储库curl -U username:password <the_url>
,它似乎工作正常.然而,当我尝试使用maven(任何目标)时,我得到的第一件事就是
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-plugin/maven-metadata.xml from/to nexus (http://MY_NEXUS_HOST:8081/nexus/content/groups/public): Not authorized , ReasonPhrase:Unauthorized.
Run Code Online (Sandbox Code Playgroud)
然后mvn命令失败,因为它无法在任何地方找到插件.所以我可以使用rest命令并且它按预期工作,但不是通过maven这一事实告诉我,这是配置问题.我想我明白发生了什么,我检查并重新检查了文件,但我没有看到任何错误.这是settings.xml文件
Run Code Online (Sandbox Code Playgroud)<servers> <server> <id>nexus-snapshot</id> <username>USER_NAME</username> <password>USER_PASSWD</password> </server> <server> <id>nexus-release</id> <username>USER_NAME</username> <password>USER_PASSWD</password> </server> </servers> <mirrors> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://MY_NEXUS_HOST:8081/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> …
什么是“足以运行Nexus服务的访问权限”(以Linux上的nexus用户身份)
Nexus3文档https://books.sonatype.com/nexus-book/reference3/install.html#configure-service说
然后创建具有足够访问权限的关系用户来运行该服务。
我知道日志应该是可写的,并且脚本可以执行,但是在安装过程中(可能是第一次),用户如何知道?
但是文档没有对此进行指导。
有推荐nexus
和sonatype-work
文件夹。
lrwxrwxrwx. 1 root root 25 Jun 5 16:46 nexus -> /opt/nexus/nexus-3.3.0-01
drwxr-xr-x. 9 root root 4096 May 11 08:26 nexus-3.3.0-01
-rw-r--r--. 1 root root 107331345 Apr 20 08:52 nexus-3.3.0-01-unix.tar.gz
drwxr-xr-x. 3 root root 4096 Apr 20 08:53 sonatype-work
也许这应该是添加文件夹nexus
和sonatype-work
文件夹中所有权限的命令?
重要说明确保为运行nexus服务的用户分配适当的权限。
我正在尝试将我的私有模块发布到新的安装程序nexus OSS 3.8.0-02(在sonatype/nexus3 docker容器中运行),并发出错误errno: -4048
.
我的npm版本位于:node v8.9.4和npm v5.6.0
我已经尝试在我的C:\ Users\AHOU \目录下的.npmrc中添加我的base64编码用户名和密码
always-auth=true
_auth="<generated base64>"
email=anselmhou.ps@gmail.com
prefix=C:\kits\npm
@ngpf:registry=http://<nexus server ip>:28081/nexus/repository/npm-public/
Run Code Online (Sandbox Code Playgroud)
但每当我尝试运行命令时: npm publish -ddd --registry http://<nexus server ip>:28081/nexus/repository/npm-private/
它只是给出以下错误
npm sill mapToRegistry uri http://<nexus server ip>:28081/nexus/repository/npm-public/@ngpf%2fcore
npm verb publish registryBase http://<nexus server ip>:28081/nexus/repository/npm-public/
npm sill publish uploading C:\Users\AHOU\AppData\Local\Temp\npm-9292-9e938c82\tmp\fromDir-f6e11f6c\package.tgz
npm verb stack Error: EPERM: operation not permitted, unlink 'C:\Users\AHOU\AppData\Local\Temp\npm-9292-9e938c82\tmp\fromDir-f6e11f6c\package.tgz'
npm verb cwd P:\PCCW Framework\workspace\ngpf\ngpf-core\dist
npm verb Windows_NT 10.0.16299
npm verb argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish" "-ddd" "--registry" "http:// <nexus …
Run Code Online (Sandbox Code Playgroud)