PDA

View Full Version : Milestone2 in combination with Maven



winter
Apr 16th, 2009, 04:33 AM
Hi,

I want to use the current Milestone2 with Maven. Is there already a repository available?

Thanks for your help!

jeremyg484
Apr 16th, 2009, 08:19 AM
It is available in the SpringSource bundle repository at http://repository.springsource.com/maven/bundles/milestone

(You can browse the repository with the following URL: http://s3browse.com/explore/repository.springsource.com/maven/bundles/milestone)

winter
Apr 16th, 2009, 08:44 AM
Great! Maybe there is a little project example (with a pom file)?

Is it necessary to use Spring 3 or does spring-blazeds-integration also work with 2.5?

jeremyg484
Apr 16th, 2009, 11:09 AM
It should work with 2.5. We removed the Spring 3.0 requirement early on when it was realized we would likely be ready to release 1.0 before Spring 3.0 is complete.

winter
Apr 20th, 2009, 08:47 AM
Using following:
---
<dependency>
<groupId>org.springframework.flex</groupId>
<artifactId>org.springframework.flex</artifactId>
<version>1.0.0.M2</version>
</dependency>
---

does cause an error:
---
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) edu.emory.mathcs.backport:com.springsource.edu.emo ry.mathcs.backport:jar:2.2.0
...


Is the only way to get it run installing it manually? Thx!

winter
Apr 20th, 2009, 09:17 AM
ok, using following in your pom does help:

---
<repository>
<id>springsource-repository-external</id>
<url>http://repository.springsource.com/maven/bundles/external/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>springsource-repository-release</id>
<url>http://repository.springsource.com/maven/bundles/release</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
---

blmiller
Apr 28th, 2009, 10:32 AM
I've been trying the maven repo listed above for the past two days

(http://repository.springsource.com/maven/bundles/milestone)

but it appears to be down. Has it moved? Or just down?

Thanks,
Brad

blmiller
Apr 28th, 2009, 10:49 AM
Turns out that the spring maven repos are not browsable via browser. Real problem is that I was only including the spring 'external' and 'repository' repos, and had forgotten to include the 'milestone' repo as well (need all three). New maven repository configuration is below, in case it helps someone...

- Brad

<repositories>
<repository>
<id>springsource-repository-milestone</id>
<url>http://repository.springsource.com/maven/bundles/milestone/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>springsource-repository-external</id>
<url>http://repository.springsource.com/maven/bundles/external/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>springsource-repository-release</id>
<url>http://repository.springsource.com/maven/bundles/release</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>