Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Spring Batch 2.1.6.RELEASE is now available

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

    Default Spring Batch 2.1.6.RELEASE is now available

    Hi,

    Spring Batch 2.1.6.RELEASE is now available in the usual places (syncing to Central at some point in the next hour I hope).

    This is a bug fix release for 2.1.5, with 21 issues resolved. There are some changes to the XSD (adding <listener/> elements in places they should have been but weren't). Quite a few bugs were to do with flat and XML file reading and writing - not showstoppers for most people, but always good to tidy them up.

    Enjoy,

    Dave.

  2. #2
    Join Date
    Dec 2010
    Posts
    5

    Default Thanks for the release

    Hi Dave,
    thanks for the release, the listener changes helps us a lot. Would it also be possible to replace the schema on the webserver (http://www.springframework.org/schem...-batch-2.1.xsd)? The schema is still the old one.

    Kind regards
    Michael

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

    Default

    Apparently we have to wait for an rsync to run. Check back in a couple of hours.

  4. #4
    Join Date
    Jan 2008
    Location
    Pisa, Italy
    Posts
    23

    Default

    Can I use Spring Batch with Java 6?

    The reference documentation states:
    "The 1.x releases of Spring Batch were all based on Java 1.4. This prevented the framework from using many enhancements provided in Java 5 such as generics, parameterized types, etc. The entire framework has been updated to utilize these features."

    And the Roadmap says:

    "Spring Batch 2.0 is a Java 5 only release, using all available language features with no compromises for backward compatibility with Java 2"

    This means that there could be issues using it with Java 6?

    Thanks,
    Ivan

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

    Default

    Quote Originally Posted by eradan View Post
    This means that there could be issues using it with Java 6?
    No, it means 1.5 is a minimum requirement. Java 6 is significantly better.

  6. #6
    Join Date
    Mar 2011
    Posts
    2

    Default spring batch sample not working

    Hi,

    I just downloaded the spring batch 2.1.6 zip files, and using the instructions described in "With Maven and Eclipse", but the build failed because of
    Missing artifact com.oracle.jdbc:com.springsource.oracle.jdbc:jar:1 0.2.0.2:runtime

    Do I need to do something else to retrieve it?

    Thanks

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

    Default

    Sorry, we had to remove that JAR from the Maven repository for license reasons. You can safely remove it from the POM as well, or you can install it if you have downloaded it yourself from Oracle. Note that there is a "bootstrap" profile for grabbing all the other weird dependencies, but it won't work with this one any more.

  8. #8
    Join Date
    Aug 2010
    Posts
    3

    Default issue building 2.1.6

    I am using maven3 and I had an issue getting this to work. I am not an expert on maven so forgive me if this is a newb or "doh" type of issue.
    I have attached the full stack trace because it is longer than 10000 characters.

    ---------------
    [ERROR] Plugin com.springsource.bundlor:com.springsource.bundlor. maven:1.0.0.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.springsource.bundlor:com.springsource.bundlor. maven:jar:1.0.0.RELEASE: Failure to find com.springsource.bundlor:com.springsource.bundlor. mavenom:1.0.0.RELEASE in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
    org.apache.maven.plugin.PluginResolutionException: Plugin com.springsource.bundlor:com.springsource.bundlor. maven:1.0.0.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.springsource.bundlor:com.springsource.bundlor. maven:jar:1.0.0.RELEASE
    at org.apache.maven.plugin.internal.DefaultPluginDepe ndenciesResolver.resolve(DefaultPluginDependencies Resolver.java:122)
    at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getPluginDescriptor(DefaultMavenPluginMan ager.java:142)
    at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getMojoDescriptor(DefaultMavenPluginManag er.java:261)
    at org.apache.maven.plugin.DefaultBuildPluginManager. getMojoDescriptor(DefaultBuildPluginManager.java:1 92)
    at org.apache.maven.lifecycle.internal.DefaultLifecyc leExecutionPlanCalculator.setupMojoExections(Defau ltLifecycleExecutionPlanCalculator.java:134)
    at org.apache.maven.lifecycle.internal.DefaultLifecyc leExecutionPlanCalculator.calculateExecutionPlan(D efaultLifecycleExecutionPlanCalculator.java:116)
    at org.apache.maven.lifecycle.internal.BuilderCommon. resolveBuildPlan(BuilderCommon.java:92)
    at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 81)
    at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 59)
    at org.apache.maven.lifecycle.internal.LifecycleStart er.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStart er.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.jav a:534)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java :196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:1 41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher. launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher. mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher. main(Launcher.java:352)
    Caused by: org.sonatype.aether.resolution.ArtifactDescriptorE xception: Failed to read artifact descriptor for com.springsource.bundlor:com.springsource.bundlor. maven:jar:1.0.0.RELEASE
    at org.apache.maven.repository.internal.DefaultArtifa ctDescriptorReader.loadPom(DefaultArtifactDescript orReader.java:283)
    at org.apache.maven.repository.internal.DefaultArtifa ctDescriptorReader.readArtifactDescriptor(DefaultA rtifactDescriptorReader.java:173)
    at org.sonatype.aether.impl.internal.DefaultRepositor ySystem.readArtifactDescriptor(DefaultRepositorySy stem.java:289)
    at org.apache.maven.plugin.internal.DefaultPluginDepe ndenciesResolver.resolve(DefaultPluginDependencies Resolver.java:108)
    ... 23 more
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionE xception: Failure to find com.springsource.bundlor:com.springsource.bundlor. mavenom:1.0.0.RELEASE in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultArtifactR esolver.resolveArtifacts(DefaultArtifactResolver.j ava:526)
    at org.sonatype.aether.impl.internal.DefaultArtifactR esolver.resolveArtifact(DefaultArtifactResolver.ja va:214)
    at org.apache.maven.repository.internal.DefaultArtifa ctDescriptorReader.loadPom(DefaultArtifactDescript orReader.java:268)
    ... 26 more
    Caused by: org.sonatype.aether.transfer.ArtifactNotFoundExcep tion: Failure to find com.springsource.bundlor:com.springsource.bundlor. mavenom:1.0.0.RELEASE in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultUpdateChe ckManager.checkArtifact(DefaultUpdateCheckManager. java:186)
    at org.sonatype.aether.impl.internal.DefaultArtifactR esolver.resolveArtifacts(DefaultArtifactResolver.j ava:408)
    ... 28 more
    [ERROR]
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException
    Attached Files Attached Files

  9. #9
    Join Date
    Mar 2011
    Posts
    2

    Default

    Thanks for your reply, I got it working.

  10. #10
    Join Date
    Jul 2010
    Posts
    13

    Default Spring Batch 2.1.6 upgrade problem

    I have just installed the 2.1.6 release. We are migrating from 2.0.4 and are getting the following:
    <code>
    Description Resource Path Location Type
    Could not calculate build plan: Missing:
    ----------
    1) com.springsource.bundlor:com.springsource.bundlor. maven:maven-plugin:1.0.0.RELEASE

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=com.springsource.bundlor -DartifactId=com.springsource.bundlor.maven -Dversion=1.0.0.RELEASE -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=com.springsource.bundlor -DartifactId=com.springsource.bundlor.maven -Dversion=1.0.0.RELEASE -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    ----------
    1 required artifact is missing.

    for artifact:
    com.springsource.bundlor:com.springsource.bundlor. maven:maven-plugin:1.0.0.RELEASE

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
    etl-mike-v4 Unknown Maven Problem

    </code>


    Can anyone point us to the solution for this problem?

Posting Permissions

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