Results 1 to 5 of 5

Thread: maven command for create one spring batch project

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    8

    Default maven command for create one spring batch project

    Hello

    i am new using spring batch. i want to create the project using maven (i have made this with one spring webproject and one spring ws project) but i dont load it, this, if i make this appears one error:
    mvn archetype:create -DarchetypeGroupId=org.springframework.batch -DarchetypeArtifactId=spring-batch-archetype -DarchetypeVersion=1.1.4.RELEASE -DgroupId=com.mydomain -DartifactId=myBatch -DpackageName=com.mydomain -Dversion=0.0.1-SNAPSHOT

    can you help me for using maven for create one spring batch project?

    thanks

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    There is no archetype for Spring Batch (sorry - the Maven archetype infrastructure just isn't very good at supporting Spring projects). You can use the template "simple-cli" project just by exporting it from SVN:

    Code:
    $ svn export  https://src.springframework.org/svn/spring-batch/trunk/archetypes/simple-cli
    $ cd simple-cli
    $ mvn test
    ...

  3. #3

    Default

    Quote Originally Posted by Dave Syer View Post
    There is no archetype for Spring Batch (sorry - the Maven archetype infrastructure just isn't very good at supporting Spring projects).
    Can you give some insights into the reasons for this opinion ?

    i had no problems so far in creating spring batch archetypes

  4. #4
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Feel free to contribute them. Last time I tried I had issues with filtering package names in Spring config (and other) config files. Also, while the NG archetype plugin supposedly supports in place archetype production from an existing project I never found a way to set the artifactId properly on the generated archetype (the docos were really bad).

  5. #5
    Join Date
    Apr 2009
    Posts
    8

    Default

    can you help me?
    i am running this command and it gives me one error:
    mvn archetype:create -DarchetypeGroupId=org.springframework.batch -DarchetypeArtifactId=spring-batch-archetype -DarchetypeVersion=1.1.4.RELEASE -DgroupId=com.mydomain -DartifactId=myBatch -DpackageName=com.mydomain -Dversion=0.0.1-SNAPSHOT

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •