= Spring Cloud Stream & Task Maven Metadata Plugin
Maven plugin for aggregating Spring Boot metadata from all dependencies of a project into a single metadata-only artifact.
== Usage
To use this plugin, configure this plugin for your app project:
[source, xml]
----
org.springframework.cloud
spring-cloud-dataflow-apps-metadata-plugin
1.1.0-SNAPSHOT
aggregate-metadata
compile
aggregate-metadata
----
This will produce and attach to the build a jar file named `--metadata.jar` where the `metadata` suffix is the maven classifier and can be customized as follows:
[source, xml]
----
org.springframework.cloud
spring-cloud-dataflow-apps-metadata-plugin
1.1.0-SNAPSHOT
aggregate-metadata
compile
aggregate-metadata
mymetadata
----
The gathered metadata can be filtered and stored into a java properties file named `META-INF/spring-configuration-metadata-encoded.properties`.
The file includes a single property named `org.springframework.cloud.dataflow.spring.configuration.metadata.json` which contains the filtered metadata encoded as Base64.
To activate the feature, set the `storeFilteredMetadata` configuration option to `true`.
Use the `metadataFilter` configuration option to specify the metadata to include.
The following example includes the `server.port` property and all properties from two configuration properties classes:
[source, xml]
----
org.springframework.cloud
spring-cloud-dataflow-apps-metadata-plugin
1.1.0-SNAPSHOT
true
server.port
com.example.MyConfigProperties
com.example.MyOtherConfigProperties
aggregate-metadata
compile
aggregate-metadata
----