Add a release profile
diff --git a/pom.xml b/pom.xml
index c618f11..70019ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -844,6 +844,26 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>release</id>
+ <modules> <!-- Do not change the ordering of the 4 blocks below. -->
+
+ <!-- 1. Modules that do not depend on "legacy" codes. -->
+ <module>commons-math-core</module>
+ <module>commons-math-neuralnet</module>
+ <module>commons-math-transform</module>
+
+ <!-- 2. Modularized (but not refactored) legacy functionalities. -->
+ <module>commons-math-legacy-exception</module>
+ <module>commons-math-legacy-core</module>
+
+ <!-- 3. Non-modularized legacy functionalities. -->
+ <module>commons-math-legacy</module>
+
+ <module>dist-archive</module>
+ </modules>
+ </profile>
</profiles>
<developers>