Announcement Announcement Module
Collapse
No announcement yet.
Can't compile testdrive projects (1.0 release) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't compile testdrive projects (1.0 release)

    After changing into the testdrive directory and running 'mvn install' I'm getting the following errors:

    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring BlazeDS Integration Test Drive Web Application
    [INFO] task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources]
    [INFO] Using default encoding to copy filtered resources.
    Downloading: http://repository.sonatype.org/conte....0.RELEASE.pom
    Downloading: http://maven.ow2.org/maven2//org/spr....0.RELEASE.pom
    Downloading: http://repo1.maven.org/maven2/org/sp....0.RELEASE.pom
    Downloading: http://repository.sonatype.org/conte....0.RELEASE.jar
    Downloading: http://maven.ow2.org/maven2//org/spr....0.RELEASE.jar
    Downloading: http://repo1.maven.org/maven2/org/sp....0.RELEASE.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) org.springframework.flex:spring-flex:jar:1.0.0.RELEASE

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.springframework.flex -DartifactId=spring-flex -Dversion=1.0.0.RELEASE -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.flex -DartifactId=spring-flex -Dversion=1.0.0.RELEASE -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    Path to dependency:
    1) org.springframework.flex.samples:testdrive:war:1.0 .0.RELEASE
    2) org.springframework.flex:spring-flex:jar:1.0.0.RELEASE

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

    for artifact:
    org.springframework.flex.samples:testdrive:war:1.0 .0.RELEASE

    from the specified remote repositories:
    flex-mojos-repository (http://repository.sonatype.org/content/groups/public),
    central (http://repo1.maven.org/maven2),
    ObjectWEB (http://maven.ow2.org/maven2/)




    Following these instructions I manually installed the org.springframework.flex.jar file from the dist directory, but ran into another compile error afterwards about some unresolvable blazeds classes.

    So I decided to build the main project hoping that maven would pull in all blazeds dependencies. In the directory
    spring-flex-1.0.0.RELEASE/projects/org.springframework.flex
    I ran 'maven install' and got tons of errors about 1.3 source compliance and annotations, e.g.:

    /home/spod/frameworks/spring-flex-1.0.0.RELEASE/projects/org.springframework.flex/src/main/java/org/springframework/flex/core/EndpointConfigProcessor.java:[48,39] generics are not supported in -source 1.3
    (use -source 5 or higher to enable generics)
    public EndpointConfigProcessor(List<EndpointAdvisor> advisors) {


    Any ideas how to get this running would be appreciated.

  • #2
    Hi,
    to compile without pom modifications you can run

    mvn -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6 compile

    Comment


    • #3
      Until the release gets mirrored into the maven central repository, you just need to add our hosted repository either to the project pom or to your maven settings file:

      Code:
      <repository>
          <id>spring-release</id>
          <name>Spring Portfolio Release Repository</name>
          <url>http://s3.amazonaws.com/maven.springframework.org/release</url>
      </repository>
      Sorry for the confusion, the mirroring process can be a little slow.

      Comment

      Working...
      X