Is it possible to read a file and store the entire contents into a Maven property?
I\'m trying to generate some custom JavaDocs, and they have an option to set a hea
See this question on SO. And here is the properties-maven-plugin.
If you'd like not to use .properties file, than I can suggest to use the Groovy plugin and a small script that I've written:
  org.codehaus.gmaven 
  gmaven-plugin 
  1.4 
  
    
      generate-resources 
      
        execute 
       
      
        
          header.html 
         
        
          def file = new File(project.properties.header_file)
          project.properties.header_content = file.getText()
         
       
     
   
 
After execution of this plugin, you should be able to refer to ${header_content} property that contains header.html file contents.