Documentation for the maven-pax-plugin?

411 views
Skip to first unread message

Steinar Bang

unread,
Aug 11, 2016, 3:31:17 PM8/11/16
to op...@googlegroups.com
I read the "maven cookbook" a couple of years back, and one thing I
picked up was using the maven-pax-plugin to start an OSGi container
https://books.sonatype.com/mcookbook/reference/osgi-sect-starting-osgi-container.html
https://books.sonatype.com/mcookbook/reference/ch01s04.html

I've used this to create a gogoshell launcher for my OSGi bundles:
https://github.com/sbang/jsr330activator/tree/master/jsr330activator.gogoshell
https://github.com/steinarb/modelstore/tree/master/modelstore.gogoshell
https://github.com/steinarb/ukelonn/tree/master/ukelonn.gogoshell

I think it's really neat:
Drop into that directory, and do "mvn install pax:provision", and get a
gogoshell prompt, where I can verify that my bundle's actually working,
ie. that it has activated, and that it exposes the expected services.

But the downside is that I haven't been able to find any documentation
for the plugin outside of what's in the "maven cookbook".

Google doesn't find any documentation pages. The github repository
that show up in the results hasn't had its Java files touched in 6
years.
https://github.com/ops4j/org.ops4j.pax.construct/tree/master/maven-pax-plugin

Is this plugin dead?

Is there a new and supported plugin that does something similar?

Thanks!

Achim Nierbeck

unread,
Aug 11, 2016, 4:57:50 PM8/11/16
to op...@googlegroups.com
Hi, 

well pax construct, a main part of Pax Exam isn't needed any longer for pax Exam. 
Therefore it kind of got abandoned. But 7 Month ago a newer release has been made for it. 
So as usual in OSS it is community driven. If you like it, and think it's still worth using, 
go for it and fix bugs if you find them. 
The links on the github project are really outdated, so I fixed that [1] at least ;) 


regards, Achim 




--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master 

Steinar Bang

unread,
Aug 18, 2016, 1:26:38 PM8/18/16
to op...@googlegroups.com
>>>>> "'Achim Nierbeck' via OPS4J" <op...@googlegroups.com>:

> well pax construct, a main part of Pax Exam isn't needed any longer
> for pax Exam. Therefore it kind of got abandoned.

Too bad. It's really neat for quick turnaround in development of
eg. pax web applications.

> But 7 Month ago a newer release has been made for it.

Hm ok, I'll try to find the version number and update my POM.
I tried updating the maven-pax-plugin from 1.5 to 1.6 but version 1.6
wasn't found.

> So as usual in OSS it is community driven. If you like it, and think
> it's still worth using, go for it and fix bugs if you find them. The
> links on the github project are really outdated, so I fixed that [1]
> at least ;)

Thanks! :-)

(Another broken link is the documentation link on the page
https://ops4j1.jira.com/wiki/display/paxconstruct/Documentation
presumably the URL http://www.ops4j.org/projects/pax/construct was
intended to point to a maven module documentation site...?)

FWIW I actually found what was looking for when I was searching for the
maven module documentation, yesterday.

Startup of my web application was flooding my console with debug output,
from the digester and other stuff, but a _lot_ from digester, like
what's mentioned in these links:
http://stackoverflow.com/questions/3814250/how-to-not-log-digester

I tried to set the various properties I found in the <properties>
section of the top gogoshell POM:
https://github.com/steinarb/ukelonn/blob/master/ukelonn.gogoshell/pom.xml

But none of the settings work, so I was looking for a way to set
properties so that they were picked up.

But it turned out I was just trying to set the wrong property.
Yesterday I found this page:
https://ops4j1.jira.com/wiki/display/paxlogging/Configuration
and ended up adding this setting to the above POM:
<properties>
<org.ops4j.pax.logging.DefaultServiceLog.level>INFO</org.ops4j.pax.logging.DefaultServiceLog.level>
</properties>

And now the gogoshell starts quickly and quietly! :-)

Achim Nierbeck

unread,
Aug 18, 2016, 4:09:48 PM8/18/16
to op...@googlegroups.com
2016-08-18 19:26 GMT+02:00 Steinar Bang <s...@dod.no>:
>>>>> "'Achim Nierbeck' via OPS4J" <op...@googlegroups.com>:

> well pax construct, a main part of Pax Exam isn't needed any longer
> for pax Exam.  Therefore it kind of got abandoned.

Too bad.  It's really neat for quick turnaround in development of
eg. pax web applications.

sounds like you want to get your hands dirty and participate, we love contributions :-)
 

> But 7 Month ago a newer release has been made for it.

Hm ok, I'll try to find the version number and update my POM.
I tried updating the maven-pax-plugin from 1.5 to 1.6 but version 1.6
wasn't found.

interesting ... according to maven central a release is there ... 

something we should investigate. 
 

> So as usual in OSS it is community driven. If you like it, and think
> it's still worth using, go for it and fix bugs if you find them.  The
> links on the github project are really outdated, so I fixed that [1]
> at least ;)

Thanks! :-)

(Another broken link is the documentation link on the page
https://ops4j1.jira.com/wiki/display/paxconstruct/Documentation
presumably the URL http://www.ops4j.org/projects/pax/construct was
intended to point to a maven module documentation site...?)

yeah ... need to remove that, as we don't host our own documentation anymore we don't have those any longer ... 
 

FWIW I actually found what was looking for when I was searching for the
maven module documentation, yesterday.

Startup of my web application was flooding my console with debug output,
from the digester and other stuff, but a _lot_ from digester, like
what's mentioned in these links:
 http://stackoverflow.com/questions/3814250/how-to-not-log-digester

I tried to set the various properties I found in the <properties>
section of the top gogoshell POM:
 https://github.com/steinarb/ukelonn/blob/master/ukelonn.gogoshell/pom.xml

But none of the settings work, so I was looking for a way to set
properties so that they were picked up.

But it turned out I was just trying to set the wrong property.
Yesterday I found this page:
 https://ops4j1.jira.com/wiki/display/paxlogging/Configuration
and ended up adding this setting to the above POM:
 <properties>
  <org.ops4j.pax.logging.DefaultServiceLog.level>INFO</org.ops4j.pax.logging.DefaultServiceLog.level>
 </properties>

And now the gogoshell starts quickly and quietly! :-)

nice to see, again we love contributions one can already be improve documentation. 
Need a Jira/Confluence account? Give me a hint I'll create it for you, we've been swamped with Spam on the Jira. 
That's the reason the self-registration is disabled for now. 

regards, Achim 


 

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steinar Bang

unread,
Oct 12, 2016, 11:42:11 AM10/12/16
to 'Achim Nierbeck' via OPS4J
>>>>> "'Achim Nierbeck' via OPS4J" <ops4j-/JYPxA39Uh5...@public.gmane.org>:

[snip!]
> Need a Jira/Confluence account? Give me a hint I'll create it for you,
> we've been swamped with Spam on the Jira.
> That's the reason the self-registration is disabled for now.

I can't promise to contribute anything, but it might be a good idea to
create that account so that I can create Jira issues or comment on
existing ones...:-)

Achim Nierbeck

unread,
Oct 12, 2016, 3:02:09 PM10/12/16
to op...@googlegroups.com
by the way, I just re-opened the self-registration in hope we scared the spammers away ... :)

regards, Achim 


2016-10-12 17:42 GMT+02:00 Steinar Bang <s...@dod.no>:
>>>>> "'Achim Nierbeck' via OPS4J" <ops4j-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>:


[snip!]
> Need a Jira/Confluence account? Give me a hint I'll create it for you,
> we've been swamped with Spam on the Jira.
> That's the reason the self-registration is disabled for now.

I can't promise to contribute anything, but it might be a good idea to
create that account so that I can create Jira issues or comment on
existing ones...:-)
--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages