- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
最近几天,我尝试为 Git 发布配置 Maven 发布插件。我已经为它设置了一个测试项目,我已经尝试了太多配置,我不知道如何将它们全部显示给你......
在每种情况下,Maven Release 插件都只使用当前 check out 的分支。如果我在 master
上启动 Release 插件分支它会在其上创建标签,但如果我在 develop
上分支它在那里创造一切。
我的实际 pom 看起来像这样:
<project>
...
<scm>
<connection>scm:git:file://D:\Dev\gitremotetest\testpp</connection>
<developerConnection>scm:git:file://D:\Dev\gitremotetest\testpp</developerConnection>
<tag>HEAD</tag>
</scm>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.5</version>
</dependency>
</dependencies>
<configuration>
<branchName>develop</branchName>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
我搜索了很多网站,都没有找到关于使用 Git 发布插件的完整配置。结果应该是,开发分支是预发布版本
0.0.1-SNAPSHOT
和发布后版本
0.0.2-SNAPSHOT
.
master
分支应包含
prerelease
版本
0.0.0
和发布后版本
0.0.1
.
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: D:\Dev\git\testpp\testpp\EMBEDDED
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: C:\Programme\Java\jdk1.8.0_91\jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: LOTS OF IMPORTS
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from EMBEDDED\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\ph729\.m2\settings.xml
[DEBUG] Reading global toolchains from D:\Dev\git\testpp\testpp\EMBEDDED\conf\toolchains.xml
[DEBUG] Reading user toolchains from C:\Users\ph729\.m2\toolchains.xml
[DEBUG] Using local repository at C:\Users\ph729\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\Users\ph729\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project test:testpp:pom:0.0.13-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix release from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix release to org.apache.maven.plugins:maven-release-plugin from POM test:testpp:pom:0.0.13-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: test:testpp:pom:0.0.13-SNAPSHOT
[DEBUG] Tasks: [release:prepare]
[DEBUG] Style: Aggregating
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testpp 0.0.13-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix release from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix release to org.apache.maven.plugins:maven-release-plugin from POM test:testpp:pom:0.0.13-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: test:testpp:0.0.13-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [ID (https://IP+PORT/repository/maven-public/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [ID (https://IP+PORT/repository/maven-central/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli)
[DEBUG] Style: Aggregating
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<addSchema default-value="true">${addSchema}</addSchema>
<allowReleasePluginSnapshot default-value="false">${allowReleasePluginSnapshot}</allowReleasePluginSnapshot>
<allowTimestampedSnapshots default-value="false">${ignoreSnapshots}</allowTimestampedSnapshots>
<arguments>${arguments}</arguments>
<autoVersionSubmodules default-value="false">${autoVersionSubmodules}</autoVersionSubmodules>
<basedir default-value="${basedir}"/>
<checkModificationExcludeList>${checkModificationExcludeList}</checkModificationExcludeList>
<commitByProject default-value="false">${commitByProject}</commitByProject>
<completionGoals default-value="">${completionGoals}</completionGoals>
<developmentVersion>${developmentVersion}</developmentVersion>
<dryRun default-value="false">${dryRun}</dryRun>
<generateReleasePoms default-value="false">${generateReleasePoms}</generateReleasePoms>
<javaHome default-value="${java.home}"/>
<localRepoDirectory default-value="${maven.repo.local}"/>
<mavenExecutorId default-value="invoker">${mavenExecutorId}</mavenExecutorId>
<mavenHome default-value="${maven.home}"/>
<password>${password}</password>
<pomFileName>${pomFileName}</pomFileName>
<preparationGoals default-value="clean verify">${preparationGoals}</preparationGoals>
<project default-value="${project}"/>
<projectVersionPolicyId default-value="default">${projectVersionPolicyId}</projectVersionPolicyId>
<pushChanges default-value="true">${pushChanges}</pushChanges>
<reactorProjects default-value="${reactorProjects}"/>
<releaseVersion>${releaseVersion}</releaseVersion>
<remoteTagging default-value="true">${remoteTagging}</remoteTagging>
<resume default-value="true">${resume}</resume>
<scmCommentPrefix default-value="[maven-release-plugin] ">${scmCommentPrefix}</scmCommentPrefix>
<session default-value="${session}"/>
<settings default-value="${settings}"/>
<suppressCommitBeforeTag default-value="false">${suppressCommitBeforeTag}</suppressCommitBeforeTag>
<tag>testpp-0.0.13-SNAPSHOT-m1</tag>
<tagBase>${tagBase}</tagBase>
<tagNameFormat default-value="@{project.artifactId}-@{project.version}">${tagNameFormat}</tagNameFormat>
<updateDependencies default-value="true">${updateDependencies}</updateDependencies>
<updateWorkingCopyVersions default-value="true">${updateWorkingCopyVersions}</updateWorkingCopyVersions>
<useEditMode default-value="false">${useEditMode}</useEditMode>
<username>${username}</username>
<waitBeforeTagging default-value="0">${waitBeforeTagging}</waitBeforeTagging>
</configuration>
[DEBUG] =======================================================================
[INFO]
[INFO] --- maven-release-plugin:2.5.3:prepare (default-cli) @ testpp ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=2, ConflictMarker.markTime=0, ConflictMarker.nodeCount=191, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=68, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=11, ConflictResolver.conflictItemCount=172, DefaultDependencyCollector.collectTime=646, DefaultDependencyCollector.transformTime=17}
[DEBUG] org.apache.maven.plugins:maven-release-plugin:jar:2.5.3:
AND LOTS OF MORE
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-release-plugin:2.5.3, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare' with basic configurator -->
[DEBUG] (f) addSchema = true
[DEBUG] (f) allowReleasePluginSnapshot = false
[DEBUG] (f) allowTimestampedSnapshots = false
[DEBUG] (f) autoVersionSubmodules = false
[DEBUG] (s) basedir = D:\Dev\git\testpp\testpp
[DEBUG] (f) commitByProject = false
[DEBUG] (f) dryRun = false
[DEBUG] (f) generateReleasePoms = false
[DEBUG] (f) javaHome = C:\Programme\Java\jdk1.8.0_91\jre
[DEBUG] (f) mavenExecutorId = invoker
[DEBUG] (f) mavenHome = D:\Dev\git\testpp\testpp\EMBEDDED
[DEBUG] (f) preparationGoals = clean verify
[DEBUG] (f) project = MavenProject: test:testpp:0.0.13-SNAPSHOT @ D:\Dev\git\testpp\testpp\pom.xml
[DEBUG] (f) projectVersionPolicyId = default
[DEBUG] (f) pushChanges = true
[DEBUG] (f) reactorProjects = [MavenProject: test:testpp:0.0.13-SNAPSHOT @ D:\Dev\git\testpp\testpp\pom.xml]
[DEBUG] (f) remoteTagging = true
[DEBUG] (f) resume = true
[DEBUG] (f) scmCommentPrefix = [maven-release-plugin]
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@67a056f1
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@247667dd
[DEBUG] (f) suppressCommitBeforeTag = false
[DEBUG] (f) tag = testpp-0.0.13-SNAPSHOT-m1
[DEBUG] (f) tagNameFormat = @{project.artifactId}-@{project.version}
[DEBUG] (f) updateDependencies = true
[DEBUG] (f) updateWorkingCopyVersions = true
[DEBUG] (f) useEditMode = false
[DEBUG] (f) waitBeforeTagging = 0
[DEBUG] -- end configuration --
[DEBUG] release.properties not found - using empty properties
[INFO] Verifying that there are no local modifications...
[INFO] ignoring changes on: **\pom.xml.next, **\release.properties, **\pom.xml.branch, **\pom.xml.tag, **\pom.xml.backup, **\pom.xml.releaseBackup
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: D:\Dev\git\testpp\testpp
[DEBUG] ?? testpp/.project
[WARNING] Ignoring unrecognized line: ?? testpp/.project
[DEBUG] ?? testpp/.settings/
[WARNING] Ignoring unrecognized line: ?? testpp/.settings/
[DEBUG] ?? testpp/release.properties
[WARNING] Ignoring unrecognized line: ?? testpp/release.properties
[DEBUG] ?? testpp/target/
[WARNING] Ignoring unrecognized line: ?? testpp/target/
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'testpp'...
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[DEBUG] Using ${maven.home} of: 'D:\Dev\git\testpp\testpp\EMBEDDED'.
[DEBUG] Executing: cmd.exe /X /C "D:\Dev\git\testpp\testpp\EMBEDDED\bin\mvn.cmd -B -X -D maven.repo.local=C:\Users\ph729\.m2\repository -s C:\Users\ph729\AppData\Local\Temp\release-settings5443953982957427387.xml clean verify"
[INFO] Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
[INFO] Maven home: D:\Dev\git\testpp\testpp\EMBEDDED
[INFO] Java version: 1.8.0_91, vendor: Oracle Corporation
[INFO] Java home: C:\Programme\Java\jdk1.8.0_91\jre
[INFO] Default locale: de_DE, platform encoding: Cp1252
[INFO] OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
[INFO] [DEBUG] Created new class realm maven.api
[INFO] [DEBUG] Importing foreign packages into class realm maven.api
[INFO] [DEBUG] Imported: LOTS OF IMPORTS
[INFO] [DEBUG] Populating class realm maven.api
[INFO] [INFO] Error stacktraces are turned on.
[INFO] [DEBUG] Reading global settings from D:\Dev\git\testpp\testpp\EMBEDDED\conf\settings.xml
[INFO] [DEBUG] Reading user settings from C:\Users\ph729\AppData\Local\Temp\release-settings5443953982957427387.xml
[INFO] [DEBUG] Reading global toolchains from D:\Dev\git\testpp\testpp\EMBEDDED\conf\toolchains.xml
[INFO] [DEBUG] Reading user toolchains from C:\Users\ph729\.m2\toolchains.xml
[INFO] [DEBUG] Using local repository at C:\Users\ph729\.m2\repository
[INFO] [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\Users\ph729\.m2\repository
[INFO] [INFO] Scanning for projects...
[INFO] [DEBUG] Extension realms for project test:testpp:pom:0.0.13: (none)
[INFO] [DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[INFO] [DEBUG] === REACTOR BUILD PLAN ================================================
[INFO] [DEBUG] Project: test:testpp:pom:0.0.13
[INFO] [DEBUG] Tasks: [clean, verify]
[INFO] [DEBUG] Style: Regular
[INFO] [DEBUG] =======================================================================
[INFO] [INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building testpp 0.0.13
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[INFO] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[INFO] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[INFO] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[INFO] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[INFO] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[INFO] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[INFO] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[INFO] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[INFO] [DEBUG] === PROJECT BUILD PLAN ================================================
[INFO] [DEBUG] Project: test:testpp:0.0.13
[INFO] [DEBUG] Dependencies (collect): []
[INFO] [DEBUG] Dependencies (resolve): []
[INFO] [DEBUG] Repositories (dependencies): [ID (https://IP+PORT/repository/maven-public/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] [DEBUG] Repositories (plugins) : [ID (https://IP+PORT/repository/maven-central/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] [DEBUG] -----------------------------------------------------------------------
[INFO] [DEBUG] Goal: org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)
[INFO] [DEBUG] Style: Regular
[INFO] [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
[INFO] <configuration>
[INFO] <directory default-value="${project.build.directory}"/>
[INFO] <excludeDefaultDirectories default-value="false">${clean.excludeDefaultDirectories}</excludeDefaultDirectories>
[INFO] <failOnError default-value="true">${maven.clean.failOnError}</failOnError>
[INFO] <followSymLinks default-value="false">${clean.followSymLinks}</followSymLinks>
[INFO] <outputDirectory default-value="${project.build.outputDirectory}"/>
[INFO] <reportDirectory default-value="${project.reporting.outputDirectory}"/>
[INFO] <retryOnError default-value="true">${maven.clean.retryOnError}</retryOnError>
[INFO] <skip default-value="false">${clean.skip}</skip>
[INFO] <testOutputDirectory default-value="${project.build.testOutputDirectory}"/>
[INFO] <verbose>${clean.verbose}</verbose>
[INFO] </configuration>
[INFO] [DEBUG] =======================================================================
[INFO] [INFO]
[INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ testpp ---
[INFO] [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=0, ConflictMarker.nodeCount=3, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=3, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=4, ConflictResolver.conflictItemCount=3, DefaultDependencyCollector.collectTime=64, DefaultDependencyCollector.transformTime=10}
[INFO] [DEBUG] org.apache.maven.plugins:maven-clean-plugin:jar:2.5:
[INFO] [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[INFO] [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0:compile
[INFO] [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5
[INFO] [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5
[INFO] [DEBUG] Imported: < maven.api
[INFO] [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5
[INFO] [DEBUG] Included: org.apache.maven.plugins:maven-clean-plugin:jar:2.5
[INFO] [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0
[INFO] [DEBUG] Configuring mojo org.apache.maven.plugins:maven-clean-plugin:2.5:clean from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-clean-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[INFO] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.5:clean' with basic configurator -->
[INFO] [DEBUG] (f) directory = D:\Dev\git\testpp\testpp\target
[INFO] [DEBUG] (f) excludeDefaultDirectories = false
[INFO] [DEBUG] (f) failOnError = true
[INFO] [DEBUG] (f) followSymLinks = false
[INFO] [DEBUG] (f) outputDirectory = D:\Dev\git\testpp\testpp\target\classes
[INFO] [DEBUG] (f) reportDirectory = D:\Dev\git\testpp\testpp\target\site
[INFO] [DEBUG] (f) retryOnError = true
[INFO] [DEBUG] (f) skip = false
[INFO] [DEBUG] (f) testOutputDirectory = D:\Dev\git\testpp\testpp\target\test-classes
[INFO] [DEBUG] -- end configuration --
[INFO] [INFO] Deleting D:\Dev\git\testpp\testpp\target
[INFO] [DEBUG] Skipping non-existing directory D:\Dev\git\testpp\testpp\target\classes
[INFO] [DEBUG] Skipping non-existing directory D:\Dev\git\testpp\testpp\target\test-classes
[INFO] [DEBUG] Skipping non-existing directory D:\Dev\git\testpp\testpp\target\site
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 0.991 s
[INFO] [INFO] Finished at: 2016-09-19T14:08:12+02:00
[INFO] [INFO] Final Memory: 10M/184M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: D:\Dev\git\testpp\testpp
[DEBUG] M testpp/pom.xml
[DEBUG] ?? testpp/.project
[WARNING] Ignoring unrecognized line: ?? testpp/.project
[DEBUG] ?? testpp/.settings/
[WARNING] Ignoring unrecognized line: ?? testpp/.settings/
[DEBUG] ?? testpp/pom.xml.releaseBackup
[WARNING] Ignoring unrecognized line: ?? testpp/pom.xml.releaseBackup
[DEBUG] ?? testpp/release.properties
[WARNING] Ignoring unrecognized line: ?? testpp/release.properties
[INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\ph729\AppData\Local\Temp\maven-scm-1528637449.commit pom.xml"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git push file://D:\Dev\gitremotetest\testpp refs/heads/master:refs/heads/master"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Tagging release with the label testpp-0.0.13-SNAPSHOT-m1...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[DEBUG] ScmTagPhase :: fileSet basedir = D:\Dev\git\testpp\testpp; files = []
[INFO] Executing: cmd.exe /X /C "git tag -F C:\Users\ph729\AppData\Local\Temp\maven-scm-1215806812.commit testpp-0.0.13-SNAPSHOT-m1"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git push file://D:\Dev\gitremotetest\testpp refs/tags/testpp-0.0.13-SNAPSHOT-m1"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git ls-files"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Transforming 'testpp'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: D:\Dev\git\testpp\testpp
[DEBUG] M testpp/pom.xml
[DEBUG] ?? testpp/.project
[WARNING] Ignoring unrecognized line: ?? testpp/.project
[DEBUG] ?? testpp/.settings/
[WARNING] Ignoring unrecognized line: ?? testpp/.settings/
[DEBUG] ?? testpp/pom.xml.releaseBackup
[WARNING] Ignoring unrecognized line: ?? testpp/pom.xml.releaseBackup
[DEBUG] ?? testpp/release.properties
[WARNING] Ignoring unrecognized line: ?? testpp/release.properties
[INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\ph729 \AppData\Local\Temp\maven-scm-1020827492.commit pom.xml"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Executing: cmd.exe /X /C "git push file://D:\Dev\gitremotetest\testpp refs/heads/master:refs/heads/master"
[INFO] Working directory: D:\Dev\git\testpp\testpp
[INFO] Release preparation complete.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.132 s
[INFO] Finished at: 2016-09-19T14:08:14+02:00
[INFO] Final Memory: 11M/152M
[INFO] ------------------------------------------------------------------------
我的问题是,maven 发布插件有很多配置标签,但没有 git 文档。 + 我从来没有使用过 svn,我是 Git 的新手。
<project>
...
<scm>
<connection>scm:git:file:///D:/Dev/gitremotetest/testpp</connection>
<developerConnection>scm:git:file:///D:/Dev/gitremotetest/testpp</developerConnection>
<tag>HEAD</tag>
</scm>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<branchName>develop</branchName>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
我的目标结果是:
[INFO] --- jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) @ testb ---
[WARNING] ..oo00 ---- WARNING ---- 00oo..
[WARNING] core.autocrlf is set to true but is NOT supported by JGit or JGitFlow!
[WARNING] 00oo.. you have been warned 00oo..
我工作的公司使用此设置。
最佳答案
我通常使用 mvn release:prepare
其次是 mvn release:perform
这允许我从快照移动到最终版本等。
关于java - 如何使用 Git 设置 Maven 发布插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39573409/
我正在编写一个具有以下签名的 Java 方法。 void Logger(Method method, Object[] args); 如果一个方法(例如 ABC() )调用此方法 Logger,它应该
我是 Java 新手。 我的问题是我的 Java 程序找不到我试图用作的图像文件一个 JButton。 (目前这段代码什么也没做,因为我只是得到了想要的外观第一的)。这是我的主课 代码: packag
好的,今天我在接受采访,我已经编写 Java 代码多年了。采访中说“Java 垃圾收集是一个棘手的问题,我有几个 friend 一直在努力弄清楚。你在这方面做得怎么样?”。她是想骗我吗?还是我的一生都
我的 friend 给了我一个谜语让我解开。它是这样的: There are 100 people. Each one of them, in his turn, does the following
如果我将使用 Java 5 代码的应用程序编译成字节码,生成的 .class 文件是否能够在 Java 1.4 下运行? 如果后者可以工作并且我正在尝试在我的 Java 1.4 应用程序中使用 Jav
有关于why Java doesn't support unsigned types的问题以及一些关于处理无符号类型的问题。我做了一些搜索,似乎 Scala 也不支持无符号数据类型。限制是Java和S
我只是想知道在一个 java 版本中生成的字节码是否可以在其他 java 版本上运行 最佳答案 通常,字节码无需修改即可在 较新 版本的 Java 上运行。它不会在旧版本上运行,除非您使用特殊参数 (
我有一个关于在命令提示符下执行 java 程序的基本问题。 在某些机器上我们需要指定 -cp 。 (类路径)同时执行java程序 (test为java文件名与.class文件存在于同一目录下) jav
我已经阅读 StackOverflow 有一段时间了,现在我才鼓起勇气提出问题。我今年 20 岁,目前在我的家乡(罗马尼亚克卢日-纳波卡)就读 IT 大学。足以介绍:D。 基本上,我有一家提供簿记应用
我有 public JSONObject parseXML(String xml) { JSONObject jsonObject = XML.toJSONObject(xml); r
我已经在 Java 中实现了带有动态类型的简单解释语言。不幸的是我遇到了以下问题。测试时如下代码: def main() { def ks = Map[[1, 2]].keySet()
一直提示输入 1 到 10 的数字 - 结果应将 st、rd、th 和 nd 添加到数字中。编写一个程序,提示用户输入 1 到 10 之间的任意整数,然后以序数形式显示该整数并附加后缀。 public
我有这个 DownloadFile.java 并按预期下载该文件: import java.io.*; import java.net.URL; public class DownloadFile {
我想在 GUI 上添加延迟。我放置了 2 个 for 循环,然后重新绘制了一个标签,但这 2 个 for 循环一个接一个地执行,并且标签被重新绘制到最后一个。 我能做什么? for(int i=0;
我正在对对象 Student 的列表项进行一些测试,但是我更喜欢在 java 类对象中创建硬编码列表,然后从那里提取数据,而不是连接到数据库并在结果集中选择记录。然而,自从我这样做以来已经很长时间了,
我知道对象创建分为三个部分: 声明 实例化 初始化 classA{} classB extends classA{} classA obj = new classB(1,1); 实例化 它必须使用
我有兴趣使用 GPRS 构建车辆跟踪系统。但是,我有一些问题要问以前做过此操作的人: GPRS 是最好的技术吗?人们意识到任何问题吗? 我计划使用 Java/Java EE - 有更好的技术吗? 如果
我可以通过递归方法反转数组,例如:数组={1,2,3,4,5} 数组结果={5,4,3,2,1}但我的结果是相同的数组,我不知道为什么,请帮助我。 public class Recursion { p
有这样的标准方式吗? 包括 Java源代码-测试代码- Ant 或 Maven联合单元持续集成(可能是巡航控制)ClearCase 版本控制工具部署到应用服务器 最后我希望有一个自动构建和集成环境。
我什至不知道这是否可能,我非常怀疑它是否可能,但如果可以,您能告诉我怎么做吗?我只是想知道如何从打印机打印一些文本。 有什么想法吗? 最佳答案 这里有更简单的事情。 import javax.swin
我是一名优秀的程序员,十分优秀!