<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:24:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-2928] Maven deploy fails on mod-remote-storage master branch</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2928</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt;&lt;br/&gt;
Compilation error occurs upon maven deploy on master branch after merge of 
    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;MODRS-3&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODRS-3&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Remote storages configuration in FOLIO&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10309?size=medium&quot; /&gt;
            MODRS-3
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
 branch (see &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/folio-org/job/mod-remote-storage/job/master/28/execution/node/126/log/&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;log&lt;/a&gt; for details):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/jenkins/workspace/io-org_mod-remote-storage_master/src/main/java/org/folio/rs/mapper/ConfigurationsMapper.java:[17,8] Internal error in the mapping processor: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; type org.folio.rs.mapper.ConfigurationsMapperImpl ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Local maven build works fine.&lt;/p&gt;</description>
                <environment></environment>
        <key id="81887">FOLIO-2928</key>
            <summary>Maven deploy fails on mod-remote-storage master branch</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d">Jakub Skoczen</assignee>
                                                                <reporter accountid="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3">Siarhei Charniak</reporter>
                                    <labels>
                    </labels>
                <created>Wed, 23 Dec 2020 14:26:58 +0000</created>
                <updated>Tue, 5 Jan 2021 14:38:10 +0000</updated>
                            <resolved>Fri, 25 Dec 2020 12:34:15 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                                                            <comment id="198580" author="70121:84bca0b8-4380-4d87-8a90-53e9133584f6" created="Wed, 23 Dec 2020 21:12:31 +0000"  >&lt;p&gt;My gut feeling is that it is due to Linux user, which run maven build doesn&apos;t have permissions to create files.&lt;/p&gt;</comment>
                                                            <comment id="198581" author="5aa10ef7a1b38e2ee99fecb0" created="Thu, 24 Dec 2020 11:16:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ab8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; class=&quot;user-hover&quot; rel=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; data-account-id=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; accountid=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; rel=&quot;noreferrer&quot;&gt;Jakub Skoczen&lt;/a&gt; Could you please help, who could check this ticket today or no later than Monday?&lt;/p&gt;</comment>
                                                            <comment id="198583" author="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3" created="Thu, 24 Dec 2020 12:52:13 +0000"  >&lt;p&gt;This error occurs because &lt;tt&gt;ConfigurationsMapperImpl.class&lt;/tt&gt; already exists in &lt;tt&gt;target&lt;/tt&gt; dir. Is it possible to clean &lt;tt&gt;target&lt;/tt&gt; before maven deploy?&lt;/p&gt;</comment>
                                                            <comment id="198584" author="63e2a2771b13d42998e4e706" created="Thu, 24 Dec 2020 12:59:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; class=&quot;user-hover&quot; rel=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; data-account-id=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; accountid=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; rel=&quot;noreferrer&quot;&gt;Siarhei Charniak&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;This error occurs because ConfigurationsMapperImpl.class already exists in target dir. Is it possible to clean target before maven deploy?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Does that mean this issue occurs locally if following the same steps as the Jenkins build without using a &lt;tt&gt;clean&lt;/tt&gt; goal?&lt;/p&gt;</comment>
                                                            <comment id="198586" author="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3" created="Thu, 24 Dec 2020 13:11:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=63e2a2771b13d42998e4e706&quot; class=&quot;user-hover&quot; rel=&quot;63e2a2771b13d42998e4e706&quot; data-account-id=&quot;63e2a2771b13d42998e4e706&quot; accountid=&quot;63e2a2771b13d42998e4e706&quot; rel=&quot;noreferrer&quot;&gt;Marc Johnson&lt;/a&gt;, yes&lt;/p&gt;</comment>
                                                            <comment id="198588" author="63e2a2771b13d42998e4e706" created="Thu, 24 Dec 2020 14:21:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; class=&quot;user-hover&quot; rel=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; data-account-id=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; accountid=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; rel=&quot;noreferrer&quot;&gt;Siarhei Charniak&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Does that mean it can be fixed without the involvement of the DevOps folks by making the deploy step tolerate the pre-existence of that class?&lt;/p&gt;

&lt;p&gt;By any chance is &lt;tt&gt;ConfigurationsMapperImpl&lt;/tt&gt; generated code?&lt;/p&gt;</comment>
                                                            <comment id="198590" author="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3" created="Thu, 24 Dec 2020 14:40:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=63e2a2771b13d42998e4e706&quot; class=&quot;user-hover&quot; rel=&quot;63e2a2771b13d42998e4e706&quot; data-account-id=&quot;63e2a2771b13d42998e4e706&quot; accountid=&quot;63e2a2771b13d42998e4e706&quot; rel=&quot;noreferrer&quot;&gt;Marc Johnson&lt;/a&gt;&lt;br/&gt;
&lt;tt&gt;ConfigurationsMapperImpl&lt;/tt&gt; is generated class. &lt;tt&gt;Filer&lt;/tt&gt; interface is used for its generation and it throws &lt;tt&gt;FilerException&lt;/tt&gt; in case when target file already exists. &quot;Maven deploy&quot; step runs by executing &lt;tt&gt;mvn -DskipTests deploy&lt;/tt&gt; command, without &lt;tt&gt;clean&lt;/tt&gt; goal. As I understand, &lt;tt&gt;target&lt;/tt&gt; dir (along with &lt;tt&gt;ConfigurationsMapperImpl&lt;/tt&gt; in it) is already created upon previously executed &quot;Maven build&quot; step.&lt;/p&gt;</comment>
                                                            <comment id="198591" author="63e2a2771b13d42998e4e706" created="Thu, 24 Dec 2020 15:55:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; class=&quot;user-hover&quot; rel=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; data-account-id=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; accountid=&quot;712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3&quot; rel=&quot;noreferrer&quot;&gt;Siarhei Charniak&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;ConfigurationsMapperImpl is generated class. Filer interface is used for its generation and it throws FilerException in case when target file already exists.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I&apos;ve just cloned the code, this can be reproduced by issuing &lt;tt&gt;mvn compile&lt;/tt&gt; twice without an intermediary &lt;tt&gt;clean&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;My understanding is that it should be ok to execute the &lt;tt&gt;compile&lt;/tt&gt; goal repeatedly without a &lt;tt&gt;clean&lt;/tt&gt; with each one performing an incremental compile.&lt;/p&gt;

&lt;p&gt;I think rather than asking the DevOps folks to change the build process, instead change the code generation to not fail on subsequent executions by not attempting to regenerate the file unless it needs to.&lt;/p&gt;

&lt;p&gt;I&apos;m not a maven expert, so I may be wrong about this, maybe folks like &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5f8314dfbdef80006f6f572d&quot; class=&quot;user-hover&quot; rel=&quot;5f8314dfbdef80006f6f572d&quot; data-account-id=&quot;5f8314dfbdef80006f6f572d&quot; accountid=&quot;5f8314dfbdef80006f6f572d&quot; rel=&quot;noreferrer&quot;&gt;Adam Dickmeiss&lt;/a&gt; or &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ee89462f7aa140abd82d11d&quot; class=&quot;user-hover&quot; rel=&quot;5ee89462f7aa140abd82d11d&quot; data-account-id=&quot;5ee89462f7aa140abd82d11d&quot; accountid=&quot;5ee89462f7aa140abd82d11d&quot; rel=&quot;noreferrer&quot;&gt;Julian Ladisch&lt;/a&gt; can advise on this better.&lt;/p&gt;</comment>
                                                            <comment id="198593" author="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3" created="Fri, 25 Dec 2020 12:32:55 +0000"  >&lt;p&gt;This issue was solved by adding &lt;tt&gt;maven-clean-plugin&lt;/tt&gt; into &lt;tt&gt;pom.xml&lt;/tt&gt; - &lt;a href=&quot;https://github.com/folio-org/mod-remote-storage/pull/10&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/mod-remote-storage/pull/10&lt;/a&gt;&lt;br/&gt;
Issue can be closed.&lt;/p&gt;</comment>
                                                            <comment id="198594" author="712020:6a686c16-9faf-499e-b5ea-d5e640ebd2a3" created="Fri, 25 Dec 2020 12:34:15 +0000"  >&lt;p&gt;This issue was solved by adding maven-clean-plugin into pom.xml - &lt;a href=&quot;https://github.com/folio-org/mod-remote-storage/pull/10&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://github.com/folio-org/mod-remote-storage/pull/10&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="73454">MODRS-2</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="73453">MODRS-3</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="73455">MODRS-4</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="81901">FOLIO-2935</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10155"><![CDATA[FOLIO DevOps]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0269b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1884">DevOps: Sprint 104</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 23 Dec 2020 21:12:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>