Skip to main content
salvadorm142499
Level 3
Sep 15, 2016 10:44 AM UTC
Solved

Maven dependency for uber-jar does not find its version

Hi all,

I have created a new project by using Eclipse+AEM Plugin for AEM 6.2 based on a multi-module project whose archetype is: aem project archetype 10.

Then, I have removed this dependency:

            <dependency>
                <groupId>com.adobe.aem</groupId>
                <artifactId>aem-api</artifactId>
                <version>6.0.0.1</version>
                <scope>provided</scope>
            </dependency>

And, following the link https://docs.adobe.com/docs/en/aem/6-2/develop/dev-tools/ht-projects-maven.html, I have added this:

    
<dependency>
    <groupId>com.adobe.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <version>6.2.0</version>
    <classifier>apis</classifier>
    <scope>provided</scope>
</dependency>

 

After building my project, I get this error:

[ERROR] Some problems were encountered while processing the POMs:

[ERROR] 'dependencies.dependency.version' for com.adobe.aem:uber-jar:jar is missing. @ com.myproject:aem-bundle-core:[unknown-version]

 

Does anybody know what I am missing?

 

Thanks, Salvador.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Feike_Visser1
Feike_Visser1Accepted solution
Adobe Employee
Sep 16, 2016 8:10 AM UTC

Can you checkout/clone this git project, that is working and should bring you further:

git: git clone https://github.com/heervisscher/l318.git

cd l318/lasvegas

maven: mvn clean install -s settings.xml -U

12 replies

Feike_Visser1
Adobe Employee
Adobe Employee
Sep 15, 2016 1:08 PM UTC

Did you add the repo-locations?

See here documentation what you need to add: https://docs.adobe.com/docs/en/aem/6-2/develop/dev-tools/ht-projects-maven.html

Translate
salvadorm142499
Level 3
Sep 15, 2016 1:27 PM UTC

Sure! :) It is already within the archetype.

Translate
smacdonald2008
Level 10
Sep 15, 2016 1:31 PM UTC

I will try this too - i have used 6.1 as 6.2 was causing issue. I will post back my findings. 

Translate
smacdonald2008
Level 10
Sep 15, 2016 1:44 PM UTC

Yup - i can reproduce this issue - please file a ticket as per Kautuk's suggestion. This is not working the way it should. 

Translate
Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
Sep 16, 2016 8:10 AM UTC

Can you checkout/clone this git project, that is working and should bring you further:

git: git clone https://github.com/heervisscher/l318.git

cd l318/lasvegas

maven: mvn clean install -s settings.xml -U

Translate
salvadorm142499
Level 3
Sep 16, 2016 10:15 AM UTC

Hi Feike,

Thanks for this suggestion. I found the issue by looking at 'Las Vegas' project. The issue was I did not specify the classifier on the child modules.

Thanks for your support,

Salva.

Translate
salvadorm142499
Level 3
Sep 16, 2016 10:16 AM UTC

smacdonald2008 wrote...

Yup - i can reproduce this issue - please file a ticket as per Kautuk's suggestion. This is not working the way it should. 

 

Hi smacdonald,

All we needed is to specify the classifier on the dependency section of the child modules.

Regards,

Salvador.

Translate
salvadorm142499
Level 3
Sep 16, 2016 10:35 AM UTC

Hi Feike,

The core bundle from 'Las Vegas' project isn't active into the OSGi Container due to: javax.inject,version=[0.0,1) -- Cannot be resolved. This is a knwon issue and all you need to do is to include this dependency:

            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-atinject_1.0_spec</artifactId>
                <version>1.0</version>
                <scope>provided</scope>
            </dependency>

Then, add it to the core module as the first dependency and the bundle will be active --> javax.inject,version=1.0.0 from org.apache.geronimo.specs.geronimo-atinject_1.0_spec (294)

I hope it helps other people.

Cheers,

Salvador.

Translate
kautuk_sahni
Level 9
Sep 16, 2016 10:46 AM UTC

Hi Salvador, 

Thank you, this would surly help the community.

~kautuk

Translate
Kautuk Sahni