如何解决使用mvn配置文件时,jfrog artifactory-maven-plugin不部署模块pom
我有一个Maven多项目,并且我想使用jfrog artifactory-maven-plugin将我的CI-bulds连接到我的工件中的工件。但是,当我使用配置文件运行“ mvn deploy”时,模块的pom.xml不会部署(仅专利pom),并且工件中的工件编号不会每次构建时都更新。
父pom中的jfrog artifactory-maven-plugin:
<plugin>
<groupId>org.jfrog.buildinfo</groupId>
<artifactId>artifactory-maven-plugin</artifactId>
<version>2.7.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>build-info</id>
<goals>
<goal>publish</goal>
</goals>
<configuration>
<artifactory>
<includeEnvVars>true</includeEnvVars>
<envVarsExcludePatterns>*password*,*secret*,*key*,*token*,*passphrase*</envVarsExcludePatterns>
<timeoutSec>60</timeoutSec>
</artifactory>
<publisher>
<contextUrl>http://my_artifactory_url</contextUrl>
<username>userName</username>
<password>password</password>
<includePatterns>*.pom *.jar *.war</includePatterns>
<filterExcludedArtifactsFromBuild>false</filterExcludedArtifactsFromBuild>
<repoKey>libs-release-local</repoKey>
<snapshotRepoKey>libs-snapshot-local</snapshotRepoKey>
</publisher>
<buildInfo>
<buildName>${buildName}</buildName>
<buildNumber>${buildNumber}</buildNumber>
<buildUrl>${buildUrl}</buildUrl>
</buildInfo>
<licenses>
<autodiscover>true</autodiscover>
<includePublishedArtifacts>true</includePublishedArtifacts>
<runchecks>true</runchecks>
<scopes>compile,runtime</scopes>
</licenses>
</configuration>
</execution>
</executions>
</plugin>
我的个人资料:
<profile>
<id>noCompilation</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
</plugin>
</plugins>
</build>
</profile>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。