summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Lee <crazybob@crazybob.org>2009-10-13 23:08:31 +0000
committerBob Lee <crazybob@crazybob.org>2009-10-13 23:08:31 +0000
commit9ebe317ba4591536088edcf00c1796158f3112b3 (patch)
treebbc2541c450af1f687a252ca01eaa41843cd5363
parent294cc651f3a0012b46dabda4c28da6b538f8c099 (diff)
downloadplatform_external_jsr330-9ebe317ba4591536088edcf00c1796158f3112b3.tar.gz
platform_external_jsr330-9ebe317ba4591536088edcf00c1796158f3112b3.tar.bz2
platform_external_jsr330-9ebe317ba4591536088edcf00c1796158f3112b3.zip
Updated build script to build Maven bundle.
git-svn-id: https://atinject.googlecode.com/svn/trunk@63 3bc8319c-20ab-11de-9edc-3f40a397ab60
-rwxr-xr-xbuild.sh9
-rw-r--r--pom.xml58
2 files changed, 28 insertions, 39 deletions
diff --git a/build.sh b/build.sh
index 14f484a..66cf621 100755
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,5 @@
NAME=javax.inject
+VERSION=1
# Clear and recreate build directory.
rm -r build
@@ -47,3 +48,11 @@ jar cfM build/tck/dist/$NAME-tck.jar -C build/tck/classes .
jar cfM build/$NAME.zip -C build/dist .
jar cfM build/$NAME-tck.zip -C build/tck/dist .
+
+# Build Maven bundle.
+mkdir build/maven
+cp build/dist/$NAME.jar build/maven/$NAME-$VERSION.jar
+cp build/dist/$NAME-src.zip build/maven/$NAME-$VERSION-sources.jar
+cp build/dist/$NAME-javadoc.zip build/maven/$NAME-$VERSION-javadoc.jar
+cp pom.xml build/maven
+jar cfM build/$NAME-$VERSION-bundle.jar -C build/maven .
diff --git a/pom.xml b/pom.xml
index 96d4cd9..79c0cca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,40 +1,20 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>javax.inject</groupId>
- <artifactId>javax.inject</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>Javax Inject from the JSR-330 Expert Group</name>
-
- <build>
- <sourceDirectory>src</sourceDirectory>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <bottom><![CDATA[<font size='-1'>Copyright (C) 2009 <a href='http://code.google.com/p/atinject/'>\
- The JSR-330 Expert Group</a>. \
- Licensed under the <a href='http://www.apache.org/licenses/LICENSE-2.0'>Apache \
- License</a>, Version 2.0.</font>]]></bottom>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>javax.inject</groupId>
+ <artifactId>javax.inject</artifactId>
+ <packaging>jar</packaging>
+ <name>javax.inject</name>
+ <version>1</version>
+ <description>The javax.inject API</description>
+ <url>http://code.google.com/p/atinject/</url>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <url>http://code.google.com/p/atinject/source/checkout</url>
+ </scm>
</project>