使用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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...