You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (Jira)" <ji...@apache.org> on 2021/07/09 12:57:00 UTC

[jira] [Resolved] (SLING-10594) Generated project imports with error in Eclipse

     [ https://issues.apache.org/jira/browse/SLING-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Munteanu resolved SLING-10594.
-------------------------------------
    Resolution: Fixed

Fixed with https://github.com/apache/sling-project-archetype/pull/2 .

> Generated project imports with error in Eclipse
> -----------------------------------------------
>
>                 Key: SLING-10594
>                 URL: https://issues.apache.org/jira/browse/SLING-10594
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>    Affects Versions: Sling Project Archetype 1.0.4
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>            Priority: Major
>             Fix For: Sling Project Archetype 1.0.6
>
>
> I generated a project using the following command
> {noformat}
> $ mvn archetype:generate \
>                              -DarchetypeGroupId=org.apache.sling \
>                              -DarchetypeArtifactId=sling-project-archetype \
>                              -DarchetypeVersion=1.0.4 \
>                              -B \
>                              -DgroupId=com.example \
>                              -DartifactId=apachecon001 \
>                              -Dversion=1.0.0-SNAPSHOT \
>                              -DartifactName=ApacheCon \
>                              -Dpackage=com.example.apachecon \
>                              -DpackageGroup=apachecon \
>                              -DappsFolderName=apachecon001 \
>                              -DcontentFolderName=apachecon001 \
>                              -DslingModelSubPackage=models \
>                              -DslingHostName=localhost \
>                              -DslingPort=8080 \
>                              -DoptionAll=y \
>                              -DoptionExample=s
> {noformat}
> And ended up with a couple of compilation error in Eclipse:
> {noformat}
> Description	Resource	Path	Location	Type
> The declared package "empty" does not match the expected package "com.example.apachecon.empty"	DoesNothing.java	/core/src/main/java/com/example/apachecon/empty	line 17	Java Problem
> The declared package "com.example.apachecon.servlet" does not match the expected package "com.example.apachecon.com.example.apachecon.servlet"	ByPathServletTest.java	/core.example/src/test/java/com/example/apachecon/com/example/apachecon/servlet	line 17	Java Problem
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)