One way is to use maven to launch the job - just add the snippet below to your pom.xml and use "mvn exec:exec -Djob.name=myJob -Djob.configuration.path=path/to/myJob.xml" as command (or you can hardcode the parameters).
Code:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<!-- automatically creates the classpath using all project dependencies,
also adding the project build directory -->
<classpath />
<!-- job configuration file -->
<argument>-Djob.configuration.path=${job.configuration.path}</argument>
<!-- job name -->
<argument>-Djob.name=${job.name}</argument>
<argument>
org.springframework.batch.execution.bootstrap.support.BatchCommandLineLauncher
</argument>
</arguments>
</configuration>
</plugin>