Deal or not deal with Artifacts in jobs

I have a question about using artifacts while pipeline is running.
In my “Job A” I build Java artifacts and store them to the Gitlab artifact.
This looks like:

  artifacts:
    expire_in: 30 mins
    paths:      
    - ${CI_PROJECT_DIR}/MyApp/**/target/**/*
    - ${CI_PROJECT_DIR}/mvn.repo/**/*       
    reports:
      dotenv: ${CI_PROJECT_DIR}/vars.env   

In “Job B” I do the same because I need the artifacts in “Job C”
“Job C” will create a docker image from the JAR files and push it to the ECR.
However, in “Job D” and “Job E” I do some thing where I do not need the artifacts anymore BUT I need the vars.env.
How can I avoid that Gitlab will download in all other steps the Java artifacts from “Job A” and “Job B” but keep the vars.env? To use dependencies: will also ignore the vars.env.