Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch 2.1.6.RELEASE is now available Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


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

      Comment


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

        Comment


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

          Comment


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

            Comment


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

              Comment


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

                Comment


                • #9
                  Thanks for your reply, I got it working.

                  Comment


                  • #10
                    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?

                    Comment


                    • #11
                      Resolved using another post from Dave.

                      Thanks

                      Comment

                      Working...
                      X