Announcement Announcement Module
Collapse
No announcement yet.
Can't build spring-batch-samples 2.1.0.RC1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't build spring-batch-samples 2.1.0.RC1

    Hi,

    starting from a fresh local repository, I can't build spring-batch-samples 2.1.0.RC1 out of the box, as maven fails to resolve spring-batch-core:jar:2.1.0.RC1.
    I added the milestone and release repositories to spring-batch-samples/pom.xml but that didn't solve the problem. I'm not running maven behind the proxy.
    Code:
    [ERROR] Failed to execute goal on project spring-batch-samples: Missing:
    ----------
    1) org.springframework.batch:spring-batch-core:jar:2.1.0.RC1
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.springframework.batch -DartifactId=
    spring-batch-core -Dversion=2.1.0.RC1 -Dpackaging=jar -Dfile=/path/to/file
    
      Alternatively, if you host your own repository you can deploy the file there:
    
          mvn deploy:deploy-file -DgroupId=org.springframework.batch -DartifactId=sp
    ring-batch-core -Dversion=2.1.0.RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[
    url] -DrepositoryId=[id]
    
      Path to dependency:
            1) org.springframework.batch:spring-batch-samples:pom:pom:2.1.0.RC1
            2) org.springframework.batch:spring-batch-core:jar:2.1.0.RC1
    
    2) org.springframework.batch:spring-batch-test:jar:2.1.0.RC1
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.springframework.batch -DartifactId=
    spring-batch-test -Dversion=2.1.0.RC1 -Dpackaging=jar -Dfile=/path/to/file
    
      Alternatively, if you host your own repository you can deploy the file there:
    
          mvn deploy:deploy-file -DgroupId=org.springframework.batch -DartifactId=sp
    ring-batch-test -Dversion=2.1.0.RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[
    url] -DrepositoryId=[id]
    
      Path to dependency:
            1) org.springframework.batch:spring-batch-samples:pom:pom:2.1.0.RC1
            2) org.springframework.batch:spring-batch-test:jar:2.1.0.RC1
    
    ----------
    2 required artifacts are missing.
    
    for artifact:
      org.springframework.batch:spring-batch-samples:pom:2.1.0.RC1
    
    from the specified remote repositories:
      SpringSource Enterprise Bundle Repository ? External Bundle Milestones (http:/
    /repository.springsource.com/maven/bundles/milestone, releases=true, snapshots=t
    rue),
      SpringSource Enterprise Bundle Repository ? SpringSource Bundle Releases (http
    ://repository.springsource.com/maven/bundles/release, releases=true, snapshots=t
    rue),
      SpringSource Enterprise Bundle Repository ? External Bundle Releases (http://r
    epository.springsource.com/maven/bundles/external, releases=true, snapshots=true
    ),
      objectstyle (http://objectstyle.org/maven2/, releases=true, snapshots=false),
      central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
    Indeed, http://repository.springsource.com/m...-2.1.0.RC1.jar doesn't exist.
    According to several sources I found on the net, RC artifacts should be available on the springsource milestone repository.
    Have I missed something or is there really a problem on the S3 side?

    regards,

    Fred Bricon

  • #2
    The project will build when using the following repositories instead :
    Code:
    <repositories>
    	<repository>
    		<id>SpringSource Enterprise Bundle Repository – External Bundle Milestones</id>
    		<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
    	</repository>
    	<repository>
    		<id>SpringSource Enterprise Bundle Repository – SpringSource Bundle Releases</id>
    		<url>http://s3.amazonaws.com/maven.springframework.org/release</url>
    	</repository>
    	<repository>
    		<id>SpringSource Enterprise Bundle Repository – External Bundle Releases</id>
    		<url>http://s3.amazonaws.com/maven.springframework.org/external</url>
    	</repository>	
    </repositories>

    PS : There's a duplicate *central* profile in spring-batch-parent. It won't build using maven 3.

    Comment


    • #3
      failed build with roo version 1.0.1

      Hi.

      I keep getting the following error. I'm trying to use roo version 1.0.1 [rev 601]

      Code:
      [INFO] Failed to resolve artifact.
      
      Missing:
      ----------
      1) com.sun:tools:jar:1.4.2
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command:
            mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.
      4.2 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there:
      
            mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.
      2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency:
              1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0
              2) com.sun:tools:jar:1.4.2
      
      ----------
      1 required artifact is missing.
      
      for artifact:
        org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0
      
      from the specified remote repositories:
        com.springsource.repository.bundles.milestone (http://s3.amazonaws.com/maven.s
      pringframework.org/milestone),
        com.springsource.repository.bundles.snapshot (http://repository.springsource.c
      om/maven/bundles/snapshot),
        com.springsource.repository.bundles.external (http://s3.amazonaws.com/maven.sp
      ringframework.org/external),
        codehaus.org (http://repository.codehaus.org),
        snapshots (http://snapshots.repository.codehaus.org),
        central (http://repo1.maven.org/maven2),
        com.springsource.repository.bundles.release (http://s3.amazonaws.com/maven.spr
      ingframework.org/release)
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 27 seconds
      [INFO] Finished at: Wed Feb 03 04:19:22 PST 2010
      [INFO] Final Memory: 11M/20M
      [INFO] ------------------------------------------------------------------------
      Here is what i have in my pom.

      Code:
      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      	<modelVersion>4.0.0</modelVersion>
      	<groupId>com.springsource.roo.demo.contacts</groupId>
      	<artifactId>contacts</artifactId>
      	<packaging>jar</packaging>
      	<version>0.1.0-SNAPSHOT</version>
      	<name>contacts</name>
      
      	<repositories>
      		<repository>
      			<id>com.springsource.repository.bundles.release</id>
      			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
      			<url>http://s3.amazonaws.com/maven.springframework.org/release</url>
      		</repository>
      		<repository>
      			<id>com.springsource.repository.bundles.external</id>
      			<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
      			<url>http://s3.amazonaws.com/maven.springframework.org/external</url>
      		</repository>
      		<repository>
      			<id>com.springsource.repository.bundles.milestone</id>
      			<name>SpringSource Enterprise Bundle Repository - External Bundle Milestones</name>
      			<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
      		</repository>
      		<!--  required for some plugins that depend on snapshots -->
      		<repository>
      			<id>com.springsource.repository.bundles.snapshot</id>
      			<name>SpringSource Enterprise Bundle Repository - External Bundle Snapshots</name>
      			<url>http://s3.amazonaws.com/maven.springframework.org/snapshot</url>
      		</repository>
      	</repositories>
      	
      	<pluginRepositories>
      		<pluginRepository>
      			<id>com.springsource.repository.bundles.release</id>
      			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
      			<url>http://repository.springsource.com/maven/bundles/release</url>
      		</pluginRepository>
      		<pluginRepository>
      			<id>com.springsource.repository.bundles.external</id>
      			<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
      			<url>http://repository.springsource.com/maven/bundles/external</url>
      		</pluginRepository>
      		<pluginRepository>
      			<id>com.springsource.repository.bundles.milestone</id>
      			<name>SpringSource Enterprise Bundle Repository - External Bundle Milestones</name>
      			<url>http://repository.springsource.com/maven/bundles/milestone</url>
      		</pluginRepository>	
      	</pluginRepositories>
      
      	<dependencies>
      		<!-- General dependencies for standard applications -->
      		<dependency>
      			<groupId>org.junit</groupId>
      			<artifactId>com.springsource.org.junit</artifactId>
      			<version>4.7.0</version>
      			<scope>test</scope>
      		</dependency>
      		<dependency>
      			<groupId>org.apache.log4j</groupId>
      			<artifactId>com.springsource.org.apache.log4j</artifactId>
      			<version>1.2.15</version>
      		</dependency>
      		<dependency>
      			<groupId>org.apache.commons</groupId>
      			<artifactId>com.springsource.org.apache.commons.logging</artifactId>
      			<version>1.1.1</version>
      		</dependency>
      Last edited by DebugMeNot; Feb 3rd, 2010, 06:26 AM. Reason: add code tags

      Comment


      • #4
        It might be an idea to ask in the Roo forum if that is what is causing the issue. Looks like it's stuck on the aspectj plugin, which expects you to be using a JDK with a standard layout. Make sure your JAVA_HOME points to a JDK (not a vanilla JRE)?

        Comment

        Working...
        X