尝试在之前成功发布的maven项目上执行发布.
当我执行mvn release:prepare时,系统会提示我发布标记和新快照标记以及项目构建.
但当它试图推向遥控器时,我明白了
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project NeuralAnalysis: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] To ssh://gitosis@10.41.129.2/NeuralAnalysis.git
[ERROR] ! [rejected] NeuralAnalysis-1.5.6 -> NeuralAnalysis-1.5.6 (non-fast-forward)
[ERROR] error: failed to push some refs to 'ssh://gitosis@10.41.129.2/NeuralAnalysis.git'
[ERROR] To prevent you from losing history, non-fast-forward updates were rejected
事实上,尝试 git push ssh://gitosis@10.41.129.2/NeuralAnalysis.git NeuralAnalysis-1.5.6手动执行,也会以同样的抱怨退出.
表演git pull'已经是最新的'.git branch显示我在'主人'.git push origin给'一切都是最新的'.
使用Tower查看存储库显示'master','origin/master'和'NeuralAnalysis-1.5.6'在最后一次提交时都是相同的.工作目录包含release.properties和pom.xml.releaseBackup文件.
它看起来像整个存储库的一切都很好.
我试图显示一个折线图,其中一些垂直线作为特定时间点的指标,并有一个标记这些时间点的图例.
根据ggplot2一书中第6.4.4节的例子,我尝试了以下内容
huron<-data.frame(year=1875:1972,level=LakeHuron)
vertDf<-data.frame(years=c(1900,1925,1950),labels=c("A","B","C"))
pltWithLines<-ggplot(huron, aes (x=year,y=level)) +
geom_line() +
geom_vline(aes(xintercept=years,color=labels),data=vertDf) +
scale_color_manual("Sample Year",
values=c("A"="blue","B"="red","C"="green"))
Run Code Online (Sandbox Code Playgroud)
这会生成一个图表,其中垂直线具有正确的颜色,但根本没有图例.
这有什么问题?
在http://novosial.org/perl/one-liner/上,我找到了以下两个单行.输出是不同的,因为该unless语句不同于if !(由于关联性和优先级规则).
cat file: foo bar
perl -ne 'print unless /^$/../^$/' file foo bar
perl -ne 'print if ! /^$/../^$/' file foo bar
if !-statement 的不同行为如何使第二个单行输出成为空行?