Scopes filtering to jar added in the spring boot jar

I'd like to filter the jar included in the spring boot one based on the scope.
            &lt;configuration>
              &lt;scopes>
                &lt;scope>compile&lt;/scope>
                &lt;scope>runtime&lt;/scope>
              &lt;/scopes>
            &lt;/configuration>