AEM upgrade 6.2 to 6.5 issue | Community
Skip to main content
Level 2
May 9, 2020
Solved

AEM upgrade 6.2 to 6.5 issue

  • May 9, 2020
  • 1 reply
  • 4165 views

missing requirement [cc-services.core [584](R 584.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.csv)(version>=1.6.0)(!(version>=2.0.0))) Unresolved requirements: [[cc-services.core [584](R 584.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.csv)(version>=1.6.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:97) [org.apache.sling.installer.core:3.9.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:914) [org.apache.sling.installer.core:3.9.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:749) [org.apache.sling.installer.core:3.9.0]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:298) [org.apache.sling.installer.core:3.9.0]
at java.lang.Thread.run(Thread.java:745)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ArpitVarshney

Hi @vandanasharma 

Please add the maven dependency for the org.apache.commons.csv in your pom files.[Reference: https://mvnrepository.com/artifact/org.apache.commons/commons-csv/1.8 ]

<dependency>
     <groupId>org.apache.commons</groupId>
    <artifactId>commons-csv</artifactId>
     <version>1.8</version>
</dependency>

 

After that, verify the <Embed-Dependency> tag of maven-bundle-plugin [You can either include all the dependencies or you can configure to not include specific ones]. The scope attribute lets you configure which dependency jars you want to include based on their include scope. You should not include the dependencies which are only needed for compile and for the test.

Below is the example to add the commons-csv to the embed dependency.

 

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Embed-Dependency>*;
|commons-csv
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
</plugin>

 

1 reply

ArpitVarshney
Community Advisor
ArpitVarshneyCommunity AdvisorAccepted solution
Community Advisor
May 9, 2020

Hi @vandanasharma 

Please add the maven dependency for the org.apache.commons.csv in your pom files.[Reference: https://mvnrepository.com/artifact/org.apache.commons/commons-csv/1.8 ]

<dependency>
     <groupId>org.apache.commons</groupId>
    <artifactId>commons-csv</artifactId>
     <version>1.8</version>
</dependency>

 

After that, verify the <Embed-Dependency> tag of maven-bundle-plugin [You can either include all the dependencies or you can configure to not include specific ones]. The scope attribute lets you configure which dependency jars you want to include based on their include scope. You should not include the dependencies which are only needed for compile and for the test.

Below is the example to add the commons-csv to the embed dependency.

 

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Embed-Dependency>*;
|commons-csv
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
</plugin>

 

Level 2
May 27, 2020
It's not working. getting same error message