Announcement Announcement Module
Collapse
No announcement yet.
maven command for create one spring batch project Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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
    ...

    Comment


    • #3
      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

      Comment


      • #4
        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).

        Comment


        • #5
          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

          Comment

          Working...
          X