Skip to content

Commit

Permalink
Do not export generated oma-objects-spec.json file as OSGi package.
Browse files Browse the repository at this point in the history
Remove obsolete package imports. Let maven bundle plugin derive version
range to import from dependency declarations.
  • Loading branch information
Kai Hudalla committed Dec 8, 2015
1 parent cea4fc1 commit 12e617a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions leshan-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,8 @@ Contributors:
<extensions>true</extensions>
<configuration>
<instructions>
<_exportcontents>!*.impl.*, !*.internal.*, *</_exportcontents>
<Import-Package>
org.slf4j;version="1.6",
org.eclipse.californium.*;version="[1.0.0, 1.1)",
org.apache.commons.lang.*;version="[2.6, 3)",
*
</Import-Package>
<_exportcontents>!oma-objects-spec.json, !*.impl.*, !*.internal.*, *</_exportcontents>
<Import-Package>*</Import-Package>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
</instructions>
</configuration>
Expand Down

3 comments on commit 12e617a

@jvermillard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not? maybe someone want to use it for building his UI?

@sophokles73
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to make this possible then we need to put the file in a package and export the package. Then a client can load the file via a classloader.

@jvermillard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok let's see if someone complain :)

Please sign in to comment.