[prev in list] [next in list] [prev in thread] [next in thread]
List: esb-java-dev
Subject: Re: [Dev] [APIM][C5] Issue while Implementing Global Configuration Model
From: Danesh Kuruppu <danesh () wso2 ! com>
Date: 2016-12-23 7:52:28
Message-ID: CAA4dwAxOcbWpS_HAOChF3nm22mXYHgiyYL3Cv3s9=HG7enyMfg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi Ishara,
I created the issue[1] and will fix the issue in the next release.
1. https://github.com/wso2/carbon-kernel/issues/1223
Thanks
Danesh
On Fri, Dec 23, 2016 at 10:39 AM, Ishara Cooray <isharac@wso2.com> wrote:
> Hi Danesh/Niranjan,
>
> Adding following to the component pom copies the docs to jar which
> resolved the docs not getting copied in feature.
>
> <resources>
> <resource>
> <directory>${project.build.directory}/classes/config-docs</directory>
> <targetPath>config-docs</targetPath>
> </resource>
> </resources>
>
>
> Thanks for the support.
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Thu, Dec 22, 2016 at 2:28 PM, Niranjan Karunanandham <niranjan@wso2.com
> > wrote:
>
>> Hi Ishara,
>>
>> You can include the resources, i.e., the config-docs, into the jar by
>> using "<Include-Resource>" in the maven-bundle-plugin.
>>
>> Regards,
>> Nira
>>
>> On Thu, Dec 22, 2016 at 12:57 PM, Ishara Cooray <isharac@wso2.com> wrote:
>>
>>> 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.pl
>>> ugins.configuration</artifactId>
>>> <executions>
>>> <execution>
>>> <goals>
>>> <goal>create-doc</goal>
>>> </goals>
>>> <configuration>
>>> <configclasses>
>>> <configclass>org.wso2.carbon.a
>>> pimgt.core.APIMConfigurations</configclass>
>>> <configclass>org.wso2.carbon.a
>>> pimgt.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.apimg
>>> t</groupId>
>>> <artifactId>org.wso2.carbon.ap
>>> imgt.core</artifactId>
>>> <version>7.0.0-SNAPSHOT</version>
>>> <type>bundle</type>
>>> <overWrite>true</overWrite>
>>> <outputDirectory>${project.bui
>>> ld.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 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>
--
*Danesh Kuruppu*
Senior Software Engineer | WSO2
Email: danesh@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc <https://wso2.com/signature>
[Attachment #5 (text/html)]
<div dir="ltr"><div><div><div>Hi Ishara,<br><br></div>I created the issue[1] and will \
fix the issue in the next release.<br><br>1. <a \
href="https://github.com/wso2/carbon-kernel/issues/1223">https://github.com/wso2/carbon-kernel/issues/1223</a><br><br></div>Thanks<br></div>Danesh<br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 23, 2016 at 10:39 AM, \
Ishara Cooray <span dir="ltr"><<a href="mailto:isharac@wso2.com" \
target="_blank">isharac@wso2.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div>Hi \
Danesh/Niranjan,<br><br></div>Adding following <span dir="ltr" \
style="text-align:left" id="m_7753321688786033117gmail-:if.co" \
class="m_7753321688786033117gmail-tL8wMe m_7753321688786033117gmail-EMoHub">to the \
component pom copies the docs to jar which resolved the docs not getting copied in \
feature.<br><br></span> <span dir="ltr" style="text-align:left" \
id="m_7753321688786033117gmail-:15p.co" class="m_7753321688786033117gmail-tL8wMe \
m_7753321688786033117gmail-EMoHub"><resources><br> <resource><br> \
<directory>${project.build.<wbr>directory}/classes/config-<wbr>docs</directory><br> \
<targetPath>config-docs</<wbr>targetPath><br> \
</resource><br></resources><br><br><br></span></div><span dir="ltr" \
style="text-align:left" id="m_7753321688786033117gmail-:15p.co" \
class="m_7753321688786033117gmail-tL8wMe m_7753321688786033117gmail-EMoHub">Thanks \
for the support.<br></span></div><div class="gmail_extra"><span class=""><br \
clear="all"><div><div class="m_7753321688786033117gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div><div>Thanks & Regards,<br>Ishara \
Cooray<br></div><span style="color:rgb(153,153,153)">Senior Software \
Engineer<br></span></div><span style="color:rgb(153,153,153)">Mobile : <a \
href="tel:+94%2077%20262%209512" value="+94772629512" target="_blank">+9477 262 \
9512</a></span><br><div><span><font color="#888888">WSO2, Inc. | <a \
href="http://wso2.com/" target="_blank">http://wso2.com/</a><br>Lean . Enterprise . \
Middleware<br></font></span></div></div></div></div></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Thu, Dec 22, 2016 at \
2:28 PM, Niranjan Karunanandham <span dir="ltr"><<a \
href="mailto:niranjan@wso2.com" target="_blank">niranjan@wso2.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hi Ishara,<div><br></div><div>You can \
include the resources, i.e., the config-docs, into the jar by using \
"<Include-Resource>" in the \
maven-bundle-plugin.</div><div><br></div><div>Regards,</div><div>Nira</div></div><div \
class="gmail_extra"><div><div class="m_7753321688786033117h5"><br><div \
class="gmail_quote">On Thu, Dec 22, 2016 at 12:57 PM, Ishara Cooray <span \
dir="ltr"><<a href="mailto:isharac@wso2.com" \
target="_blank">isharac@wso2.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><span \
style="font-family:verdana,sans-serif"><font \
size="2">Hi,<br><br></font></span></div><span \
style="font-family:verdana,sans-serif"><font size="2">I am implementing Global \
Configuration Model for C5 API Manger.<br></font></span></div><span \
style="font-family:verdana,sans-serif"><font size="2">There to get the config docs \
created i have used the below maven plugin in component \
pom.xml<br><br></font></span></div><span style="font-family:verdana,sans-serif"><font \
size="2">The config bean class/classes has to be specified in configurations as \
<configclasses> as shown below.<br></font></span></div><span \
style="font-family:verdana,sans-serif"><font size="2">Then <span \
style="color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">configuration \
document file(<config-namespace-value>.<wbr>yaml)</span> files w.r.t two bean \
classes i have specified were generated in target/classes/config-docs \
directory.<br></font></span><div><div><span \
style="font-family:verdana,sans-serif"><font size="2"><br> \
<plugin><br> \
<groupId>org.wso2.carbon</grou<wbr>pId><br> \
<artifactId><a href="http://org.wso2.carbon.pl" \
target="_blank">org.wso2.carbon.pl</a><wbr>ugins.configuration</artifactI<wbr>d><br> \
<executions><br> <execution><br> \
<goals><br> \
<goal>create-doc</goal><br> \
</goals><br> \
<configuration><br> \
<configclasses><br> \
<wbr> <configclass>org.wso2.carbon.a<wbr>pimgt.core.APIMConfigurations<<wbr>/configclass><br> \
<wbr> <configclass>org.wso2.carbon.a<wbr>pimgt.core.KeyMgtConfiguration<wbr>s</configclass><br> \
</configclasses><br> \
</configuration><br> \
<phase>compile</phase><br> \
</execution><br> </executions><br> \
</plugin><br></font></span><div><div><span \
style="font-family:verdana,sans-serif"><font \
size="2"><br></font></span></div><div><span \
style="font-family:verdana,sans-serif"><font size="2">Then i have put following \
plugin in feature pom <span \
style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" \
id="m_7753321688786033117m_8060297592483949878m_-4268904244845557835gmail-docs-internal-guid-284e76bb-255e-a62d-849e-bfd83dd27845"> \
to copy the config-doc files to the feature. </span></font></span><span \
style="font-family:verdana,sans-serif"><font size="2"><span \
style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" \
id="m_7753321688786033117m_8060297592483949878m_-4268904244845557835gmail-docs-internal-guid-284e76bb-255e-a62d-849e-bfd83dd27845"><span \
style="font-family:verdana,sans-serif"><font size="2"><span \
style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" \
id="m_7753321688786033117m_8060297592483949878m_-4268904244845557835gmail-docs-internal-guid-284e76bb-255e-a62d-849e-bfd83dd27845">When \
feature builds, i</span></font></span>t is supposed to copy </span><span \
style="color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">configuration \
document file(<config-namespace-value>.<wbr>yaml) to </span><span \
style="color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:italic \
;font-variant:normal;text-decoration:none;vertical-align:baseline">config-docs</span><span \
style="color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \
directory.<br><br> <plugin><br> \
<groupId>org.apache.maven.plug<wbr>ins</groupId><br> \
<artifactId>maven-dependency-p<wbr>lugin</artifactId><br> \
<executions><br> <execution><br> \
<id>unpack</id><br> \
<phase>package</phase><br> \
<goals><br> \
<goal>unpack</goal><br> \
</goals><br> \
<configuration><br> \
<artifactItems><br> \
<wbr> <artifactItem><br> \
<wbr> <groupId>org.wso2.carbon.apimg<wbr>t</groupId><br> \
<wbr> <artifactId>org.wso2.carbon.ap<wbr>imgt.core</artifactId><br> \
<wbr> <version>7.0.0-SNAPSHOT</versi<wbr>on><br> \
<wbr> <type>bundle</type><br> \
<wbr> <overWrite>true</overWrite><br> \
<wbr> <outputDirectory>${project.bui<wbr>ld.directory}/docs</outputDire<wbr>ctory><br> \
<wbr> <includes>config-docs/**</incl<wbr>udes><br> \
<wbr> </artifactItem><br> \
</artifactItems><br> \
</configuration><br> \
</execution><br> </executions><br> \
</plugin><br><br></span></font></span></div><div><span \
style="font-family:verdana,sans-serif"><font size="2"><span \
style="color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">But \
this is not get copied in feature target/docs directory as i have noticed. \
<br></span></font></span></div><div><span \
style="font-family:verdana,sans-serif"><font \
size="2"><br></font></span></div><div><span \
style="font-family:verdana,sans-serif"><font size="2">With the help of Niranjan found \
out that there is an issue in copying the \
files.<br><br></font></span></div><div><span \
style="font-family:verdana,sans-serif"><font size="2">@kernel \
team,<br></font></span></div><div><span style="font-family:verdana,sans-serif"><font \
size="2">Can we get a fix for this?<br><br><br \
clear="all"></font></span></div><div><div><div><div \
class="m_7753321688786033117m_8060297592483949878m_-4268904244845557835gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span \
style="font-family:verdana,sans-serif"><font size="2">Thanks & Regards,<br>Ishara \
Cooray<br></font></span></div><span style="font-family:verdana,sans-serif"><font \
size="2"><span style="color:rgb(153,153,153)">Senior Software \
Engineer<br></span></font></span></div><span \
style="font-family:verdana,sans-serif"><font size="2"><span \
style="color:rgb(153,153,153)">Mobile : <a href="tel:+94%2077%20262%209512" \
value="+94772629512" target="_blank">+9477 262 \
9512</a></span><br></font></span><div><span \
style="font-family:verdana,sans-serif"><font size="2"><font color="#888888">WSO2, \
Inc. | <a href="http://wso2.com/" target="_blank">http://wso2.com/</a><br>Lean . \
Enterprise . Middleware<br></font></font></span></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span \
class="m_7753321688786033117HOEnZb"><font color="#888888">-- <br><div \
class="m_7753321688786033117m_8060297592483949878gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><span><font color="#888888"><b><br>Niranjan \
Karunanandham<br></b><span><font color="#888888"><span><font \
color="#888888"><div><font face="georgia, serif">Associate Technical Lead</font> - \
WSO2 Inc.<br><span><font color="#888888"><span><font color="#888888"><span><font \
color="#888888"><span><font color="#888888"><a value="+94773191455"><span><font \
color="#888888">WSO2 Inc.</font></span></a></font></span>: <a \
href="http://www.wso2.com" \
target="_blank">http://www.wso2.com</a></font></span></font></span></font></span></div><div><span><font \
color="#888888"><span><font color="#888888"><span><a href="http:///" \
target="_blank"></a><span></span><span></span><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png"><br></span></fon \
t></span></font></span></div></font></span></font></span></font></span></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>
<p style="margin-bottom:0in"><span style="font-family:tahoma,sans-serif"><font \
color="#888888"><span></span><span></span><font size="2"><span \
style="font-family:trebuchet ms,sans-serif"><b>Danesh \
Kuruppu</b></span></font></font></span></p><span \
style="font-family:georgia,serif"><span style="font-family:trebuchet \
ms,sans-serif"><font color="#888888">Senior Software Engineer | WSO2<br><br>Email: <a \
href="mailto:danesh@wso2.com" \
target="_blank">danesh@wso2.com</a></font></span></span><br><span \
style="font-family:georgia,serif"><span style="font-family:trebuchet \
ms,sans-serif"><font color="#888888"><span><span \
style="font-family:georgia,serif"><span style="font-family:trebuchet \
ms,sans-serif"><font color="#888888">Mobile: +94 (77) 1690552</font></span><font \
color="#888888"><span \
style="font-family:arial,helvetica,sans-serif"><br></span></font></span></span>Web: \
<a href="https://wso2.com/signature" target="_blank">WSO2 Inc</a></font></span><font \
color="#888888"><br><img \
src="http://c.content.wso2.com/signatures/wso2-signature-general.png"><br></font></span></div><span \
style="font-family:georgia,serif"></span><span \
style="font-family:georgia,serif"></span>
</div></div></div></div>
</div>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic