Permalink
Browse files

Mavenize the ted-api project.

Now builds a ted-api.jar and installs it to your local maven
repository. Also Ivy now uses the local maven repository to load this
jar.
  • Loading branch information...
1 parent 38a7a05 commit 5f194d9a62da184a1a27f8a3892d9d2874cc6fc6 @KenMacD KenMacD committed Mar 20, 2010
Showing with 34 additions and 3 deletions.
  1. +2 −0 ivy.xml
  2. +31 −0 ivysettings.xml
  3. +1 −3 ted-api/README
  4. 0 ted-api/{ → src/main/thrift}/ted.thrift
View
@@ -1,6 +1,8 @@
<ivy-module version="2.0">
<info organisation="nu.ted" module="Ted" />
<dependencies>
+ <dependency org="nu.ted" name="ted-api" rev="0.1-SNAPSHOT" changing="true"/>
+
<!-- From Thrift -->
<dependency org="org.slf4j" name="slf4j-api" rev="1.5.8" conf="* -> *,!sources,!javadoc"/>
<dependency org="org.slf4j" name="slf4j-simple" rev="1.5.8" conf="* -> *,!sources,!javadoc"/>
View
@@ -5,13 +5,44 @@
<include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
+ <!-- These patterns would be useful if ivy detected changes in anything
+ other then ibiblio
+ -->
+ <!--
+ <property name="local-maven2-pattern"
+ value="file:${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision].[ext]"
+ override="false" />
+ <property name="local-maven2-pattern"
+ value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision].[ext]"
+ override="false" />
+ -->
+
<resolvers>
<ibiblio name="artifactory" m2compatible="true"
root="http://code.kmdconsulting.ca/artifactory/repo/"/>
+ <ibiblio name="local-maven2" m2compatible="true"
+ root="file:${user.home}/.m2/repository/"
+ checkmodified="true"
+ changingPattern=".*-SNAPSHOT"/>
+
+ <!--
+ <url name="local-maven2" m2compatible="true">
+ <ivy pattern="${local-maven2-pattern}"/>
+ <artifact pattern="${local-maven2-pattern}"/>
+ </url>
+ <filesystem name="local-maven2" m2compatible="true"
+ transactional="false" local="true"
+ checkmodified="true"
+ changingPattern=".*-SNAPSHOT">
+ <artifact pattern="${local-maven2-pattern}"/>
+ </filesystem>
+ -->
+
</resolvers>
<resolvers>
<chain name="libraries" returnFirst="false">
+ <resolver ref="local-maven2"/>
<resolver ref="public"/>
<resolver ref="artifactory" />
</chain>
View
@@ -1,3 +1 @@
-Run ./ted.thrift to generate Java and Python code.
-
-Java code is currently copied by hand to the ted-server project.
+Run 'mvn -P thrift' to build and install the ted-api jar.
File renamed without changes.

0 comments on commit 5f194d9

Please sign in to comment.