It helps starting a new thread for a new topic like this. This will enable easier linking/finding of issues.
That being said, you already found the documentation. Liferay needs some files on the global classpath - there's no way around that. Yes, they will be available to other applications that run on the same server, but that's the price you pay for being able to deploy additional portlets and plugins.
There might be a way around the steps outlined in the documentation, but if you run into problems with such a setup (like plugins not working - or not working in the expected way) you'd be outside of expectations for how Liferay operates. If you don't have more experience with JBoss, I recommend to set up a separate instance.
Unfortunately I don't have a lot of real-world experience with JBoss, so I can't tell you if there are some OOTB features in JBoss to mitigate this.
请登录并以举报不当内容。