Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Problems building the project created by the aem-project-archetype-aem-project-archetype-27

Avatar

Avatar
Boost 3
Level 2
FuguSailor
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Boost 3
Boost 1
Validate 1
Affirm 1
View profile

Avatar
Boost 3
Level 2
FuguSailor
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Boost 3
Boost 1
Validate 1
Affirm 1
View profile
FuguSailor
Level 2

19-05-2021

I have downloaded the aem-project-archetype-aem-project-archetype-27 package, completed the mvn clean install process. Then I created the new project using the batch method described in the README.md file. Now I change to the generated folder and run mvn clean install to build that sub project and I receive the following error:

[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (archetype-pre-package-transformation) on project apple: Execution archetype-pre-package-transformation of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: startup failed:
[ERROR] script1.groovy: 1: Unexpected input: '\' @ line 1, column 3.
[ERROR] C:\dev\aem-project-archetype-aem-project-archetype-27\apple/src/main/resources/META-INF/archetype-pre-package.groovy
[ERROR] ^
[ERROR]
[ERROR] 1 error
[ERROR]
[ERROR] -> [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/PluginExecutionException

 

I have recreated the project several times with different settings and each time, I encounter this error. I have yet to find a solution by searching the web.

The operating system is Windows 10

 

Thanks in advance for your help.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
FuguSailor
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Boost 3
Boost 1
Validate 1
Affirm 1
View profile

Avatar
Boost 3
Level 2
FuguSailor
Level 2

Likes

3 likes

Total Posts

7 posts

Correct Reply

2 solutions
Top badges earned
Boost 3
Boost 1
Validate 1
Affirm 1
View profile
FuguSailor
Level 2

19-05-2021

I think I have the answer. In the root project pom, there is a <parent> section that refers to the online archetype. I commented out that section and it no longer has the issue with the groovy compiler and now builds fine.

Answers (2)

Answers (2)

Avatar

Avatar
Establish
Level 2
kchaurasiya
Level 2

Likes

10 likes

Total Posts

19 posts

Correct Reply

2 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 2
kchaurasiya
Level 2

Likes

10 likes

Total Posts

19 posts

Correct Reply

2 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 2

01-06-2021

I have Created a new AEM Project with Archetype 26 and i faced the below issue and resolve it.

1. Setup Java 11(Recommended)
2. Setup AEM 6.5 Instance. Once AEM is setup then installed the "aem-service-pkg-6.5.4.zip" service package.
3. Create a new Project structure using the below command:
mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26 -D appTitle="My Project" -D appId="myproject" -D groupId="com.myproject.aem" -D artifactId="myproject-aem-project" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.4" -D includeDispatcherConfig=n -D includeExamples=n
Whenever run the above command getting below error while creating a project structure with dispatcher modules.

ERROR : Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: java.nio.file.FileSystemException: Project path(Example: /Myproject/): A required privilege is not held by the client. -> [Help 1]
4. To fix the above error i have not included dispatcher modules by adding "includeDispatcherConfig=n" parameter in command, So remove this from command and run.

5. Project structure got created successfully as per the below.

keshavc60185412_0-1622531852401.png

 

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

470 likes

Total Posts

1,039 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

470 likes

Total Posts

1,039 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

19-05-2021

Hi @FuguSailor 

 

   I am assuming you are mentioning about creating a project from scratch. I am not sure how you are doing it with the steps you mentioned. May be if you cross check your steps with https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-devel... and see if you are following the steps properly , may be that would help. 

 

Thanks

Veena