Say you have a testproject: testproject - src -- main --- java ---- MainClass.java --- resources ---- 1.txt ---- 2.txt -- test --- java ---- TestClass.java --- resources ---- 3.txt
Access is possible via getResourceAsStream to all resource files, e.g. 2.txt. Is it possible to override this? I am using mvn exec:java to run this and I want to have something like: testproject - target -- testproject-1.0-SNAPSHOT.jar - additional-resources -- 2.txt and get 2.txt instead of the one packaged in the jar. Think of it as the "override" resource. Say, you have a default log4j.properties that you use in the development environment and then you want this to be overriden in production environment to have error level instead of debug. How would you solve this one? -- View this message in context: http://n2.nabble.com/Maven-resource-override-tp3575515p3575515.html Sent from the maven users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
