Results 1 to 5 of 5

Thread: 2.0M4: How to run cli simple archetype

  1. #1
    Join Date
    Aug 2004
    Location
    New York, NY, USA
    Posts
    33

    Default 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.
    Attached Images Attached Images
    Regards,
    Dmitriy.

  2. #2
    Join Date
    Aug 2004
    Posts
    1,104

    Default

    Hi Dmitriy,

    Did you do a "mvn clean install" from the root of the Spring Batch project first?
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

  3. #3
    Join Date
    Aug 2004
    Location
    New York, NY, USA
    Posts
    33

    Default

    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 ?
    Regards,
    Dmitriy.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,104

    Default

    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>
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

  5. #5
    Join Date
    Aug 2004
    Location
    New York, NY, USA
    Posts
    33

    Default

    OK, this worked like a charm!

    Thanks Thomas for your help.

    Regards,
    Dmitriy.
    Regards,
    Dmitriy.

Tags for this Thread

Posting Permissions

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