OSGi Manifest for H2 snapshot

53 views
Skip to first unread message

Nicolas Fortin (OrbisGIS)

unread,
Mar 14, 2014, 6:28:28 AM3/14/14
to h2-da...@googlegroups.com
Hi,

I work on how to define a valid snapshot release manifest for H2. It should be used in the release of h2-latest.jar


The result is here:

Manifest-Version: 1.0
Implementation-Title: H2 Database Engine
Implementation-URL: http://www.h2database.com
Implementation-Version: 1.3.176-SNAPSHOT
Build-Jdk: 1.6
Created-By: 1.6.0_27-b27 (Sun Microsystems Inc.)
Main-Class: org.h2.tools.Console
Bundle-Activator: org.h2.util.DbDriverActivator
Bundle-ManifestVersion: 2
Bundle-Name: H2 Database Engine
Bundle-SymbolicName: org.h2
Bundle-Vendor: H2 Group
Bundle-Version: 1.3.176.SNAPSHOT
Bundle-License: http://www.h2database.com/html/license.html
Bundle-Category: jdbc
Import-Package: javax.management,
 javax.naming;resolution:=optional,
 javax.naming.spi;resolution:=optional,
 javax.net,
 javax.net.ssl,
 javax.servlet;resolution:=optional,
 javax.servlet.http;resolution:=optional,
 javax.sql,
 javax.tools;resolution:=optional,
 javax.transaction.xa;resolution:=optional,
 org.apache.lucene.analysis;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.analysis.standard;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.document;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.index;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.queryParser;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.search;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.store;version="[3.0.0,3.1.0)";resolution:=optional,
 org.apache.lucene.util;version="[3.0.0,3.1.0)";resolution:=optional,
 com.vividsolutions.jts.geom;version="1.13";resolution:=optional,
 com.vividsolutions.jts.io;version="1.13";resolution:=optional,
 org.h2;version="[1.3,1.4.0)",
 org.h2.api;version="[1.3,1.4.0)",
 org.h2.fulltext;version="[1.3,1.4.0)",
 org.h2.jdbcx;version="[1.3,1.4.0)",
 org.h2.tools;version="[1.3,1.4.0)",
 org.h2.util;version="[1.3,1.4.0)",
 org.h2.value;version="[1.3,1.4.0)",
 org.osgi.framework;version="1.5",
 org.osgi.service.jdbc;version="1.0",
 org.slf4j;version="[1.6.0,1.7.0)";resolution:=optional
Export-Package: org.h2;version="1.3.176.SNAPSHOT",
 org.h2.api;version="1.3.176.SNAPSHOT",
 org.h2.constant;version="1.3.176.SNAPSHOT",
 org.h2.fulltext;version="1.3.176.SNAPSHOT",
 org.h2.jdbc;version="1.3.176.SNAPSHOT",
 org.h2.jdbcx;version="1.3.176.SNAPSHOT",
 org.h2.tools;version="1.3.176.SNAPSHOT",
 org.h2.util;version="1.3.176.SNAPSHOT",
 org.h2.value;version="1.3.176.SNAPSHOT",
 org.h2.bnf;version="1.3.176.SNAPSHOT" ,
 org.h2.bnf.context;version="1.3.176.SNAPSHOT"
Premain-Class: org.h2.util.Profiler

Thanks for reading

-Nicolas Fortin
Atelier SIG, IRSTV FR CNRS 2488

Thomas Mueller

unread,
Mar 20, 2014, 2:53:27 AM3/20/14
to h2-da...@googlegroups.com
Hi,

You are adding "-SNAPSHOT" to the version. Was there any other change? I will try to change the build so that all "h2-latest" are automatically snapshot versions.

Regards,
Thomas
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Nicolas Fortin (OrbisGIS)

unread,
Mar 20, 2014, 4:20:51 AM3/20/14
to h2-da...@googlegroups.com
Hi,

Great ! Only Implementation-Version support the - character. Other attributes must use dot instead 1.3.176.SNAPSHOT

I don't know if it is complicated to deploy snapshot on maven central. I follow this file to do release for h2gis but I do not automated the process. https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide?__utma=246996102.1370845598.1382454439.1382454439.1382454439.1&__utmb=246996102.4.10.1382454439&__utmc=246996102&__utmx=-&__utmz=246996102.1382454439.1.1.utmcsr=google|utmccn=%28organic%29|utmcmd=organic|utmctr=%28not%20provided%29&__utmv=-&__utmk=245989639#SonatypeOSSMavenRepositoryUsageGuide-7a.2.PublishSnapshots

We currently use H2 trunk in H2GIS.

Regards,

Nicolas Fortin
RISING team
CNRS - Ecole Centrale de Nantes
BP 92101
1 rue de la Noë, 44321 NANTES Cedex 3
France
http://www.ec-nantes.fr/

Thomas Mueller

unread,
Mar 22, 2014, 12:55:47 PM3/22/14
to H2 Google Group
Hi,

I thought Maven uses "-SNAPSHOT", so I assumed OSGi does as well. Somebody told me "-" before the "SNAPSHOT" was a problem for Apache Felix but is now solved. Are you sure "-" is a problem? If yes, would it be better to use ".SNAPSHOT" everywhere? What about ".snapshot" (lowercase)?

Regards,
Thomas



--

Nicolas Fortin (OrbisGIS)

unread,
Mar 24, 2014, 4:14:26 AM3/24/14
to h2-da...@googlegroups.com
Hi,

Yes the - is a problem, I try it. The provided manifest works.

Implementation-Version is the same as pom version:

http://maven.apache.org/maven-1.x/plugins/jar/manifest.html


Regards,

Nicolas Fortin
RISING team
CNRS - Ecole Centrale de Nantes
BP 92101
1 rue de la Noë, 44321 NANTES Cedex 3
France
http://www.ec-nantes.fr/

Reply all
Reply to author
Forward
0 new messages