[arquillian-core] Initial import (#824838).

lgao lgao at fedoraproject.org
Thu Jun 7 05:08:14 UTC 2012


commit 243744cd8f993095ebcdaacc64e450fb14bd8d64
Author: Lin Gao <lgao at redhat.com>
Date:   Thu Jun 7 12:59:46 2012 +0800

    Initial import (#824838).

 .gitignore                                    |    1 +
 arquillian-core-ejb-api.patch                 |   13 ++
 arquillian-core-protocols-servlet-test.patch  |   39 +++++
 arquillian-core-shrinkwrap-resolver-bom.patch |   21 +++
 arquillian-core-weld-build-config.patch       |   17 ++
 arquillian-core.spec                          |  222 +++++++++++++++++++++++++
 sources                                       |    1 +
 7 files changed, 314 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4c6da51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/arquillian-core-1.0.1.Final.tar.xz
diff --git a/arquillian-core-ejb-api.patch b/arquillian-core-ejb-api.patch
new file mode 100644
index 0000000..c1575fe
--- /dev/null
+++ b/arquillian-core-ejb-api.patch
@@ -0,0 +1,13 @@
+diff --git a/testenrichers/ejb/pom.xml b/testenrichers/ejb/pom.xml
+index 63a4e08..324d043 100644
+--- a/testenrichers/ejb/pom.xml
++++ b/testenrichers/ejb/pom.xml
+@@ -48,7 +48,7 @@
+         </dependency>
+         <dependency>
+             <groupId>javax.ejb</groupId>
+-            <artifactId>ejb-api</artifactId>
++            <artifactId>ejb</artifactId>
+             <version>3.0</version>
+             <scope>provided</scope>
+         </dependency>
diff --git a/arquillian-core-protocols-servlet-test.patch b/arquillian-core-protocols-servlet-test.patch
new file mode 100644
index 0000000..d508a58
--- /dev/null
+++ b/arquillian-core-protocols-servlet-test.patch
@@ -0,0 +1,39 @@
+diff --git a/protocols/servlet/pom.xml b/protocols/servlet/pom.xml
+index ad5a2f1..af77f36 100644
+--- a/protocols/servlet/pom.xml
++++ b/protocols/servlet/pom.xml
+@@ -69,10 +69,32 @@
+             <artifactId>junit</artifactId>
+             <scope>test</scope>
+         </dependency>
+-        <dependency>
++        <!--dependency>
+             <groupId>org.mortbay.jetty</groupId>
+             <artifactId>jetty-embedded</artifactId>
+             <scope>test</scope>
+-        </dependency>
++        </dependency-->
+     </dependencies>
++
++    <build>
++      <plugins>
++        <plugin>
++            <groupId>org.apache.maven.plugins</groupId>
++            <artifactId>maven-compiler-plugin</artifactId>
++            <executions>
++                <execution>
++                    <id>default-testCompile</id>
++                    <phase>test-compile</phase>
++                    <goals>
++                        <goal>testCompile</goal>
++                    </goals>
++                    <configuration>
++                        <skip>true</skip>
++                    </configuration>
++                </execution>
++            </executions>
++        </plugin>
++      </plugins>
++    </build>
++
+ </project>
diff --git a/arquillian-core-shrinkwrap-resolver-bom.patch b/arquillian-core-shrinkwrap-resolver-bom.patch
new file mode 100644
index 0000000..f3144d0
--- /dev/null
+++ b/arquillian-core-shrinkwrap-resolver-bom.patch
@@ -0,0 +1,21 @@
+diff --git a/bom/pom.xml b/bom/pom.xml
+index 003bae5..a5e27cd 100644
+--- a/bom/pom.xml
++++ b/bom/pom.xml
+@@ -210,14 +210,14 @@
+                 <scope>import</scope>
+             </dependency>
+ 
+-            <!-- ShrinkWrap Resolver -->
++            <!-- ShrinkWrap Resolver 
+             <dependency>
+                 <groupId>org.jboss.shrinkwrap.resolver</groupId>
+                 <artifactId>shrinkwrap-resolver-bom</artifactId>
+                 <version>${version.shrinkwrap_resolver}</version>
+                 <type>pom</type>
+                 <scope>import</scope>
+-            </dependency>
++           </dependency-->
+ 
+             <!-- ShrinkWrap Descriptors -->
+             <dependency>
diff --git a/arquillian-core-weld-build-config.patch b/arquillian-core-weld-build-config.patch
new file mode 100644
index 0000000..ff7efc7
--- /dev/null
+++ b/arquillian-core-weld-build-config.patch
@@ -0,0 +1,17 @@
+diff --git a/testenrichers/cdi/pom.xml b/testenrichers/cdi/pom.xml
+index cd834f2..2e79631 100644
+--- a/testenrichers/cdi/pom.xml
++++ b/testenrichers/cdi/pom.xml
+@@ -98,6 +98,12 @@
+             <artifactId>weld-core</artifactId>
+             <version>${version.weld-core}</version>
+             <scope>test</scope>
++            <exclusions>
++              <exclusion>
++                <groupId>org.jboss.weld</groupId>
++                <artifactId>weld-build-config</artifactId>
++              </exclusion>
++            </exclusions>
+         </dependency>
+         <dependency>
+             <groupId>org.slf4j</groupId>
diff --git a/arquillian-core.spec b/arquillian-core.spec
new file mode 100644
index 0000000..51f1a0b
--- /dev/null
+++ b/arquillian-core.spec
@@ -0,0 +1,222 @@
+%global namedreltag .Final
+%global namedversion %{version}%{?namedreltag}
+
+Name:           arquillian-core
+Version:        1.0.1
+Release:        1%{?dist}
+Summary:        Arquillian is a revolutionary testing platform built on the JVM
+Group:          Development/Libraries
+License:        ASL 2.0
+URL:            http://www.jboss.org/arquillian
+
+# git clone https://github.com/arquillian/arquillian-core.git arquillian-core-1.0.0.Final
+# cd arquillian-core-1.0.1.Final && git archive --format=tar --prefix=arquillian-core-1.0.1.Final/ 1.0.1.Final | xz > ../arquillian-core-1.0.1.Final.tar.xz
+Source0:       %{name}-%{namedversion}.tar.xz
+
+# Do not do testCompile for protocols/servlet module
+# because it depends on org.mortbay.jetty. 
+# We only have org.eclipse.jetty in Fedora
+Patch0:           %{name}-protocols-servlet-test.patch
+
+# comment out shrinkwrap-resolver-bom dependency from <dependencyManagement> tag,
+# because it is not used and we don't have shrinkwrap-resolver in Fedora yet.
+Patch1:           %{name}-shrinkwrap-resolver-bom.patch
+
+# execlude weld-build-config from weld-core dependency which is in test scope.
+# because it is not used and we don't have it in Fedora
+Patch2:           %{name}-weld-build-config.patch
+
+# change dependency: javax.ejb:ejb-api to javax.ejb:ejb
+# because we use this name in Fedora now provided by geronimo-ejb package
+Patch3:           %{name}-ejb-api.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    maven
+BuildRequires:    jboss-parent
+
+BuildRequires:    maven-compiler-plugin
+BuildRequires:    maven-install-plugin
+BuildRequires:    maven-jar-plugin
+BuildRequires:    maven-javadoc-plugin
+BuildRequires:    maven-release-plugin
+BuildRequires:    maven-resources-plugin
+BuildRequires:    maven-source-plugin
+BuildRequires:    maven-surefire-plugin
+BuildRequires:    maven-surefire-provider-junit4
+BuildRequires:    maven-surefire-provider-testng
+BuildRequires:    maven-enforcer-plugin
+
+BuildRequires:    apiviz
+BuildRequires:    junit4
+
+BuildRequires:    shrinkwrap
+BuildRequires:    shrinkwrap-descriptors
+BuildRequires:    cdi-api
+BuildRequires:    weld-core
+BuildRequires:    weld-parent
+BuildRequires:    slf4j
+BuildRequires:    testng
+BuildRequires:    geronimo-ejb
+BuildRequires:    geronimo-annotation
+BuildRequires:    jboss-el-2.2-api
+BuildRequires:    mockito
+BuildRequires:    jboss-logging
+BuildRequires:    jboss-logmanager
+BuildRequires:    jboss-servlet-3.0-api
+
+Requires:    shrinkwrap-descriptors
+Requires:    junit4
+Requires:    shrinkwrap
+Requires:    jboss-logging
+Requires:    jboss-logmanager
+Requires:    jboss-servlet-3.0-api
+Requires:    cdi-api
+Requires:    geronimo-ejb
+Requires:    geronimo-annotation
+Requires:    testng
+Requires:    jpackage-utils
+
+%description
+Arquillian is a revolutionary testing platform built on the JVM that
+substantially reduces the effort required to write and execute Java 
+middleware integration and functional tests. No more mocks. 
+No more container lifecycle and deployment hassles. Just real tests!
+
+
+%package javadoc
+Summary:          Javadocs for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q  -n %{name}-%{namedversion}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+%build
+export MAVEN_OPTS="-Xms256m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m"
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+
+for m in config-api \
+         config-impl-base \
+         config-spi \
+         container-impl-base \
+         container-spi \
+         container-test-api \
+         container-test-spi \
+         container-test-impl-base \
+         core-api \
+         core-spi \
+         core-impl-base \
+         junit-container \
+         junit-core \
+         junit-standalone \
+         test-api \
+         test-spi \
+         test-impl-base \
+         testng-container \
+         testng-core \
+         testng-standalone \
+         ; do
+         # module path
+         mp=`echo ${m} | sed "s/\-/\//"`;
+         # JAR
+         install -pm 644 ${mp}/target/arquillian-${m}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/arquillian-${m}.jar
+         # POM
+         install -pm 644 ${mp}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-${m}.pom
+         # DEPMAP
+         %add_maven_depmap JPP.%{name}-arquillian-${m}.pom %{name}/arquillian-${m}.jar
+done
+
+for m in protocols-jmx \
+         protocols-servlet \
+         testenrichers-cdi \
+         testenrichers-ejb \
+         testenrichers-initialcontext \
+         testenrichers-resource \
+         ; do
+         # module path
+         mp=`echo ${m} | sed "s/\-/\//"`;
+         # module name, without 's'
+         mn=`echo ${m} | sed "s/s\-/\-/"`;
+         # JAR
+         install -pm 644 ${mp}/target/arquillian-${mn}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/arquillian-${mn}.jar
+         # POM
+         install -pm 644 ${mp}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-${mn}.pom
+         # DEPMAP
+         %add_maven_depmap JPP.%{name}-arquillian-${mn}.pom %{name}/arquillian-${mn}.jar
+done
+
+
+# POMs and DEPMAP
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-parent.pom
+install -pm 644 bom/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-bom.pom
+%add_maven_depmap JPP.%{name}-arquillian-bom.pom
+install -pm 644 build/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-build.pom
+%add_maven_depmap JPP.%{name}-arquillian-build.pom
+
+## config parent
+install -pm 644 config/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-config-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-config-parent.pom
+
+## container parent
+install -pm 644 container/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-container-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-container-parent.pom
+
+## core parent
+install -pm 644 core/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-core-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-core-parent.pom
+
+## junit parent
+install -pm 644 junit/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-junit-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-junit-parent.pom
+
+## protocols parent
+install -pm 644 protocols/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-protocols-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-protocols-parent.pom
+
+## test parent
+install -pm 644 test/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-test-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-test-parent.pom
+
+## testenrichers parent
+install -pm 644 testenrichers/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-testenrichers-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-testenrichers-parent.pom
+
+## testng parent
+install -pm 644 testng/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-testng-parent.pom
+%add_maven_depmap JPP.%{name}-arquillian-testng-parent.pom
+
+# Javadoc
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}/*.jar
+%{_mavenpomdir}/JPP.%{name}-*.pom
+%{_mavendepmapfragdir}/%{name}
+%doc license.txt apl.txt readme.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc license.txt apl.txt
+
+
+%changelog
+* Wed Jun 06 2012 Lin Gao <lgao at redhat.com> 1.0.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..a487530 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8ef2b4c0496fbb4133f45fbc6fa69065  arquillian-core-1.0.1.Final.tar.xz


More information about the scm-commits mailing list