Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
[maven-release-plugin] prepare release v1.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdathuraliya committed Sep 21, 2015
1 parent c491b4e commit 69b9f4e
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 106 deletions.
117 changes: 53 additions & 64 deletions modules/distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
~ under the License.
-->

<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">
<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">

<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>ml-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -126,63 +124,57 @@
</goals>
<configuration>
<tasks>
<property name="tempdir" value="target/docs-temp"/>
<mkdir dir="${tempdir}"/>
<property name="tempdir" value="target/docs-temp" />
<mkdir dir="${tempdir}" />
<unzip dest="${tempdir}">
<fileset dir="target">
<include name="${project.artifactId}-${ml.version}.zip"/>
<include name="${project.artifactId}-${ml.version}.zip" />
</fileset>
</unzip>

<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/"
overwrite="false">
<fileset
dir="${tempdir}/${project.artifactId}-${ml.version}/repository/components/">
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/" overwrite="false">
<fileset dir="${tempdir}/${project.artifactId}-${ml.version}/repository/components/">
</fileset>
</copy>
<delete file="target/${project.artifactId}-${ml.version}.zip"/>
<delete dir="${tempdir}"/>
<mkdir dir="${tempdir}"/>
<delete file="target/${project.artifactId}-${ml.version}.zip" />
<delete dir="${tempdir}" />
<mkdir dir="${tempdir}" />
<unzip dest="${tempdir}">
<fileset
dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
<include name="*.ui*.jar"/>
<fileset dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components/plugins/">
<include name="*.ui*.jar" />
</fileset>
</unzip>
<move todir="${tempdir}/web/" includeemptydirs="false">
<fileset dir="${tempdir}/web/">
<exclude name="**/_demo/**"/>
<exclude name="**/_docs/**"/>
<exclude name="**/yui/**"/>
<exclude name="**/ajax/**"/>
<exclude name="**/editarea/**"/>
<exclude name="**/codepress/**"/>
<exclude name="**/WEB-INF/**"/>
<include name="**/*.html"/>
<exclude name="**/_demo/**" />
<exclude name="**/_docs/**" />
<exclude name="**/yui/**" />
<exclude name="**/ajax/**" />
<exclude name="**/editarea/**" />
<exclude name="**/codepress/**" />
<exclude name="**/WEB-INF/**" />
<include name="**/*.html" />
</fileset>
<mapper type="glob" from="*.html" to="*.xml"/>
<mapper type="glob" from="*.html" to="*.xml" />
</move>

<!-- commenting "GetAllRolesOfUserEnabled" property in user-mgt.xml to fix
https://wso2.org/jira/browse/IDENTITY-3489 -->
<replace
file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/user-mgt.xml"
token="&lt;Property name=&quot;GetAllRolesOfUserEnabled&quot;&gt;true&lt;/Property&gt;"
value="&lt;!--Property name=&quot;GetAllRolesOfUserEnabled&quot;&gt;true&lt;/Property--&gt;"/>
<replace file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/user-mgt.xml" token="&lt;Property name=&quot;GetAllRolesOfUserEnabled&quot;&gt;true&lt;/Property&gt;" value="&lt;!--Property name=&quot;GetAllRolesOfUserEnabled&quot;&gt;true&lt;/Property--&gt;" />

<mkdir dir="src/site/xdoc"/>
<mkdir dir="src/site/xdoc" />
<copy todir="src/site/xdoc" overwrite="false" includeemptydirs="false">
<fileset dir="${tempdir}/web">
<exclude name="**/_demo/**"/>
<exclude name="**/_docs/**"/>
<exclude name="**/yui/**"/>
<exclude name="**/ajax/**"/>
<exclude name="**/WEB-INF/**"/>
<exclude name="**/*.html"/>
<exclude name="**/*.js"/>
<exclude name="**/*.jsp"/>
<exclude name="**/*.xsl"/>
<exclude name="*.*"/>
<exclude name="**/_demo/**" />
<exclude name="**/_docs/**" />
<exclude name="**/yui/**" />
<exclude name="**/ajax/**" />
<exclude name="**/WEB-INF/**" />
<exclude name="**/*.html" />
<exclude name="**/*.js" />
<exclude name="**/*.jsp" />
<exclude name="**/*.xsl" />
<exclude name="*.*" />
</fileset>
</copy>
<copy todir="src/site" overwrite="false" includeemptydirs="false">
Expand All @@ -191,7 +183,7 @@
</copy>
<copy todir="target/site/" overwrite="false" includeemptydirs="false">
<fileset dir="src/site/xdoc/">
<include name="**/images/*.*"/>
<include name="**/images/*.*" />
</fileset>
</copy>
<copy todir="target/site/apidocs/ml/core" overwrite="false" includeemptydirs="false">
Expand All @@ -206,7 +198,7 @@
<copy todir="target/site/apidocs/ml/restapi" overwrite="false" includeemptydirs="false">
<fileset dir="target/org.wso2.carbon.ml.rest.api-${carbon.ml.version}-docs/" />
</copy>
<delete dir="${tempdir}"/>
<delete dir="${tempdir}" />
</tasks>
</configuration>
</execution>
Expand All @@ -215,18 +207,18 @@
<phase>install</phase>
<configuration>
<tasks>
<delete dir="target/archive-tmp"/>
<delete dir="target/dependency-maven-plugin-markers"/>
<delete dir="target/maven-archiver"/>
<delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
<delete dir="target/org.wso2.carbon.ml.core-${carbon.ml.version}-docs"/>
<delete dir="target/org.wso2.carbon.ml.commons-${carbon.ml.version}-docs"/>
<delete dir="target/org.wso2.carbon.ml.database-${carbon.ml.version}-docs"/>
<delete dir="target/org.wso2.carbon.ml.rest.api-${carbon.ml.version}-docs"/>
<delete dir="target/sources"/>
<delete dir="target/site"/>
<delete dir="target/database"/>
<delete dir="src/site"/>
<delete dir="target/archive-tmp" />
<delete dir="target/dependency-maven-plugin-markers" />
<delete dir="target/maven-archiver" />
<delete dir="target/wso2carbon-core-${carbon.kernel.version}" />
<delete dir="target/org.wso2.carbon.ml.core-${carbon.ml.version}-docs" />
<delete dir="target/org.wso2.carbon.ml.commons-${carbon.ml.version}-docs" />
<delete dir="target/org.wso2.carbon.ml.database-${carbon.ml.version}-docs" />
<delete dir="target/org.wso2.carbon.ml.rest.api-${carbon.ml.version}-docs" />
<delete dir="target/sources" />
<delete dir="target/site" />
<delete dir="target/database" />
<delete dir="src/site" />
</tasks>
</configuration>
<goals>
Expand All @@ -242,22 +234,19 @@
<configuration>
<tasks>
<path id="h2.classpath">
<path refid="maven.compile.classpath"/>
<path refid="maven.compile.classpath" />
</path>
<echo
message="########### Creating Machine Learner Database ##############"/>
<sql
driver="org.h2.Driver"
<echo message="########### Creating Machine Learner Database ##############" />
<sql driver="org.h2.Driver"
url="jdbc:h2:${basedir}/target/database/WSO2ML_DB"
userid="wso2carbon" password="wso2carbon" autocommit="true"
onerror="continue">
<classpath>
<path refid="h2.classpath"/>
<path refid="h2.classpath" />
</classpath>
<fileset file="target/${project.artifactId}-${ml.version}/dbscripts/ml/h2.sql"/>
<fileset file="target/${project.artifactId}-${ml.version}/dbscripts/ml/h2.sql" />
</sql>
<echo
message="##################### END ########################"/>
<echo message="##################### END ########################" />
</tasks>
</configuration>
</execution-->
Expand Down
2 changes: 1 addition & 1 deletion modules/features/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>ml-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>wso2ml-features</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion modules/features/product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>wso2ml-features-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
5 changes: 2 additions & 3 deletions modules/integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
~ under the License.
-->

<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>ml-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
6 changes: 2 additions & 4 deletions modules/integration/tests-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
~ under the License.
-->

<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>integration</artifactId>
<groupId>org.wso2.ml</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>tests-common</artifactId>
Expand Down
6 changes: 2 additions & 4 deletions modules/integration/tests-common/test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
~ under the License.
-->

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>tests-common</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>test-integration-utils</artifactId>
<name>test-utils</name>
Expand Down
6 changes: 2 additions & 4 deletions modules/integration/tests-common/ui-pages/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
~ under the License.
-->

<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>tests-common</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>ui-pages</artifactId>
<name>ui-pages</name>
Expand Down
6 changes: 2 additions & 4 deletions modules/integration/tests-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
~ under the License.
-->

<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>integration</artifactId>
<groupId>org.wso2.ml</groupId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>tests-integration</artifactId>
Expand Down
5 changes: 2 additions & 3 deletions modules/integration/tests-integration/tests-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
License for the ~ specific language governing permissions and limitations
~ under the License. -->

<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/xsd/maven-4.0.0.xsd">
<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/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>tests-integration</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>tests-service</artifactId>
Expand Down
6 changes: 2 additions & 4 deletions modules/integration/tests-ui-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
~ under the License.
-->

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>integration</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>tests-ui-integration</artifactId>
<name>tests-ui-integration</name>
Expand Down
11 changes: 4 additions & 7 deletions modules/p2-profile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
~ under the License.
-->

<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">
<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">

<parent>
<groupId>org.wso2.ml</groupId>
<artifactId>ml-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -450,9 +448,8 @@
<phase>package</phase>
<configuration>
<tasks>
<replace token="false" value="true"
dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
<include name="**/bundles.info"/>
<replace token="false" value="true" dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
<include name="**/bundles.info" />
</replace>
</tasks>
</configuration>
Expand Down
Loading

0 comments on commit 69b9f4e

Please sign in to comment.