# Branch filtering not working with sample maven orb

**URL:** <https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656>\
**Category:** Community\
**Tags:** circle-yml\
**Created:** [February 25, 2020, 12:55am UTC](https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656 "2020-02-25T00:55:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmuralles](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jmuralles](https://discuss.circleci.com/u/jmuralles)\
**Post date:** [February 25, 2020, 12:55am UTC](https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656/1 "2020-02-25T00:55:07Z")

</div>

Hello everyone. I am new to CircleCI and I am trying to setup the maven for java image for 2.1 while using orbs.

I am playing around with the sample maven config for java provided by the initial setup page.

For some reason I still get build statuses for non-master branches under the project pipelines section even though I have explicitly specified in my config.yaml from the circleci-project-setup branch in my repository to filter for only the master branch.

I get these errors for non master branches.

> “No configuration was found in your project.”

This is what my config.yaml looks like in my circleci-project-setup branch inside of my project’s repository.

```
version: 2.1

orbs:
  maven: circleci/maven@0.0.12

workflows:
  maven_test:
    jobs:
      - maven/test: # checkout, build, test, and upload test results
          filters:
            branches:
              only: master

```

Do I need to have a config.yaml on every branch of my project?  
Why are my filters not working.

Any help will be appreciated.

---

<div class="post-metadata">

**Author:** ![gordon](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gordon](https://discuss.circleci.com/u/gordon)\
**Post date:** [February 25, 2020, 11:09am UTC](https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656/2 "2020-02-25T11:09:40Z")

</div>

Hi there, when you first add your project to CircleCI we will attempt to build every push, by default.

When we see pushes to your other branches we don’t find a config file in that branch so we show that error message.  
Config is branch-local rather than global, it allows you to experiment with new config on a branch without impacting other work going on in parallel.

To fix this there needs to be a config file on the branches that are being pushed, basically once `circleci-project-setup` is merged to `master` things will behave as expected.

-Gordon

---

<div class="post-metadata">

**Author:** ![jmuralles](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jmuralles](https://discuss.circleci.com/u/jmuralles)\
**Post date:** [February 25, 2020, 7:13pm UTC](https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656/3 "2020-02-25T19:13:24Z")

</div>

Thank you so much Gordon! This was exactly what I was looking for.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [March 6, 2020, 7:13pm UTC](https://discuss.circleci.com/t/branch-filtering-not-working-with-sample-maven-orb/34656/4 "2020-03-06T19:13:33Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
