Export only proper OSGI packages

- Do not generate "uses" OSGI clauses
This commit is contained in:
Stanislav Ochotnicky 2012-08-07 11:06:28 +02:00
parent 3f1f7ca4cf
commit 1eedb2111d

View File

@ -34,7 +34,7 @@
Name: %{parent}-%{subname} Name: %{parent}-%{subname}
Version: 2.4 Version: 2.4
Release: 6%{?dist} Release: 7%{?dist}
Summary: Plexus Classworlds Classloader Framework Summary: Plexus Classworlds Classloader Framework
License: ASL 2.0 and Plexus License: ASL 2.0 and Plexus
Group: Development/Libraries Group: Development/Libraries
@ -101,7 +101,8 @@ sed -i 's:<groupId>ant</groupId>:<groupId>org.apache.ant</groupId>:' pom.xml
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<instructions> <instructions>
<Export-Package>*</Export-Package> <_nouses>true</_nouses>
<Export-Package>org.codehaus.classworlds.*;org.codehaus.plexus.classworlds.*</Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin>" </plugin>"
@ -133,6 +134,10 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name} %doc %{_javadocdir}/%{name}
%changelog %changelog
* Tue Aug 7 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4-7
- Export only proper OSGI packages
- Do not generate "uses" OSGI clauses
* Mon Aug 06 2012 Gerard Ryan <galileo@fedoraproject.org> - 2.4-6 * Mon Aug 06 2012 Gerard Ryan <galileo@fedoraproject.org> - 2.4-6
- Generate OSGI info using maven-plugin-bundle - Generate OSGI info using maven-plugin-bundle