Running Alfresco Maven SDK Project using Eclipse

cancel
Showing results for 
Search instead for 
Did you mean: 
riadhazzouz
Active Member

Running Alfresco Maven SDK Project using Eclipse

Every time i Maven Build or Maven install the project, it takes too long from 6 to 7 minutes.
What is the solution for that ?

7 Replies
shyam_ghodasra
Active Member II

Re: Running Alfresco Maven SDK Project using Eclipse

Hi Raidh,

What my hacks for this problem is..

1)instant of  All-in-One Use repo and Share separately(rapo takes 3 to 4 min start and Share take 2 to 3 min to start in SDK 3)

2)If you are using SDK 3 then in Repo use Hot reloading it save a lot time..

       if this is to much time for you then

3)use SDK 2 for development and migrate to SDK 3 at last and test all the things (not recommended by me if you are working in a team)(Repo take 2 to 3 min and Share also take 2 to 3 min to start)

I have 8GB RAM on my machine..If you have 12GB or 16GB machine then it also take less compare to me...

Thanks,
Shyam Ghodasra

riadhazzouz
Active Member

Re: Running Alfresco Maven SDK Project using Eclipse

I don't think it's a matter of RAM, I have 12GB. But every time I run it, it downloads the dependencies again and again.
Thanks.

shyam_ghodasra
Active Member II

Re: Running Alfresco Maven SDK Project using Eclipse

Hi,

can you tell us which dependency it download each and every time...?

riadhazzouz
Active Member

Re: Running Alfresco Maven SDK Project using Eclipse

This is an example of the output in the console :

[INFO] Configured Artifact: org.alfresco:aikau:1.0.85:jar
[INFO] Configured Artifact: com.riadh:riadh-share-jar:1.0-SNAPSHOT:jar
[INFO] Copying aikau-1.0.85.jar to E:\MavenProjects\riadh\target\share-war\WEB-INF\lib\aikau-1.0.85.jar
[INFO] Copying riadh-share-jar-1.0-SNAPSHOT.jar to E:\MavenProjects\riadh\target\share-war\WEB-INF\lib\riadh-share-jar-1.0-SNAPSHOT.jar
[DEBUG] Compressing 'E:\MavenProjects\riadh\target\share-war' into 'E:\MavenProjects\riadh\target\share.war'.
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file' with basic configurator -->
[DEBUG] (f) file = E:\MavenProjects\riadh\target\share.war
[DEBUG] (f) groupId = com.riadh
[DEBUG] (f) artifactId = riadh-share
[DEBUG] (f) version = 1.0-SNAPSHOT
[DEBUG] (f) packaging = war
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository = id: local
url: file:///C:/Users/AZZOUZ%20ROG%2001/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]

[DEBUG] (f) repositoryLayout = default
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[DEBUG] Using META-INF/maven/org.alfresco/alfresco-web-framework-commons/pom.xml for groupId, artifactId, packaging and version
[DEBUG] Skipping installation of generated POM, already present in local repository
[INFO] Installing E:\MavenProjects\riadh\target\share.war to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-share\1.0-SNAPSHOT\riadh-share-1.0-SNAPSHOT.war
[DEBUG] Writing tracking file C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-share\1.0-SNAPSHOT\_remote.repositories
[DEBUG] Installing com.riadh:riadh-share:1.0-SNAPSHOT/maven-metadata.xml to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-share\1.0-SNAPSHOT\maven-metadata-local.xml
[DEBUG] Installing com.riadh:riadh-share/maven-metadata.xml to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-share\maven-metadata-local.xml
[INFO] Starting Tomcat
[INFO] Unpacking DB Dialects and ibatis files from alfresco-repository artifact
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.10, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack' with basic configurator -->
[DEBUG] (s) outputDirectory = E:\MavenProjects\riadh\target\test-classes
[DEBUG] (s) groupId = org.alfresco
[DEBUG] (s) artifactId = alfresco-repository
[DEBUG] (s) version = 5.2.b-EA
[DEBUG] (s) includes = alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/*,alfresco/dbscripts/upgrade/*/org.hibernate.dialect.PostgreSQLDialect/*,alfresco/ibatis/org.hibernate.dialect.PostgreSQLDialect/*
[DEBUG] (s) artifactItems = [org.alfresco:alfresco-repository:5.2.b-EA:jar]
[DEBUG] (f) ignorePermissions = false
[DEBUG] (s) local = id: local
url: file:///C:/Users/AZZOUZ%20ROG%2001/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]

[DEBUG] (s) markersDirectory = E:\MavenProjects\riadh\target\dependency-maven-plugin-markers
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) overWriteIfNewer = true
[DEBUG] (s) overWriteReleases = false
[DEBUG] (s) overWriteSnapshots = false
[DEBUG] (f) project = MavenProject: com.riadh:riadh:1.0-SNAPSHOT @ E:\MavenProjects\riadh\pom.xml
[DEBUG] (f) reactorProjects = [MavenProject: com.riadh:riadh:1.0-SNAPSHOT @ E:\MavenProjects\riadh\pom.xml, MavenProject: com.riadh:riadh-platform-jar:1.0-SNAPSHOT @ E:\MavenProjects\riadh\riadh-platform-jar\pom.xml, MavenProject: com.riadh:riadh-share-jar:1.0-SNAPSHOT @ E:\MavenProjects\riadh\riadh-share-jar\pom.xml]
[DEBUG] (s) remoteRepos = [ id: alfresco-public
url: https://artifacts.alfresco.com/nexus/content/groups/public
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: alfresco-public-snapshots
url: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: alfresco-private-repository
url: https://artifacts.alfresco.com/nexus/content/groups/private
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) silent = false
[DEBUG] (s) skip = false
[DEBUG] (s) useJvmChmod = true
[DEBUG] -- end configuration --

[INFO] Configured Artifact: com.riadh:riadh-platform-jar:1.0-SNAPSHOT:jar
[INFO] Copying riadh-platform-jar-1.0-SNAPSHOT.jar to E:\MavenProjects\riadh\target\platform-war\WEB-INF\lib\riadh-platform-jar-1.0-SNAPSHOT.jar
[INFO] NOT copying Alfresco Enterprise license, running Community edition
[DEBUG] Compressing 'E:\MavenProjects\riadh\target\platform-war' into 'E:\MavenProjects\riadh\target\platform.war'.
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=40, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=19, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=0, ConflictResolver.conflictItemCount=40, DefaultDependencyCollector.collectTime=47, DefaultDependencyCollector.transformTime=1}
[DEBUG] org.apache.maven.plugins:maven-install-plugin:jar:2.5.2:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG] org.codehaus.plexusSmiley Tonguelexus-interpolation:jar:1.11:compile
[DEBUG] org.codehaus.plexusSmiley Tonguelexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG] commons-codec:commons-codec:jar:1.6:compile
[DEBUG] org.apache.maven.shared:maven-shared-utils:jar:0.4:compile
[DEBUG] com.google.code.findbugs:jsr305:jar:2.0.1:compile
[DEBUG] org.codehaus.plexusSmiley Tonguelexus-utils:jar:3.0.15:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2
[DEBUG] Included: org.apache.maven.plugins:maven-install-plugin:jar:2.5.2
[DEBUG] Included: org.codehaus.plexusSmiley Tonguelexus-interpolation:jar:1.11
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG] Included: commons-codec:commons-codec:jar:1.6
[DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:0.4
[DEBUG] Included: com.google.code.findbugs:jsr305:jar:2.0.1
[DEBUG] Included: org.codehaus.plexusSmiley Tonguelexus-utils:jar:3.0.15
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file' with basic configurator -->
[DEBUG] (f) file = E:\MavenProjects\riadh\target\platform.war
[DEBUG] (f) groupId = com.riadh
[DEBUG] (f) artifactId = riadh-platform
[DEBUG] (f) version = 1.0-SNAPSHOT
[DEBUG] (f) packaging = war
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository = id: local
url: file:///C:/Users/AZZOUZ%20ROG%2001/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]

[DEBUG] (f) repositoryLayout = default
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[DEBUG] Using META-INF/maven/org.alfresco/alfresco-platform/pom.xml for groupId, artifactId, packaging and version
[DEBUG] Skipping installation of generated POM, already present in local repository
[INFO] Installing E:\MavenProjects\riadh\target\platform.war to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-platform\1.0-SNAPSHOT\riadh-platform-1.0-SNAPSHOT.war
[DEBUG] Writing tracking file C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-platform\1.0-SNAPSHOT\_remote.repositories
[DEBUG] Installing com.riadh:riadh-platform:1.0-SNAPSHOT/maven-metadata.xml to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-platform\1.0-SNAPSHOT\maven-metadata-local.xml
[DEBUG] Installing com.riadh:riadh-platform/maven-metadata.xml to C:\Users\AZZOUZ ROG 01\.m2\repository\com\riadh\riadh-platform\maven-metadata-local.xml
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.10, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack' with basic configurator -->
[DEBUG] (s) outputDirectory = E:\MavenProjects\riadh\target\share-war
[DEBUG] (s) groupId = org.alfresco
[DEBUG] (s) artifactId = share
[DEBUG] (s) version = 5.2.a-EA
[DEBUG] (s) type = war
[DEBUG] (s) artifactItems = [org.alfresco:share:5.2.a-EA:war]
[DEBUG] (f) ignorePermissions = false
[DEBUG] (s) local = id: local
url: file:///C:/Users/AZZOUZ%20ROG%2001/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]

[DEBUG] (s) markersDirectory = E:\MavenProjects\riadh\target\dependency-maven-plugin-markers
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) overWriteIfNewer = true
[DEBUG] (s) overWriteReleases = false
[DEBUG] (s) overWriteSnapshots = false
[DEBUG] (f) project = MavenProject: com.riadh:riadh:1.0-SNAPSHOT @ E:\MavenProjects\riadh\pom.xml
[DEBUG] (f) reactorProjects = [MavenProject: com.riadh:riadh:1.0-SNAPSHOT @ E:\MavenProjects\riadh\pom.xml, MavenProject: com.riadh:riadh-platform-jar:1.0-SNAPSHOT @ E:\MavenProjects\riadh\riadh-platform-jar\pom.xml, MavenProject: com.riadh:riadh-share-jar:1.0-SNAPSHOT @ E:\MavenProjects\riadh\riadh-share-jar\pom.xml]
[DEBUG] (s) remoteRepos = [ id: alfresco-public
url: https://artifacts.alfresco.com/nexus/content/groups/public
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: alfresco-public-snapshots
url: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: alfresco-private-repository
url: https://artifacts.alfresco.com/nexus/content/groups/private
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
, id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) silent = false
[DEBUG] (s) skip = false
[DEBUG] (s) useJvmChmod = true
[DEBUG] -- end configuration --

sanjaybandhniya
Intermediate

Re: Running Alfresco Maven SDK Project using Eclipse

Hi,

If you using eclipse then try this scenario.

First time run project,it will download all dependency.

Now Go to Run configuration->Offline(check that box) and skip test(check that box).

What it will do,it will not download dependency from internet,it will use your local maven and it will be faster and skip test skip the testing of unit test.

riadhazzouz
Active Member

Re: Running Alfresco Maven SDK Project using Eclipse

Hi
I don't have a settings.xml file in .m2 folder, do I need to create it ? if yes, what should I put inside that file ?
I searched a bit and I found the template but I didn't know what to put in those tags.

Thanks. 

sanjaybandhniya
Intermediate

Re: Running Alfresco Maven SDK Project using Eclipse

No,its not required.