2 Replies Latest reply on Feb 22, 2008 12:25 PM by abondi

    Exclude folder from deployment

    abondi

      Hello everybody,
      how can I exclude a folder from being deployed?

      I mean: I have a jar containing a folder named "components". In this folder there are few jars which are automatically deployed when I copy my original jar in the "deploy" folder.
      How can I prevent JBoss from doing this? I want to deploy the original jar but not my jars contained in the "components" folder inside the first jar.

      Thank you very much!

      Andrea

        • 1. Re: Exclude folder from deployment
          peterj

          Try adding the folder name to the "matches" property of the "FilterInstance" attribute of the URLDeploymentScanner MBean, the last mbean in server/xxx/conf/jboss-service.xml.

          • 2. Re: Exclude folder from deployment
            abondi

            I found something like the solution you propose in this forum.

            The problem is that I'd like to do this without touching jboss-service.xml configuration file but only modifying my META-INF/jboss-app.xml file, inside the container jar.

            Thank you very much for your interest!

            Andrea