Skip to content

Commit

Permalink
* supports publish project in my computer
Browse files Browse the repository at this point in the history
  • Loading branch information
bes2008 committed Jun 6, 2019
1 parent f1d3b27 commit 722a8e8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@
</build>

<profiles>

<profile>
<id>deployHome</id>
<id>envHome</id>
<properties>
<gpg.executable>C:/Program Files (x86)/GNU/GnuPG/gpg2</gpg.executable>
<gpg.homedir>C:/Users/Administrator/AppData/Roaming/gnupg</gpg.homedir>
Expand All @@ -165,7 +166,22 @@
可以这样配置在pom.xml文件中,也可以在执行mvn 命令时,加上-Dgpg.passphrase=YOUR_GPG_PASSPHRASE
-->
</properties>
</profile>

<profile>
<id>envCompany</id>
<properties>
<gpg.executable>D:/Program Files (x86)/GNU/GnuPG/gpg2.exe</gpg.executable>
<gpg.homedir>C:/Users/User/AppData/Roaming/gnupg</gpg.homedir>
<!--
<gpg.passphrase>YOUR GPG PASSPHRASE</gpg.passphrase>
可以这样配置在pom.xml文件中,也可以在执行mvn 命令时,加上-Dgpg.passphrase=YOUR_GPG_PASSPHRASE
-->
</properties>
</profile>

<profile>
<id>deploy</id>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -276,5 +292,6 @@
</plugins>
</build>
</profile>

</profiles>
</project>

0 comments on commit 722a8e8

Please sign in to comment.