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

Robert Munteanu updated SLING-10594:
------------------------------------
    Fix Version/s: Sling Project Archetype 1.0.8
                       (was: Sling Project Archetype 1.0.6)

> 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.8
>
>
> 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.20.1#820001)

Reply via email to