CDV ❯ scripts to deploy tc jars to local maven repository
-
New Feature
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
Build & Test
-
-
-
Reporter:
-
August 08, 2007
-
0
-
Watchers: 0
-
September 05, 2007
-
August 21, 2007
Description
From an e-mail message from Eugene:
We have been discussing how to help developers start using Terracotta with Maven.
Here is the list of things we may want to consider:
– Deploy static artifacts like jmxri-1.2.1.jar, jmxtools-1.2_8.jar, jmxremote-1.0.1_04.jar, jmxremote_optional-1.0.1_04-b58.jar and probably also tcconfigV1.jar and tcconfigV2.jar to the public Terracotta repository. – Create public snapshot repository for Terracotta and eventually deploy tc.jar and tcconfig-xmlbeans-generated.jar up there. – Deploy Maven plugins for Terracotta to public Terracotta repository (probably the snapshot one for now) – Terracotta dist should have scripts to install Terracotta artifacts to the local maven repository – tcbuild should provide target that would deploy tc.jar and tcconfig-xmlbeans-generated.jar to the local Maven repository
There is also some issues with the artifact naming for tcconfigV1.jar, tcconfigV2.jar and tcconfig-xmlbeans-generated.jar. Eric Redmond used the following artifact ids:
– org.terracotta.tcconfig-1.0-V1 (where V1 is classifier) – org.terracotta.tcconfig-2.0-V2 – org.terracotta.schemas-2.3-SNAPSHOT.jar
I am not completely sure that it is the right way to name them. Especially use of the classifier thing. So, I propose to use the following ids:
– org.terracotta.tcconfig1-1.0.jar (no classifier, but artifact id should be different, so we could have all of them in the same classpath) – org.terracotta.tcconfig2-2.0.jar – org.terracotta.tcconfig-2.3-SNAPSHOT.jar
Thoughts?
regards, Eugene
PS: here is script for windows I am using to install required Terracotta artifacts to the local Maven repository
set tc=C:\dev\terr\tc-trunk\code\base\build\dist\terracotta-trunk\lib set ver=2.4-SNAPSHOT
call mvn install:install-file -DgeneratePom=true -DgroupId=org.terracotta -DartifactId=terracotta -Dversion=%ver% -Dpackaging=jar -Dfile=%tc%\tc.jar
call mvn install:install-file -DgeneratePom=true -DgroupId=org.terracotta -DartifactId=tcconfig -Dversion=%ver% -Dpackaging=jar -Dfile=%tc%\tcconfig-xmlbeans-generated.jar
call mvn install:install-file -DgeneratePom=true -DgroupId=org.terracotta -DartifactId=tcconfig1 -Dversion=1.0 -Dpackaging=jar -Dfile=%tc%\tcconfigV1.jar echo. call mvn install:install-file -DgeneratePom=true -DgroupId=org.terracotta -DartifactId=tcconfig2 -Dversion=2.0 -Dpackaging=jar -Dfile=%tc%\tcconfigV2.jar
call mvn install:install-file -DgroupId=javax.management -DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=%tc%\jmxri-1.2.1.jar
call mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=%tc%\jmxtools-1.2_8.jar
call mvn install:install-file -DgroupId=javax.management -DartifactId=jmxremote -Dversion=1.0.1_04 -Dpackaging=jar -Dfile=%tc%\jmxremote-1.0.1_04.jar
call mvn install:install-file -DgroupId=javax.management -DartifactId=jmxremote_optional -Dversion=1.0.1_04 -Dpackaging=jar -Dfile=%tc%\jmxremote_optional-1.0.1_04-b58.jar