Announcement Announcement Module
Collapse
No announcement yet.
2.0M4: How to run cli simple archetype Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2.0M4: How to run cli simple archetype

    Hello folks. I am no Maven guru, so here goes my probably naive question:

    I have: OSX (10.5.6), Maven 2.0.9, and I've downloaded Spring Batch 2.0M4.

    Now, my goal is to be able to run samples from the command line and adopt it for my own batch adventures (for easily testing batch stuff as I go).

    So, in the samples directory, I've discovered an archetype.simple.cli which seems like what I need. After reading an instruction at the top of the pom.xm in that directory, I've tried to run 'mvn exec:java' and I got an error (obviously I'm missing some fundamental steps here, perhaps, but don't know which ones)

    The error goes like this:

    Error building POM (may not be this project's POM).


    Project ID: null:org.springframework.batch.core:jar:2.0.0.M4

    Reason: Cannot find parent: org.springframework.batch:org.springframework.batc h for project: null:org.springframework.batch.core:jar:2.0.0.M4 for project null:org.springframework.batch.core:jar:2.0.0.M4

    I'm attaching the screen shot. Any pointers on how to run/install this archetype will be greatly appreciated.

    Regards,
    Dmitriy.

  • #2
    Hi Dmitriy,

    Did you do a "mvn clean install" from the root of the Spring Batch project first?

    Comment


    • #3
      From which directory I should run this:

      org.springframework.batch.dist-2.0.0.M4/samples

      or

      org.springframework.batch.dist-2.0.0.M4/samples/org.springframework.batch.archetype.simple.cli ?

      Comment


      • #4
        I first thought you were running from a SVN checkout.

        If you are using the M4 download, then it looks like the pom.xml doesn't include the milestone repository.

        You need to add the following to the pom.xml under the <repository> entry found at line 197:

        Code:
        		<repository>
        			<id>com.springsource.repository.bundles.milestone</id>
        			<name>SpringSource Enterprise Bundle Repository -
        				SpringSource Bundle Milestones</name>
        			<url>http://repository.springsource.com/maven/bundles/milestone</url>
        			<snapshots>
        				<enabled>false</enabled>
        			</snapshots>
        		</repository>

        Comment


        • #5
          OK, this worked like a charm!

          Thanks Thomas for your help.

          Regards,
          Dmitriy.

          Comment

          Working...
          X