I have a issue configuring my development environment. I followed these steps. https://docs.alfresco.com/5.1/tasks/alfresco-sdk-tutorials-all-in-one-archetype.html But when I run the run.sh file I have this error.
How I can solve it?
Did you configure a JDK for your project?I don't really know how to do it in Eclipse but StackOverflow says:
https://stackoverflow.com/questions/13635563/setting-jdk-in-eclipse
Seems like you have not set the JAVA_HOME and Not selected JDK Path in eclipse.
First step, set the java home. Follow this URL: https://confluence.atlassian.com/conf59/setting-the-java_home-variable-in-windows-792499849.html
Second step, set the Jdk path in eclipse. By default eclipse takes jre from environment variable.
Look at this post, to setup eclipse with JDK: https://www.gamefromscratch.com/post/2011/11/15/Telling-Eclipse-to-use-the-JDK-instead-of-JRE.aspx
https://www.youtube.com/watch?v=S5xeXawYgK0
Once, you are done with these steps, close all terminals and close eclipse. Start the eclipse again and try performing the steps documented here: https://docs.alfresco.com/5.2/tasks/sdk-develop-eclipse.html
I think you need to jump to Step 9 directly since you have already generated the project and imported in eclipse.
It will be helpful to understand the error if you can post the full error log as text instead of image in english? So other folks can also help.
Did you also tried running the project in eclipse as well?
Hi @abhinavmishra14
I want to do it with Eclipse but I don't know how to do it.
Can you help me with that?
@viperboys
Seems you followed the wrong documentation for ACS5.2. ACS5.2 works best with SDK3.x.
Follow the steps here to generate the base project: https://docs.alfresco.com/5.2/concepts/sdk-getting-started.html
You can follow the steps documented here run and test in Eclipse : https://docs.alfresco.com/5.2/tasks/sdk-develop-eclipse.html
I followed the steps you told me. When I ran the project I had this error.
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)Maven home: C:\Users\Edgar\my-all-in-one\EMBEDDEDJava version: 14.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-14.0.1Default locale: es_VE, platform encoding: Cp1252OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://artifacts.alfresco.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alfresco-plugin-public has elapsed or updates are forcedorg.apache.maven.plugin.PluginResolutionException: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://artifacts.alfresco.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alfresco-plugin-public has elapsed or updates are forcedat org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:131)at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:182)at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:86)at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:139)at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:125)at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:266)at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:104)at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://artifacts.alfresco.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alfresco-plugin-public has elapsed or updates are forcedat org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:424)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:229)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:207)at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:262)at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:127)... 24 moreCaused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in https://artifacts.alfresco.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of alfresco-plugin-public has elapsed or updates are forcedat org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:218)at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:193)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:559)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:483)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:401)... 28 more
[ERROR] No plugin found for prefix 'alfresco' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Edgar\.m2\repository), alfresco-plugin-public (https://artifacts.alfresco.com/nexus/content/groups/public), alfresco-plugin-public-snapshots (https://artifacts.alfresco.com/nexus/content/groups/public-snapshots), central (https://repo.maven.apache.org/maven2)] -> [Help 1]org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'alfresco' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Edgar\.m2\repository), alfresco-plugin-public (https://artifacts.alfresco.com/nexus/content/groups/public), alfresco-plugin-public-snapshots (https://artifacts.alfresco.com/nexus/content/groups/public-snapshots), central (https://repo.maven.apache.org/maven2)]at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:95)at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:266)at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:104)at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:564)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)[ERROR][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/NoPluginFoundForPrefixException
I hope that you can help me. Thank you
Can you provide the steps you followed? At what step you are getting the error ?
Seems to me that you are getting the error in very first step.
If you are using windows cmd, this command will work:
mvn archetype:generate -Dfilter=org.alfresco:
If you are using windows powershell, use command like:
mvn archetype:generate -Dfilter="org.alfresco:"
For linux or mac terminal either of the above commands may work.
You had asked similar questions previously;
https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-configure-the-development-environment-with-eclipse/m-p/299187/highlight/true#M19551
I send you a video of the steps I have taken. I hope you can help me because I am desperate.
https://www.loom.com/share/caea63125c7f4a9498ef55eb523c7d67
That's right, but since they closed that ticket, I opened another one. I hope there is no problem.
Why is it so difficult to install this development environment? Hahaha
Thank you
Setting and using sdk is not as difficult as you are thinking
Initially it all looks greek and latin but later you will feel comfortable when you are used to of things.
1- I am not sure why you have configured two different java versions, i would suggest to use just one i.e. jdk11 as documented here:
you should see same version for java -version and javac -version. See the example below:
C:\Users\abhinavmishra14>java -version java version "11.0.4" 2019-07-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode) C:\Users\abhinavmishra14>javac -version javac 11.0.4
https://docs.alfresco.com/6.2/concepts/supported-platforms-ACS.html
2- The error is not in english so can't understand properly
The error seems to be due to windows path. Windows often causes issues while executing commands where there is a space between the path.
In your case your maven installation is in "C:\Program Files\apache-maven-3.6.3". Can you move this to "C:\apache-maven-3.6.3"? and update the maven path in environment variable accordingly. This is simplest fix for this error for you
Note: Make sure Docker enginer is running before you use "run.bat", else it will fail after completing build and during launch of containers. As per your video steps, you generated base project for ACS 6.2.x using SDK 4.1.0 which requires docker engine to launch containers and deploy the modules.
This post is tagged as ACS5.2.x, so be sure which version you really want to use. see the supported versions here if you are intended to use ACS5.2.x : https://docs.alfresco.com/5.2/concepts/supported-platforms-ACS.html
@abhinavmishra14
Good morning...
Having read your valuable contributions. I managed to configure the two steps you told me correctly.
Step1: https://docs.alfresco.com/5.2/concepts/sdk-getting-started.html
Step2: https://docs.alfresco.com/5.2/tasks/sdk-develop-eclipse.html
I am configuring version 5.2. This is my configuration
C:\Users\Edgar>java -versionjava version "1.8.0_111"Java(TM) SE Runtime Environment (build 1.8.0_111-b14)Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
C:\Users\Edgar>javac -versionjavac 1.8.0_111
C:\Users\Edgar>mvn -versionJava HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=1024m; support was removed in 8.0Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)Maven home: C:\apache-maven-3.6.3\bin\..Java version: 1.8.0_111, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_111\jreDefault locale: es_VE, platform encoding: Cp1252OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I have is only one error when I compile.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project appropia-platform-jar: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?[ERROR] -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project appropia-platform-jar: Compilation failureNo compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
What can I do to fix it?
Thank you!
Are you running it on WIndows? If so the command is "./run.bat build_start"Also try running "mvn install -DskipTests" beforehand if you didn't already to build the target- directories
@Jendert Thank you very much
This I managed to do. Now I have a problem with Eclipse. Haha
Hi@Jendert
Thank you very much for your help. I managed to solve my problem and now I have my development environment ready.
I'm very happy. I finally managed to set up my development environment. This would not be possible without your help. Thank you very much and blessings.
@viperboys Great news, happy that you are able to setup your dev environment.