title: How to run a specific job using Maven command in Spring Batch?
body: <p>Given you have this job configuration below, how can you execute the job <code>scrubWord</code> in command line in a Spring Boot - Spring Batch application using Maven command?</p>
  <pre class="lang-java prettyprint-override"><code>@Configuration
  public class WordConfiguration {
  
      @Autowired
      WordReader wordReader;
  
      @Autowired
      WordProcessor wordProcessor;
  
      @Autowired
      WordWriter wordWriter;
  
      @Bean
      public Job scrubWords() {
          Step scrubWords = stepBuilders
                  .get(&quot;scrubWord&quot;)
                  .&lt;Set&lt;String&gt;, Set&lt;String&gt;&gt;chunk(1)
                  .reader(wordReader)
                  .processor(wordProcessor)
                  .writer(wordWriter)
                  .build();
          return jobBuilders.get(&quot;wordScrubber&quot;)
                  .start(scrubWords)
                  .build();
      }
  }
  </code></pre>