From 93444cb838d1ef7d07cd307b41894fea40e3a985 Mon Sep 17 00:00:00 2001 From: Sean Flanigan Date: Tue, 10 Feb 2015 16:28:29 +1000 Subject: [PATCH] Eliminate all BOMs except jboss-javaee-6.0 --- functional-test/pom.xml | 41 ++- pom.xml | 295 +++++++++++++----- zanata-model/pom.xml | 7 +- zanata-war/pom.xml | 162 +++++----- .../main/java/org/zanata/dao/ActivityDAO.java | 1 - 5 files changed, 336 insertions(+), 170 deletions(-) diff --git a/functional-test/pom.xml b/functional-test/pom.xml index 94f54aebf8..e692a7eaba 100644 --- a/functional-test/pom.xml +++ b/functional-test/pom.xml @@ -65,8 +65,8 @@ 2552 org.jboss.as - jboss-as-ejb-client-bom - 7.1.1.Final + jboss-as-controller-client + 7.2.0.Final standalone.xml @@ -219,6 +219,7 @@ org.jboss.resteasy jaxrs-api + ${resteasy.scope} @@ -248,17 +249,33 @@ org.jboss.resteasy resteasy-jaxb-provider + + + javax.xml.bind + jaxb-api + + + org.jboss.logging + jboss-logging + + org.zanata zanata-adapter-po + + + javax.xml.bind + jaxb-api + + - javax.xml.bind - jaxb-api + org.jboss.spec.javax.xml.bind + jboss-jaxb-api_2.2_spec @@ -274,13 +291,25 @@ ${jndi-remote-client.groupId} ${jndi-remote-client.artifactId} ${jndi-remote-client.version} - pom test + + + javax.xml.bind + jaxb-api + + org.jboss jboss-remote-naming + 2.0.1.Final test + + + org.jboss.remoting + jboss-remoting + + @@ -336,7 +365,7 @@ standalone_wildfly.xml org.wildfly - wildfly-ejb-client-bom + wildfly-controller-client ${wildfly.version} diff --git a/pom.xml b/pom.xml index d625905128..5d811459d0 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,7 @@ 50.1.1 ${project.build.sourceDirectory}/org/zanata 3.6.2 + ${lucene.version} 2.3.1.Final 1.2.1 0.22 @@ -41,29 +42,29 @@ 4.5.0.Final + 1.1.5.Final + 1.2.2 + 2.0.0 2.0.0-alpha-5 provided - - 4.2.8.Final + 4.2.17.Final compile - 4.4.2.Final + + 4.4.4.Final ${hibernate.version} false - 4.3.1.Final + 4.3.2.Final ${project.build.directory}/concordion - + 7.2.0.Final mysql @@ -71,6 +72,7 @@ 5.1.26 compile + 2.3.7.Final ${project.build.directory}/cargo/installs @@ -81,37 +83,22 @@ - org.jboss.shrinkwrap - shrinkwrap-bom - 1.2.2 - import - pom - - - - - org.jboss.shrinkwrap.resolver - shrinkwrap-resolver-bom - 2.0.0 - import - pom + shrinkwrap-api + ${shrinkwrap.api.version} - org.jboss.arquillian - arquillian-bom - 1.1.5.Final - import - pom + org.jboss.shrinkwrap + shrinkwrap-impl-base + ${shrinkwrap.api.version} - org.jboss.spec.javax.servlet - jboss-servlet-api_3.0_spec - 1.0.1.Final + org.jboss.shrinkwrap + shrinkwrap-spi + ${shrinkwrap.api.version} @@ -120,43 +107,96 @@ 1.13 - - org.jboss.resteasy - resteasy-bom - ${resteasy.version} + org.richfaces + richfaces + ${richfaces.version} + + + + org.jboss.spec + jboss-javaee-6.0 + 3.0.2.Final pom import - - org.richfaces - richfaces - ${richfaces.version} + antlr + antlr + 2.7.7 + provided + + commons-codec + commons-codec + 1.9 + - - org.jboss.as - jboss-as-parent - ${jboss.as.version} - pom - import + dom4j + dom4j + 1.6.1 + provided + + + xml-apis + xml-apis + + + + + + com.sun.faces + jsf-impl + 2.1.28 + provided - org.jboss.seam - bom + jboss-seam + ejb + ${seam.version} + + + javax.el + el-api + + + + + + org.jboss.seam + jboss-seam-debug + ${seam.version} + + + + org.jboss.seam + jboss-seam-mail ${seam.version} - pom - import + + + + org.jboss.seam + jboss-seam-ui + ${seam.version} + + + + org.jboss.security + jboss-negotiation-common + 2.3.6.Final + provided + + + + org.jboss.web + jbossweb + 7.5.4.Final + provided @@ -171,10 +211,16 @@ + + org.apache.httpcomponents + httpclient + 4.4 + + org.apache.httpcomponents httpcore - 4.2.3 + 4.4 @@ -298,14 +344,52 @@ zanata-common-api ${zanata.api.version} + + javax.annotation + jsr250-api + javax.servlet servlet-api + + javax.xml.bind + jaxb-api + + + org.jboss.resteasy + resteasy-jaxb-provider + + + org.jboss.resteasy + resteasy-jaxrs + + + org.jboss.resteasy + resteasy-multipart-provider + + + + + + org.zanata + zanata-common-api + ${zanata.api.compat.version} + compat + test + javax.annotation jsr250-api + + javax.servlet + servlet-api + + + javax.xml.bind + jaxb-api + @@ -567,13 +651,6 @@ 0.9.14 - - org.hibernate - hibernate-search - ${hibernate.search.version} - ${hibernate.search.scope} - - org.hibernate hibernate-search-orm @@ -586,6 +663,12 @@ hibernate-search-engine ${hibernate.search.version} ${hibernate.search.scope} + + + org.jboss.logging + jboss-logging + + @@ -599,18 +682,31 @@ org.hibernate.common hibernate-commons-annotations 4.0.4.Final + + + org.jboss.logging + jboss-logging + + org.hibernate hibernate-core ${hibernate.version} + + + org.jboss.logging + jboss-logging + + org.hibernate hibernate-ehcache ${hibernate.version} + @@ -629,6 +725,12 @@ org.hibernate hibernate-validator ${hibernate.validator.version} + + + org.jboss.logging + jboss-logging + + @@ -643,12 +745,6 @@ 3.18.2-GA - - org.jboss.el - jboss-el - 1.0_02.CR6 - - org.jboss.logging jboss-logging @@ -686,11 +782,47 @@ + + org.apache.lucene + lucene-core + ${lucene.version} + + + + org.apache.lucene + lucene-analyzers + ${lucene.version} + + + + org.apache.lucene + lucene-facet + ${lucene.version} + + + + org.apache.lucene + lucene-phonetic + ${lucene.version} + + + + org.apache.lucene + lucene-smartcn + ${lucene.version} + + + + org.apache.lucene + lucene-stempel + ${lucene.version} + + org.apache.solr solr-core - 3.6.2 + ${solr.version} commons-httpclient @@ -726,7 +858,7 @@ org.apache.solr solr-solrj - 3.6.2 + ${solr.version} commons-httpclient @@ -738,7 +870,11 @@ - + + org.apache.solr + solr-analysis-extras + ${solr.version} + net.customware.gwt.presenter gwt-presenter @@ -759,13 +895,6 @@ - - javax.validation - validation-api - 1.0.0.GA - compile - - org.concordion concordion @@ -930,6 +1059,18 @@ + + javax.annotation:jsr250-api + + + javax.el:el-api + + + javax.xml.bind:jaxb-api + + + org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec + org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec diff --git a/zanata-model/pom.xml b/zanata-model/pom.xml index c0bdb4498b..85e8ddc087 100644 --- a/zanata-model/pom.xml +++ b/zanata-model/pom.xml @@ -34,7 +34,6 @@ org.projectlombok:lombok - org.hibernate:hibernate-search @@ -190,15 +189,11 @@ org.apache.lucene lucene-core - - ${lucene.version} org.apache.lucene lucene-analyzers - - ${lucene.version} @@ -253,7 +248,7 @@ org.hibernate - hibernate-search + hibernate-search-orm diff --git a/zanata-war/pom.xml b/zanata-war/pom.xml index 2726dfd38e..b55c08662e 100644 --- a/zanata-war/pom.xml +++ b/zanata-war/pom.xml @@ -102,7 +102,7 @@ - javax.xml.bind:jaxb-api + org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec com.mattbertolini:liquibase-slf4j org.opensymphony.quartz:quartz @@ -110,8 +110,6 @@ org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api org.jboss.resteasy:resteasy-multipart-provider - - com.google.protobuf:protobuf-java com.lowagie:itext @@ -121,22 +119,19 @@ com.google.guava:guava-gwt - - javax.el:el-api + + org.jboss.spec.javax.el:jboss-el-api_2.2_spec javax.servlet.jsp:jsp-api com.sun.faces:jsf-impl org.apache.solr:solr-core org.apache.solr:solr-solrj - - org.drools:drools-compiler org.antlr:antlr org.hibernate.common:hibernate-commons-annotations org.hibernate:hibernate-ehcache org.hibernate:hibernate-search-analyzers - org.hibernate:hibernate-search org.hibernate:hibernate-testing org.jboss.arquillian.junit:arquillian-junit-container @@ -162,7 +157,9 @@ - + + + com.ning.maven.plugins @@ -175,32 +172,16 @@ + + META-INF/.* com/lowagie/text/pdf/fonts/cmap_info.txt - - META-INF/components.xml - - META-INF/faces-config.xml - - META-INF/javamail.providers - - META-INF/richfaces/resource-mappings.properties - - META-INF/seam-deployment.properties build.properties seam.properties - - - validate - - check - - - @@ -1110,6 +1091,7 @@ org.jboss.as jboss-as-arquillian-common + ${jboss.as.version} test @@ -1136,14 +1118,28 @@ + + org.jboss.osgi.metadata + jbosgi-metadata + 2.2.0.Final + + + + org.jboss.osgi.vfs + jbosgi-vfs30 + 1.2.1.Final + + org.jboss.as jboss-as-controller-client + ${jboss.as.version} test org.jboss.as jboss-as-controller + ${jboss.as.version} test @@ -1289,6 +1285,12 @@ org.zanata zanata-adapter-po + + + javax.xml.bind + jaxb-api + + @@ -1307,8 +1309,8 @@ org.zanata zanata-common-api - ${zanata.api.compat.version} compat + test @@ -1356,6 +1358,7 @@ org.jboss.resteasy resteasy-jaxrs + ${resteasy.version} ${resteasy.scope} @@ -1376,6 +1379,12 @@ org.jboss.resteasy resteasy-jaxb-provider ${resteasy.scope} + + + javax.xml.bind + jaxb-api + + org.jboss.resteasy @@ -1389,12 +1398,16 @@ ${resteasy.scope} - - servlet-api - - - javax.servlet - + javax.servlet + servlet-api + + + org.jboss.logging + jboss-logging + + + org.jboss.resteasy + resteasy-jaxrs @@ -1424,38 +1437,11 @@ org.jboss jboss-dmr + 1.2.1.Final test - - - - org.drools - drools-core - - - com.google.protobuf - protobuf-java - - - org.drools - drools-compiler - - - ecj - org.eclipse.jdt.core.compiler - - - org.antlr - antlr - - - antlr - antlr - - - - + org.antlr antlr @@ -1466,13 +1452,11 @@ antlr antlr - provided dom4j dom4j - provided @@ -1503,7 +1487,6 @@ com.sun.faces jsf-impl - provided @@ -1535,6 +1518,10 @@ ejb3-persistence org.hibernate + + org.jboss.logging + jboss-logging + @@ -1744,10 +1731,9 @@ solr-solrj - org.hibernate - hibernate-search + hibernate-search-orm org.hibernate @@ -1773,19 +1759,16 @@ org.hibernate.javax.persistence hibernate-jpa-2.0-api + provided org.hibernate hibernate-search-engine - - org.hibernate - hibernate-search-orm - - javax.el - el-api + org.jboss.spec.javax.el + jboss-el-api_2.2_spec provided @@ -1854,13 +1837,11 @@ org.jboss.web jbossweb - provided org.jboss.security jboss-negotiation-common - provided @@ -1904,62 +1885,74 @@ org.jboss.shrinkwrap.resolver shrinkwrap-resolver-api-maven + ${shrinkwrap.resolver.version} test org.jboss.shrinkwrap.resolver shrinkwrap-resolver-api + ${shrinkwrap.resolver.version} test org.jboss.arquillian.config arquillian-config-api + ${arquillian.version} test org.jboss.arquillian.container arquillian-container-test-api + ${arquillian.version} test org.jboss.arquillian.container arquillian-container-test-impl-base + ${arquillian.version} test org.jboss.arquillian.container arquillian-container-spi + ${arquillian.version} test org.jboss.arquillian.core arquillian-core-spi + ${arquillian.version} test org.jboss.arquillian.core arquillian-core-api + ${arquillian.version} test org.jboss.arquillian.junit arquillian-junit-container + ${arquillian.version} test org.jboss.arquillian.junit arquillian-junit-core + ${arquillian.version} test org.jboss.arquillian.test arquillian-test-api + ${arquillian.version} test org.jboss.arquillian.test arquillian-test-spi + ${arquillian.version} test @@ -1989,6 +1982,7 @@ org.jboss.arquillian.protocol arquillian-protocol-servlet + ${arquillian.version} test @@ -2068,6 +2062,12 @@ org.apache.httpcomponents httpclient + + + commons-logging + commons-logging + + @@ -2151,11 +2151,12 @@ org.jboss.resteasy jaxrs-api + ${resteasy.version} ${resteasy.scope} - javax.xml.bind - jaxb-api + org.jboss.spec.javax.xml.bind + jboss-jaxb-api_2.2_spec provided @@ -2224,9 +2225,10 @@ - javax.xml.bind - jaxb-api + org.jboss.spec.javax.xml.bind + jboss-jaxb-api_2.2_spec sources + 1.0.4.Final provided diff --git a/zanata-war/src/main/java/org/zanata/dao/ActivityDAO.java b/zanata-war/src/main/java/org/zanata/dao/ActivityDAO.java index 9d396ba634..fb896c4223 100644 --- a/zanata-war/src/main/java/org/zanata/dao/ActivityDAO.java +++ b/zanata-war/src/main/java/org/zanata/dao/ActivityDAO.java @@ -29,7 +29,6 @@ import org.jboss.seam.annotations.AutoCreate; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; -import org.zanata.apicompat.common.ContentState; import org.zanata.common.ActivityType; import org.zanata.model.Activity; import org.zanata.model.type.EntityType;