Announcement Announcement Module
Collapse
No announcement yet.
Problem whilst compiling spring-integration source Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem whilst compiling spring-integration source

    I encounter a problem that the maven complains the missing dependencies of aop and other jar files whilst compiling spring-tegration source. The spring-integration source is obtained from

    Code:
    svn co https://src.springframework.org/svn/spring-integration/trunk spring-integration
    The error include:
    Code:
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.springframework:spring-aop:jar:3.0.0.RC1
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command: 
          mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-aop -Dversion=3.0.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 -DartifactId=spring-aop -Dversion=3.0.0.RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
      Path to dependency: 
      	1) org.springframework.integration:spring-integration-core:jar:2.0.0.BUILD-SNAPSHOT
      	2) org.springframework:spring-aop:jar:3.0.0.RC1
    
    2) org.springframework:spring-context:jar:3.0.0.RC1
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command: 
          mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-context -Dversion=3.0.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 -DartifactId=spring-context -Dversion=3.0.0.RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
      Path to dependency: 
      	1) org.springframework.integration:spring-integration-core:jar:2.0.0.BUILD-SNAPSHOT
      	2) org.springframework:spring-context:jar:3.0.0.RC1
    
    3) org.springframework:spring-tx:jar:3.0.0.RC1
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command: 
          mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-tx -Dversion=3.0.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 -DartifactId=spring-tx -Dversion=3.0.0.RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
      Path to dependency: 
      	1) org.springframework.integration:spring-integration-core:jar:2.0.0.BUILD-SNAPSHOT
      	2) org.springframework:spring-tx:jar:3.0.0.RC1
    
    ----------
    3 required artifacts are missing.
    
    for artifact: 
      org.springframework.integration:spring-integration-core:jar:2.0.0.BUILD-SNAPSHOT
    
    from the specified remote repositories:
      com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
      glassfish (http://download.java.net/maven/glassfish),
      jboss (http://repository.jboss.org/maven2),
      central (http://repo1.maven.org/maven2),
      com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release)
    It looks like the problem that it can not find the spring-aop and other jar files which is 3.0.0 version. However, after searching on the internet and spring website. Seemingly the version available for compile at the moment is around 2.x. For instance, http://www.mvnrepository.com/artifac...ork/spring-aop shows the version is 2.5.6.

    Maven's is even older (It is 1.x)

    http://repo1.maven.org/maven2/spring/spring-aop/
    http://repo1.maven.org/maven2/spring...rk/spring-aop/

    Where can download the version 3.0 for those missing jar files?

    Thanks for help.

  • #2
    I believe spring-integration uses spring-build, not maven for building, so you won't be able to build the project from the pom.xml files. They are just used for dependency resolution by other projects.

    For reference, only final releases of Spring projects are uploaded to Maven central.Pre-release versions are stored in the maven.springframework.org repository. The path is org/springframework, in both cases. Those under "spring" on Maven central are not up to date.

    Comment


    • #3
      Luke is correct, we're using Spring Build, it's easier to follow the build instructions on the site than to try and use maven.

      I think it might also be enough if you just run against M1 or BUILD-SNAPSHOT. You might like to read this before you start.

      Comment

      Working...
      X