After deploy in Nexus, the variables in POM.xml are not resolved?

早过忘川 提交于 2021-01-27 20:28:39

问题


I use Maven Multi-Modul, Jenkins builds and then deploy in Nexus...

I'm using in my Pom files many variables that I have defined in parent-pom part propertis

I would have after the build/deploy resolved the variables in Pom-Nexus.

I know that this is feasible, because I made a few years ago....


回答1:


I think, i found it

  <build>
    <plugins>
      <plugin>
        <groupId>com.sap.prd.mobile.ios.maven.plugins</groupId>
        <artifactId>resolve-pom-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>resolve-pom-props</id>
            <goals>
              <goal>resolve-pom-props</goal>
            </goals>              
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


来源:https://stackoverflow.com/questions/33254495/after-deploy-in-nexus-the-variables-in-pom-xml-are-not-resolved

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!