Maven OSGI error | Community
Skip to main content
Jai1122
New Participant
October 16, 2015
Solved

Maven OSGI error

  • October 16, 2015
  • 24 replies
  • 7705 views

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

Best answer by ogill

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

24 replies

Jai1122
Jai1122Author
New Participant
October 16, 2015

Yes i did that . The log i attached in previous reply is just the part that has Exception. The initial portion of the log is clean

Employee
October 16, 2015

You appear to have some misconfiguration with your project. I'd create a new multimodule project from the adobe archetypes and see if it works for you. Then you can add your code to that.

Regards,

Opkar

Jai1122
Jai1122Author
New Participant
October 16, 2015

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. 

smacdonald2008
New Participant
October 16, 2015

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