jira-importer commented on issue #257:
URL: 
https://github.com/apache/maven-war-plugin/issues/257#issuecomment-2967856397

   **[Marat 
Radchenko](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slonopotamus)**
 commented
   
   I've encountered this error too. It is easy to workaround but very annoying 
:(
   
   To reproduce:
   mvn  archetype:create -DgroupId=sample.group.id 
-DartifactId=sample-artifact-id -DarchetypeArtifactId=maven-archetype-webapp && 
cd sample-artifact-id && echo 'test=${test.url}' > 
src/main/resources/test.properties
   
   then manually add this to \<build> into pom.xml:
   
   ```xml
   <plugins>
     <plugin>
       <artifactId>maven-war-plugin</artifactId>
       <configuration>
         <webResources>
           <resource>
             <directory>src/main/resources</directory>
             <includes>
               <include>test.properties</include>
             </includes>
             <targetPath>WEB-INF</targetPath>
             <filtering>true</filtering>
           </resource>
         </webResources>
       </configuration>
     </plugin>
   </plugins>
   ```
   
   And then run
   mvn war:exploded && cat target/sample-artifact-id/WEB-INF/test.properties
   you'll see test=http://maven.apache.org which is absolutely incorrect.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to