org.apache.sling.security-1.1.12 dependency for SVG images

Avatar

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

55 posts

Correct reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

55 posts

Correct reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
khamat_bn
Level 3

28-05-2020

Hi All,

 

I am using SVG images in my project. So I got to know that we need to upload org.apache.sling.security-1.1.12.jar in system console. Its working fine.

But its not good idea to directly uploading jar in publisher system console. So I have added de pendency to pom.xml but its not installing the same in console.

Any alternative or way to automatically adding the jar by running mvn cmd.

Here is the dependency that I have added.

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.security</artifactId>
<version>1.1.12</version>
</dependency>

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
MVP
Nupur_Jain
MVP

Likes

165 likes

Total Posts

186 posts

Correct reply

76 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile
Nupur_Jain
MVP

31-05-2020

Hi,

 

I am assuming you only want to add this dependency because you want to get it installed in OSGI but you don't have its use in your code.

 

Follow below steps to install the jar with project installation via maven:

1. Download the jar

2. Create a install folder if not already present in your project structure "my-project/ui.apps/src/main/content/jcr_root/apps/my-site/install"

3. Place the sling security jar in this install folder

4. Run mvn command to install project to AEM

5. Check if the jar is installed

 

Placing jar in install folder will automatically get it installed to OSGI once the package get installed. You do not need to add its dependency in the project now but will have to keep jar in your project structure.

 

Hope it helps!

Thanks 

 

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
MVP
Theo_Pendle
MVP

Likes

238 likes

Total Posts

251 posts

Correct reply

105 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
Theo_Pendle
MVP

29-05-2020

Hi @khamat_bn,

What version of AEM are you on? Because I just checked the OOTB bundles for 6.5 and 6.3 and in both cases I find this bundle already deployed 🤔

Selection_038.jpg

Avatar

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
raghavc
Level 4

28-05-2020

Inorder to include a bundle in your code package , you need to add it in content-package-maven-plugin definition of your pom.xml.

 

 <embeddeds>
      <embedded>
            <artifactId>org.apache.sling.security</artifactId>
      </embedded>
 <embeddeds>

 

 

dependency definition should still be present .

 

https://helpx.adobe.com/uk/experience-manager/6-3/sites/developing/using/vlt-mavenplugin.html#Embedd...