10-19-2017 07:27 AM
I have created a content model in repo folder and share-config-custom.xml in share folder. There is no issue with content-model.xml. After creating share-config-custom.xml it throws following error.
only share war is failed to build. Please can anybody help me out from this issue.
Full Stack Trace :
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.alfresco:solr-configom:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ com.alfresco:solr-config:[unknown-version], D:\spring tool suite - workspace\alfmodule\solr-config\pom.xml, line 74, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner.
[INFO] Alfresco Repository AMP Module
[INFO] Alfresco Share AMP Module
[INFO] Alfresco Repository WAR Aggregator
[INFO] Alfresco Solr 4 Configuration
[INFO] Alfresco Share WAR Aggregator
[INFO] Alfresco, Share and Solr4 Tomcat Runner
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner. 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ alfmodule ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-sdk-requirements) @ alfmodule ---
[INFO]
[INFO] --- yuicompressor-maven-plugin:1.5.1:compress (compress-js) @ alfmodule ---
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ alfmodule ---
[INFO] Installing D:\spring tool suite - workspace\alfmodule\pom.xml to C:\Users\DELL\.m2\repository\com\alfresco\alfmodule\1.0-SNAPSHOT\alfmodule-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Repository AMP Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ alfmodule-repo-amp ---
[INFO] Deleting D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-sdk-requirements) @ alfmodule-repo-amp ---
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:set-version (default-set-version) @ alfmodule-repo-amp ---
[INFO] Removed -SNAPSHOT suffix from version - 1.0
[INFO] Added timestamp to version - 1.0.1710191651
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:add-test-resource (add-env-test-properties) @ alfmodule-repo-amp ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ alfmodule-repo-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\src\main\resources
[INFO] Copying 16 resources to D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target/amp
[INFO]
[INFO] --- yuicompressor-maven-plugin:1.5.1:compress (compress-js) @ alfmodule-repo-amp ---
[INFO] demoamp.js (774b) -> demoamp-min.js (0b)[0%]
[INFO] total input (774b) -> output (0b)[0%]
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:refresh (refresh-webscripts-repo-and-share) @ alfmodule-repo-amp ---
[INFO] Successfull Refresh Web Scripts for Alfresco Repository
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ alfmodule-repo-amp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ alfmodule-repo-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (add-module-properties-to-test-classpath) @ alfmodule-repo-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to alfresco/module/alfmodule-repo-amp
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (add-module-config-to-test-classpath) @ alfmodule-repo-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ alfmodule-repo-amp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ alfmodule-repo-amp ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:amp (default-amp) @ alfmodule-repo-amp ---
[INFO] Building jar: D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\amp\lib\alfmodule-repo-amp-1.0-SNAPSHOT.jar
[INFO] Building amp: D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\alfmodule-repo-amp-1.0-SNAPSHOT.amp
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ alfmodule-repo-amp ---
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\alfmodule-repo-amp-1.0-SNAPSHOT.amp to C:\Users\DELL\.m2\repository\com\alfresco\alfmodule-repo-amp\1.0-SNAPSHOT\alfmodule-repo-amp-1.0-SNAPSHOT.amp
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\pom.xml to C:\Users\DELL\.m2\repository\com\alfresco\alfmodule-repo-amp\1.0-SNAPSHOT\alfmodule-repo-amp-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Share AMP Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ alfmodule-share-amp ---
[INFO] Deleting D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-sdk-requirements) @ alfmodule-share-amp ---
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:set-version (default-set-version) @ alfmodule-share-amp ---
[INFO] Removed -SNAPSHOT suffix from version - 1.0
[INFO] Added timestamp to version - 1.0.1710191651
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ alfmodule-share-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 13 resources to D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target/amp
[INFO]
[INFO] --- yuicompressor-maven-plugin:1.5.1:compress (compress-js) @ alfmodule-share-amp ---
[INFO] TemplateWidget.js (721b) -> TemplateWidget-min.js (415b)[57%]
[INFO] total input (721b) -> output (415b)[57%]
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:refresh (refresh-webscripts-repo-and-share) @ alfmodule-share-amp ---
[INFO] Successfull Refresh Web Scripts for Alfresco Share
[INFO] Successfull Clear Dependency Caches for Alfresco Share
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ alfmodule-share-amp ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ alfmodule-share-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (add-module-properties-to-test-classpath) @ alfmodule-share-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to alfresco/module/alfmodule-share-amp
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (add-module-config-to-test-classpath) @ alfmodule-share-amp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ alfmodule-share-amp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target\test-classes
[INFO] /D:/spring tool suite - workspace/alfmodule/alfmodule-share-amp/src/test/java/com/alfresco/alfmodule/demoamp/po/DemoPage.java: D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\src\test\java\com\alfresco\alfmodule\demoamp\po\DemoPage.java uses unchecked or unsafe operations.
[INFO] /D:/spring tool suite - workspace/alfmodule/alfmodule-share-amp/src/test/java/com/alfresco/alfmodule/demoamp/po/DemoPage.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ alfmodule-share-amp ---
[INFO]
[INFO] --- alfresco-maven-plugin:2.2.0:amp (default-amp) @ alfmodule-share-amp ---
[INFO] Building jar: D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target\amp\lib\alfmodule-share-amp-1.0-SNAPSHOT.jar
[INFO] Building amp: D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target\alfmodule-share-amp-1.0-SNAPSHOT.amp
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ alfmodule-share-amp ---
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\target\alfmodule-share-amp-1.0-SNAPSHOT.amp to C:\Users\DELL\.m2\repository\com\alfresco\alfmodule-share-amp\1.0-SNAPSHOT\alfmodule-share-amp-1.0-SNAPSHOT.amp
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-share-amp\pom.xml to C:\Users\DELL\.m2\repository\com\alfresco\alfmodule-share-amp\1.0-SNAPSHOT\alfmodule-share-amp-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Repository WAR Aggregator 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ repo ---
[INFO] Deleting D:\spring tool suite - workspace\alfmodule\repo\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-sdk-requirements) @ repo ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:add-resource (add-env-properties) @ repo ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ repo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory D:\spring tool suite - workspace\alfmodule\repo\src\main\amp
[INFO] Copying 1 resource
[INFO]
[INFO] --- yuicompressor-maven-plugin:1.5.1:compress (compress-js) @ repo ---
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ repo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ repo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\spring tool suite - workspace\alfmodule\repo\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ repo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ repo ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:exploded (prepare-exploded-war) @ repo ---
[INFO] Exploding webapp
[INFO] Assembling webapp [repo] in [D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Processing overlay [ id org.alfresco:alfresco]
[INFO] Processing overlay [ id com.alfresco:alfmodule-repo-amp]
[INFO] Installing into destination folder: D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\alfmodule-repo-amp-1.0-SNAPSHOT.amp into D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT
[INFO] Webapp assembled in [28932 msecs]
[INFO]
[INFO] --- replacer:1.5.3:replace (disable-securecomms) @ repo ---
[INFO] Replacement run on 1 file.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ repo ---
[INFO] Packaging webapp
[INFO] Assembling webapp [repo] in [D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Processing overlay [ id org.alfresco:alfresco]
[INFO] Processing overlay [ id com.alfresco:alfmodule-repo-amp]
[INFO] Installing into destination folder: D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT
[INFO] Installing D:\spring tool suite - workspace\alfmodule\alfmodule-repo-amp\target\alfmodule-repo-amp-1.0-SNAPSHOT.amp into D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT
[INFO] Webapp assembled in [13559 msecs]
[INFO] Building war: D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT.war
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ repo ---
[INFO] Installing D:\spring tool suite - workspace\alfmodule\repo\target\repo-1.0-SNAPSHOT.war to C:\Users\DELL\.m2\repository\com\alfresco\repo\1.0-SNAPSHOT\repo-1.0-SNAPSHOT.war
[INFO] Installing D:\spring tool suite - workspace\alfmodule\repo\pom.xml to C:\Users\DELL\.m2\repository\com\alfresco\repo\1.0-SNAPSHOT\repo-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Solr 4 Configuration 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ solr-config ---
[INFO] Deleting D:\spring tool suite - workspace\alfmodule\solr-config\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-sdk-requirements) @ solr-config ---
[INFO]
[INFO] --- maven-dependency-plugin:2.10:unpack (unpack-alfresco-config) @ solr-config ---
[INFO] Configured Artifact: org.alfresco:alfresco-solr4:config:5.1.e:zip
[INFO] Unpacking C:\Users\DELL\.m2\repository\org\alfresco\alfresco-solr4\5.1.e\alfresco-solr4-5.1.e-config.zip to D:\spring tool suite - workspace\alfmodule\alf_data_dev\solr4\config with includes "" and excludes ""
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:regex-property (regexp-property) @ solr-config ---
[INFO]
[INFO] --- replacer:1.5.3:replace (setup-solr-config) @ solr-config ---
[INFO] Replacement run on 2 files.
[INFO]
[INFO] --- yuicompressor-maven-plugin:1.5.1:compress (compress-js) @ solr-config ---
[INFO] nb warnings: 0, nb errors: 0
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ solr-config ---
[INFO] Installing D:\spring tool suite - workspace\alfmodule\solr-config\pom.xml to C:\Users\DELL\.m2\repository\com\alfresco\solr-config\1.0-SNAPSHOT\solr-config-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Share WAR Aggregator 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ share ---
[INFO] Deleting D:\spring tool suite - workspace\alfmodule\share\target
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner. SUCCESS [ 0.674 s]
[INFO] Alfresco Repository AMP Module ..................... SUCCESS [ 7.753 s]
[INFO] Alfresco Share AMP Module .......................... SUCCESS [ 4.209 s]
[INFO] Alfresco Repository WAR Aggregator ................. SUCCESS [ 50.952 s]
[INFO] Alfresco Solr 4 Configuration ...................... SUCCESS [ 2.273 s]
[INFO] Alfresco Share WAR Aggregator ...................... FAILURE [ 1.628 s]
[INFO] Alfresco, Share and Solr4 Tomcat Runner ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:09 min
[INFO] Finished at: 2017-10-19T16:52:10+05:30
[INFO] Final Memory: 77M/541M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on project share: Failed to clean project: Failed to delete D:\spring tool suite - workspace\alfmodule\share\target\alfresco.log -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :share
10-20-2017 03:57 PM
Make sure Alfresco is not running in STS. Something might be writing to alfresco.log.
Try deleting D:\spring tool suite - workspace\alfmodule\share\target manually, then re-running the build.
10-20-2017 04:07 PM
Also, I edited your subject because it was in all caps, which is against our policy, and because it was not descriptive enough.
10-22-2017 06:30 AM
thank you, I am running my project in sts only. I will switch it to eclipse.
Explore our Alfresco products with the links below. Use labels to filter content by product module.