Hi,
I am implementing Global Configuration Model for C5 API Manger.
There to get the config docs created i have used the below maven plugin in
component pom.xml
The config bean class/classes has to be specified in configurations as
<configclasses> as shown below.
Then configuration document file(<config-namespace-value>.yaml) files w.r.t
two bean classes i have specified were generated in
target/classes/config-docs directory.
<plugin>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.plugins.configuration</artifactId>
<executions>
<execution>
<goals>
<goal>create-doc</goal>
</goals>
<configuration>
<configclasses>
<configclass>org.wso2.carbon.apimgt.core.APIMConfigurations</configclass>
<configclass>org.wso2.carbon.apimgt.core.KeyMgtConfigurations</configclass>
</configclasses>
</configuration>
<phase>compile</phase>
</execution>
</executions>
</plugin>
Then i have put following plugin in feature pom to copy the config-doc
files to the feature. When feature builds, it is supposed to copy configuration
document file(<config-namespace-value>.yaml) to config-docs directory.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wso2.carbon.apimgt</groupId>
<artifactId>org.wso2.carbon.apimgt.core</artifactId>
<version>7.0.0-SNAPSHOT</version>
<type>bundle</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/docs</outputDirectory>
<includes>config-docs/**</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
But this is not get copied in feature target/docs directory as i have
noticed.
With the help of Niranjan found out that there is an issue in copying the
files.
@kernel team,
Can we get a fix for this?
Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev