[
https://issues.jboss.org/browse/GTNPORTAL-1776?page=com.atlassian.jira.pl...
]
Krashan Brahmanjara commented on GTNPORTAL-1776:
------------------------------------------------
Current compilation of many jboss anf exoplatform modules is impossible or
very slow because pom's are very bad written - many developers do not
use"optiona" and "scope" parameters so maven compilation trying to
download and add to classpath hundreds unnecesary files.
Some parent and main pom's should be optimized!
One easy example - module known as "GateIn-3.1.0-GA\examples\portal" or
"Exoplatform-5.1.0-..\examples\portal"
current compilation time is ~30s. After adding dependecy managment as below compilation
time is only ~3s - because this module need only three dependecies.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.exoplatform.portal</groupId>
<artifactId>exo.portal.component.web.api</artifactId>
<version>5.1.0-epp-GA</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>jibx-run</artifactId>
<groupId>org.jibx</groupId>
</exclusion>
<exclusion>
<artifactId>xpp3</artifactId>
<groupId>xpp3</groupId>
</exclusion>
<exclusion>
<artifactId>exo.tool.framework.junit</artifactId>
<groupId>org.exoplatform.tool</groupId>
</exclusion>
<exclusion>
<artifactId>exo.portal.component.web.controller</artifactId>
<groupId>org.exoplatform.portal</groupId>
</exclusion>
<exclusion>
<artifactId>jotm</artifactId>
<groupId>jotm</groupId>
</exclusion>
<exclusion>
<artifactId>picocontainer</artifactId>
<groupId>picocontainer</groupId>
</exclusion>
<exclusion>
<artifactId>jibx-bind</artifactId>
<groupId>org.jibx</groupId>
</exclusion>
<exclusion>
<artifactId>jibx-extras</artifactId>
<groupId>org.jibx</groupId>
</exclusion>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
<exclusion>
<artifactId>exo.portal.component.web.resources</artifactId>
<groupId>org.exoplatform.portal</groupId>
</exclusion>
<exclusion>
<artifactId>quartz</artifactId>
<groupId>quartz</groupId>
</exclusion>
<exclusion>
<artifactId>jta</artifactId>
<groupId>javax.transaction</groupId>
</exclusion>
<exclusion>
<artifactId>exo.kernel.commons</artifactId>
<groupId>org.exoplatform.kernel</groupId>
</exclusion>
<exclusion>
<artifactId>activation</artifactId>
<groupId>javax.activation</groupId>
</exclusion>
<exclusion>
<artifactId>commons-beanutils</artifactId>
<groupId>commons-beanutils</groupId>
</exclusion>
</exclusions>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependency>
</dependencies>
</dependencyManagement>
Slow compilation on some components
-----------------------------------
Key: GTNPORTAL-1776
URL:
https://issues.jboss.org/browse/GTNPORTAL-1776
Project: GateIn Portal
Issue Type: Task
Components: Packaging
Environment: Windows XP
Reporter: Krashan Brahmanjara
Assignee: Arnaud Heritier
Fix For: 3.0.0-Beta02
Some recent change on the build configuration had an impact on the compilation speed on
Windows computers.
Currently the build is taking 40min, against 5 few days ago.
The Thread dump will be attached in a comment.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira