summaryrefslogtreecommitdiffstats
path: root/configgen/pom.xml
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-11-30 21:24:44 +0100
committerJon Bratseth <bratseth@gmail.com>2020-11-30 21:24:44 +0100
commit3d56e0f71adf16f8842f157c5f47c2c952377526 (patch)
treeafcec984bb33e81b83cd84aa71e5907e53e5c4f0 /configgen/pom.xml
parent0f2e5b7dba8f7009d227722b9491cc800d4f371b (diff)
Revert "Merge pull request #15549 from vespa-engine/revert-15543-bratseth/apply-on-restart-take-7"
This reverts commit 0f2e5b7dba8f7009d227722b9491cc800d4f371b, reversing changes made to 1d5e07a044bff2aef764cfee0de10802c376e4b7.
Diffstat (limited to 'configgen/pom.xml')
-rw-r--r--configgen/pom.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/configgen/pom.xml b/configgen/pom.xml
index 7d316061a99..a335e345234 100644
--- a/configgen/pom.xml
+++ b/configgen/pom.xml
@@ -52,6 +52,38 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
</plugin>
+ <plugin>
+ <!-- Add headers making this an OSGi bundle (cannot use bundle plugin as this is needed at bootstrap).
+ This is needed because the model of config definitions is part of codegen but needed by modules
+ doing generic access over config.
+ -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <configuration>
+ <finalName>${project.artifactId}</finalName>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <manifestEntries>
+ <Export-Package>com.yahoo.config.codegen</Export-Package>
+ <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>7.0.0</Bundle-Version>
+ <Bundle-Name>${project.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Yahoo!</Bundle-Vendor>
+ <Bundle-ClassPath>.</Bundle-ClassPath>
+ </manifestEntries>
+ </transformer>
+ </transformers>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>