[
https://issues.apache.org/jira/browse/SLING-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Munteanu updated SLING-10594:
------------------------------------
Description:
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}
was:
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
Description Resource Path Location Type
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}
> 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)