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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Core Project has dependency on javax.inject [0,1) Bundles and imports not getting deployed

Avatar

Level 4

Capture.PNG

I Have many dependencies on java and director service but none gets deployed. there are no packages imported as well.

<Import-Package>javax.inject;version=0.0.0,*</Import-Package>

<Sling-Model-Packages>

${project}.core

</Sling-Model-Packages>

Is this expected ?

1 Reply

Avatar

Level 10

Next step is to add your Java code to this project and see if that works without issue.

Avatar

Community Advisor

Hi,

As Scott stated, build this simple Maven 11 project and you wont see any issues.

Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archetype 11

Also, please try to include the dependencies properly like Uber Jar in parent as well as core pom.xml

~Ratna.

Avatar

Community Advisor

Hi,

Is your issue resolved. If not, please let us know.

Thanks,

Ratna.

Avatar

Community Advisor

Do you see anything in the logs? Please clear the logs; install the bundle again and check the logs.

Check the services in felix console under http://localhost:4502/system/console/services  and make sure your services are reflecting properly

Avatar

Community Advisor

Hi,
As i can see that people already responded same solution but still I am posting and just want you to verify that all these below stuff in you pom.xml as below.

        <dependency>

            <groupId>com.adobe.aem</groupId>

            <artifactId>uber-jar</artifactId>

            <version>6.3.0</version>

            <scope>provided</scope>

        </dependency>

        <dependency>

            <groupId>javax.inject</groupId>

            <artifactId>javax.inject</artifactId>

            <version>1</version>

        </dependency>

<Import-Package>javax.inject;version=0.0.0,*;resolution:=optional,*</Import-Package>

Avatar

Level 4

I created new project with maven archetype11 and added each dependencies one by one and then it worked. i haven't changed any java code.

Thanks smacdonald2008​ it worked.