- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经成功使用 mvn deploy
大约一个星期了,但突然间它不起作用了。它曾经提示我输入密码(在对话框窗口中——我在 Windows 7 32 位上使用 Kleopatra),但现在不再是了。 POM 中唯一更改的是项目的版本号。
有两个随机结果,都是坏的:
首先,这个输出,我没有按任何键打印出来:
R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava>mvn deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XBN-Java 0.1.4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:attach-artifact (attach-artifacts) @ xbnjava ---
[INFO]
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ xbnjava ---
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
OK Your orders please
OK
OK
OK
OK
OK
D 4204
OK
OK
OK
按下回车后,这是响应:
gpg: Invalid passphrase; please try again ...
gpg: Invalid passphrase; please try again ...
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
OK Your orders please
OK
OK
OK
OK
OK
D 5220
OK
gpg: AllowSetForegroundWindow(5220) failed: Access is denied.
OK
OK
OK
gpg: AllowSetForegroundWindow(5220) failed: Access is denied.
这里又卡住了,此时我用Ctrl+C取消
Terminate batch job (Y/N)? y
R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava>
我看到了 AllowSetForegroundWindow(5220)
,并找到了 this about it , 但它没有说明具体要做什么。
我又试了一次,得到了这个:
R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava>mvn deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XBN-Java 0.1.4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:attach-artifact (attach-artifacts) @ xbnjava ---
[INFO]
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ xbnjava ---
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
我在这里输入我的密码并按回车键,但没有任何反应。它卡住了。我取消了这个过程,它以纯文本形式打印了我的密码:
Terminate batch job (Y/N)? MY_PASSPHRASE_PRINTED_HERE
Terminate batch job (Y/N)? y
R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava>
我再次尝试,原来的事情又发生了(“...好的,请您下订单,好的,好的,好的,好的,好的...”)。我输入我的密码,然后它开始工作(我不确定它实际使用的时间,现在看来),这意味着 jars 已成功上传,但在日志的末尾,在“构建成功”消息之后......
R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava>mvn deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XBN-Java 0.1.4.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:attach-artifact (attach-artifacts) @ xbnjava ---
[INFO]
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ xbnjava ---
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ xbnjava ---
[INFO] Installing R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava\pom.xml to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1.pom
[INFO] Installing R:\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1.jar to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1.jar
[INFO] Installing R:\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1-javadoc.jar to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1-javadoc.jar
[INFO] Installing R:\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1-sources.jar to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1-sources.jar
[INFO] Installing R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava\target\xbnjava-0.1.4.1.pom.asc to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1.pom.asc
[INFO] Installing R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava\target\gpg\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1.jar.asc to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1.jar.asc
[INFO] Installing R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava\target\gpg\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1-javadoc.jar.asc to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1-javadoc.jar.asc
[INFO] Installing R:\jeffy\programming\sandbox\z__for_git_commit_only\xbnjava\target\gpg\jeffy\programming\build\xbnjava-0.1.4.1\download\xbnjava-0.1.4.1-sources.jar.asc to C:\Users\jeffy\.m2\repository\com\github\aliteralmind\xbnjava\0.1.4.1\xbnjava-0.1.4.1-sources.jar.asc
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ xbnjava ---
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.pom
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.pom (6 KB at 4.2 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/maven-metadata.xml
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/maven-metadata.xml (314 B at 0.9 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/maven-metadata.xml
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/maven-metadata.xml (314 B at 1.4 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.jar (630 KB at 439.6 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-javadoc.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-javadoc.jar (5093 KB at 572.4 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-sources.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-sources.jar (10728 KB at 609.9 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.pom.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.pom.asc (499 B at 2.0 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1.jar.asc (499 B at 1.9 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-javadoc.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-javadoc.jar.asc (499 B at 2.0 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-sources.jar.asc
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.4.1/xbnjava-0.1.4.1-sources.jar.asc (499 B at 2.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.724 s
[INFO] Finished at: 2014-07-30T13:58:42-04:00
[INFO] Final Memory: 6M/17M
[INFO] ------------------------------------------------------------------------
结尾是这样的:
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "C:\applications\programming\python_341\Lib\cmd.py", line 45, in ?
import string, sys
File "C:\applications\programming\python_341\Lib\string.py", line 73
class Template(metaclass=_TemplateMetaclass):
^
SyntaxError: invalid syntax
请注意,所有这些
You need a passphrase to unlock the secret key for
user: "MY NAME HERE <MY_EMAIL_HERE@yahoo.com>"
2048-bit RSA key, ID 4AB64866, created 2014-07-15
我从不碰键盘。
完整设置.xml:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>MY_SONATYPE_DOT_COM_USERNAME</username>
<password>MY_SONATYPE_DOT_COM_PASSWORD</password>
</server>
</servers>
<pluginGroups></pluginGroups>
<proxies></proxies>
<mirrors></mirrors>
<profiles></profiles>
</settings>
完整的 pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.aliteralmind</groupId>
<artifactId>xbnjava</artifactId>
<packaging>pom</packaging>
<version>0.1.4.1</version>
<name>XBN-Java</name>
<url>https://github.com/aliteralmind/xbnjava</url>
<inceptionYear>2014</inceptionYear>
<organization>
<name>Jeff Epstein</name>
</organization>
<description>XBN-Java is a collection of generically-useful backend (server side, non-GUI) programming utilities, featuring RegexReplacer and FilteredLineIterator. XBN-Java is the foundation of Codelet (http://codelet.aliteralmind.com).</description>
<licenses>
<license>
<name>Lesser General Public License (LGPL) version 3.0</name>
<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
</license>
<license>
<name>Apache Software License (ASL) version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Jeff Epstein</name>
<email>aliteralmind-github@yahoo.com</email>
<roles>
<role>Lead Developer</role>
</roles>
</developer>
</developers>
<issueManagement>
<system>GitHub Issue Tracker</system>
<url>https://github.com/aliteralmind/xbnjava/issues</url>
</issueManagement>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:git@github.com:aliteralmind/xbnjava.git</connection>
<url>scm:git:git@github.com:aliteralmind/xbnjava.git</url>
<developerConnection>scm:git:git@github.com:aliteralmind/xbnjava.git</developerConnection>
</scm>
<properties>
<java.version>1.7</java.version>
<jarprefix>R:\jeffy\programming\build\/${project.artifactId}-${project.version}/download/${project.artifactId}-${project.version}</jarprefix>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${jarprefix}.jar</file>
<type>jar</type>
</artifact>
<artifact>
<file>${jarprefix}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
<artifact>
<file>${jarprefix}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!--
<profiles>
This profile will sign the JAR file, sources file, and javadocs file using the GPG key on the local machine.
See: https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>release</name>
<value>true</value>
</property>
</activation>
</profile>
</profiles>
-->
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>16.0</version>
</dependency>
</dependencies>
</project>
最佳答案
像这样在 ~/.m2/settings.xml 中设置你的 gpg.passphrase:
<server>
<id>gpg.passphrase</id>
<passphrase>clear or encrypted text</passphrase>
</server>
或者调用maven时作为参数传递:
mvn -Dgpg.passphrase=yourpassphrase deploy
关于java - mvn deploy --> maven-gpg-plugin :1. 5 :sign failing. 已经工作了一个星期了。除了新的项目版本号之外,没有对 POM 的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25044403/
我正在Mac上开发一个safari插件。现在我想知道safari3,safari4的所有版本号,因为我可以在一些插件示例代码info.plist中看到:MinBundleVersion是5530,我检
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我正在阅读 http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html我有一些问题。 版本号、次要版本号和发布号之间有什
是否必须所有用 C++ 创建的 dll 都有版本号?我的机器中有 dll,但是当我右键单击时,我无法看到版本号。 PS:我安装了Win 7。 最佳答案 重要的是要了解,在加载 DLL 期间不会使用版本
我知道 VS 2010 有 F# 2.0 和 VS 2012 - F# 3.0。 但是我如何获得 F# 版本号,例如在 F# 交互中?是否有一些命令,例如:#ver;; ? 谢谢。 最佳答案 当您在
我已经发布了如何在 Eclipse Gallileo 中找到它,但如果有人有有关旧版本的信息,请随时在下面发布。 最佳答案 (2012 年 9 月更新): MRT指出in the comments “
Rational Function Tester 脚本如何确定它在哪个版本的 RFT 下执行/构建? 我仔细研究了文档,发现最接近的是 com.rational.test.ft.script.Scri
我正在使用 Alfresco。我知道如何查看已安装的 Alfresco vesrion 编号,但我需要以编程方式获取此版本号,例如通过 rest API 或某些 http 请求。有可能吗? 最佳答案
我目前正在尝试更新版本号。在 TeamCity 中使用 Nant 构建文件,包含版本号。如果我只是使用 . . 在脚本中,buildNumber 已更新为 2.16.3,但我还希望有此版本号的计数
我想编写一个脚本,它可以递归地扫描目录中的 DLL 并生成所有版本号的报告。 如何使用脚本检测 DLL 的版本号? VBScript 解决方案是首选,除非有更好的方法。 最佳答案 您可以使用 File
我正在开始一个有人在两年前开始的项目,但我无法确定它运行的 django 版本。制作该项目的人不知道,而且我不确定猜测和检查是否有效,因为我实际上不知道该项目是否可以编译。我找到了this答案,但它表
我需要确保可用的 PostgreSQL 版本不低于要求的版本。可以按如下方式请求版本字符串: SELECT VERSION(); 它返回给我类似的东西: PostgreSQL 9.5.4, compi
在我的数据库中,我在列中填写了这些数据: 1 1.1 1.1.1 1.1.1.1 1.1.2 1.10 1.11 1.2 1.9 我想对其进行排序,得到的结果如下所示: 1 1.1 1.1.1 1.1
我正在编写一个脚本,它需要一个简单的短格式的 Bash 版本号。 我知道 bash --version,但这会产生很长的输出: GNU bash, version 4.2.10(1)-release
我将 Grunt 与 php 一起使用,并使用一个包来对我的 css 进行版本控制,并将日期戳记为 style.min.20160913230349.css。 但是我如何找到一个包,将新字符串更新到我
我有一个用 distutils 构建的 python 包,我在我的设置函数中使用版本参数,就像这样(除了名称和版本之外还有其他参数): setup(name='example_module', ver
Windows EXE 文件附有版本号,由以点分隔的四位数字组成(例如 1.0.0.0)。 问题:比较这些数字的正确方法是什么?具体来说,是 1.15.0.0 > 1.2.0.0(因为 15 > 2)
如果我有一个像 这样的 iOS 用户代理 Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532
我正在写一个 Symfony Console PHP应用程序takes a version number in the constructor . $app = new Application('my
我可以使用它们的一些构建语法或 Gradle API 中的某些内容来检查 Gradle 版本号吗? 最佳答案 gradle.gradleVersion 将返回版本号,作为字符串。 关于java - 如
我是一名优秀的程序员,十分优秀!