-
1. Re: jboss-as-maven-plugin changing deployment folder
jamezp Apr 21, 2016 1:51 PM (in response to carcaret)The plugin deploys the archive. It doesn't deploy exploded content.
You can probably get what you're after if you use the gerResourceAsStream() instead.
final InputStream in = this.getClass().getResourceAsStream(fileName);
--
James R. Perkins
-
2. Re: jboss-as-maven-plugin changing deployment folder
carcaret Apr 26, 2016 3:26 AM (in response to jamezp)Thank you James, that did work, but I don't understand why. Shouldn't
this.getClass().getResource(fileName)
return the path to the file on disk (it is actually on disk in C:\Users\user\Software\jbdevstudio\runtimes\jboss-eap\standalone\tmp\vfs\temp\tempe7d3b1b185b33880\content-3cbb473e621bf4f3\WEB-INF\classes)?
What means that the plugin deploys the archive, not the exploded content?
Is there a way to deploy the application so that this line will work using the plugin? I can't change the source code to use getResourceAsStream().
-
3. Re: jboss-as-maven-plugin changing deployment folder
jamezp Apr 26, 2016 11:38 AM (in response to carcaret)The plugin only deploys the archive. It doesn't support deploying exploded content.
--
James R. Perkins