Expand my Community achievements bar.

SOLVED

Maven OSGI error

Avatar

Level 5

Hi All,

   I tried to setup a maven project and refered the help docs.

I have successfully compiled and jar files are available in the target folder. But it is not getting installed to the CQ instance.

In the maven logs i could see "D://Workspace/target/my-bundle-SNAPSHOT-1.0-Jar is not an OSGI bundle, not uploading" .  

I am not sure what could be the error. 

Can someone please help me on this!!

Thanks,

Jai

1 Accepted Solution

Avatar

Correct answer by
Employee

What happens when you run the maven command mvn clean install -Pautoinstallbundle inside the bundle folder?

View solution in original post

22 Replies

Avatar

Level 5

smacdonald2008 wrote...

Why not use mvn clean install and install the bundle manually as described in the article. 

 

My requirement is i need to run a maven command that will install the bundle and content packages. I am sure there is a way to achieve this and  I have already done this referring to this link in the past.

As Opkar said there might be some misconfig in my project's pom files. I am trying to figure out that. 

Avatar

Level 10

Why not use mvn clean install and install the bundle manually as described in the article.