-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 6.2.X
-
Fix Version/s: None
-
Component/s: General
-
Labels:None
-
Environment:LIFERAY VERSION: 6.2 EE
OPERATING SYSTEM: Windows 7
APPLICATION SERVER: Tomcat 7.0
PRIMARY BROWSER: Chrome 28+
JAVA VIRTUAL MACHINE: Java 8
Description
Inefficient theme build process when connecting to a remote (nexus) repository
Testing done
When the Liferay Maven plugin is connected to a remote repository (I used Sonatype Nexus), building a theme (use debug mode: mvn install -X -e) is inefficient due to repeating expanding of portal-web as shown in the logs.
Here is a snippet of the expansion that is repeated in the log. Please find the full log and the parent pom.xml attached.
[DEBUG] Expanding: C:\Users\liferay\.m2\repository\com\liferay\portal\portal-web\6.2.10.13\portal-web-6.2.10.13.war into G:\Maven\MavenProject\test\target\liferay-work\appServerPortalDir [DEBUG] expand complete
This causes the build process to be twice as long as needed. This can be seen by pointing the Liferay Maven plugin to an already extracted tomcat bundle. The "Expanding" logs no longer occur and the build process is twice as fast. The logs for building the theme when connecting to a local bundle are attached (BundleMavenLogs.txt).
Build time when pointing to remote repository
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:04 min [INFO] Finished at: 2015-09-24T15:41:02-07:00 [INFO] Final Memory: 62M/1125M [INFO] ------------------------------------------------------------------------
Build time when pointing to local bundle
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:59 min [INFO] Finished at: 2015-08-20T12:05:12-07:00 [INFO] Final Memory: 59M/1026M [INFO] ------------------------------------------------------------------------