maven-replacer-plugin and multiple files

后端 未结 7 1177
执念已碎
执念已碎 2020-12-31 10:59

I wrote a Java Web Application where I replace URLs to static content at build time to add version information, primarely for caching.

For example, href=\"mya

7条回答
  •  死守一世寂寞
    2020-12-31 11:51

    This seems to be a bug in the latest 1.5.2 Version.

    As soon as I change the version on bugfix level down to 1.5.1, the Not Working Example works just as expected and all tokens are replaced by their values.

    
      com.google.code.maven-replacer-plugin
      replacer
      1.5.1
      
        
          prepare-package
          
            replace
          
        
      
      
        
          ${project.build.directory}/myApp/index.jsp
        
        
          
            %PROJECT_VERSION%
            ${project.version}
          
        
      
    
    

    I also removed the ignoreMissingFile as suggested by ben.

提交回复
热议问题