<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Maven build in sdk 2.2 fails to run junit tests that access Solr in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285158#M238288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 2 alternatives:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can&amp;nbsp;use the buildonly in&amp;nbsp;&lt;SPAN style="color: #a71d5d; background-color: #ffffff;"&gt;index.subsystem.name&lt;/SPAN&gt; which is made for the purpose to rely not on any solr server to start up (&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-sdk/issues/228" title="https://github.com/Alfresco/alfresco-sdk/issues/228" rel="nofollow noopener noreferrer"&gt;Lucene no longer available in 5.0.b · Issue #228 · Alfresco/alfresco-sdk · GitHub&lt;/A&gt;&amp;nbsp;)&lt;/LI&gt;&lt;LI&gt;You can swith to Alfresco SDK 3beta4 which runs the repository and SOLR for testing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2016 20:50:56 GMT</pubDate>
    <dc:creator>jego</dc:creator>
    <dc:date>2016-11-10T20:50:56Z</dc:date>
    <item>
      <title>Maven build in sdk 2.2 fails to run junit tests that access Solr</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285156#M238286</link>
      <description>I used the archetype for "all-in-one" and I modified the sample test case adding a simple lucene query as shown in the attached java file.When I execute:&amp;nbsp;&amp;nbsp; mvn testthe test fails because it seems that Alfresco cannot access Solr (see attached maven.log file).In this log, I also found a warning: [INF</description>
      <pubDate>Tue, 08 Nov 2016 13:21:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285156#M238286</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2016-11-08T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Maven build in sdk 2.2 fails to run junit tests that access Solr</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285157#M238287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce.&lt;/P&gt;&lt;P&gt;The issue is that SolR is not run during the test phase. That's why you get the "java.net.ConnectException: Connection refused" error.&lt;/P&gt;&lt;P&gt;I don't know if there is a way to get SolR run during the test phase.&lt;/P&gt;&lt;P&gt;Maybe you could create an issue on github &lt;A href="https://github.com/Alfresco/alfresco-sdk" title="https://github.com/Alfresco/alfresco-sdk" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-sdk: The Alfresco SDK based on Apache Maven, includes support for rapid and standard developm…&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Development team of the SDK will answer you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Marco Altieri a écrit:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In this log, I also found a warning: &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;[INFO] --- alfresco-maven-plugin:2.2.0:refresh (refresh-webscripts-repo-and-share) @ marco-repo-amp ---&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;[WARNING] Connection failed to localhost:8080, null webapp refresh aborted&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That is linked to the hot reloading feature. That feature is for RAD for more information about RAD see : &lt;A href="http://docs.alfresco.com/5.1/concepts/alfresco-sdk-rad.html" title="http://docs.alfresco.com/5.1/concepts/alfresco-sdk-rad.html" rel="nofollow noopener noreferrer"&gt;Rapid Application Development (RAD) | Alfresco Documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 13:44:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285157#M238287</guid>
      <dc:creator>ycoulon</dc:creator>
      <dc:date>2016-11-08T13:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Maven build in sdk 2.2 fails to run junit tests that access Solr</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285158#M238288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 2 alternatives:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can&amp;nbsp;use the buildonly in&amp;nbsp;&lt;SPAN style="color: #a71d5d; background-color: #ffffff;"&gt;index.subsystem.name&lt;/SPAN&gt; which is made for the purpose to rely not on any solr server to start up (&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-sdk/issues/228" title="https://github.com/Alfresco/alfresco-sdk/issues/228" rel="nofollow noopener noreferrer"&gt;Lucene no longer available in 5.0.b · Issue #228 · Alfresco/alfresco-sdk · GitHub&lt;/A&gt;&amp;nbsp;)&lt;/LI&gt;&lt;LI&gt;You can swith to Alfresco SDK 3beta4 which runs the repository and SOLR for testing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 20:50:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285158#M238288</guid>
      <dc:creator>jego</dc:creator>
      <dc:date>2016-11-10T20:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Maven build in sdk 2.2 fails to run junit tests that access Solr</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285159#M238289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not realise that the issue that you mentioned was closed on a newer version of the SDK.&lt;/P&gt;&lt;P&gt;I guess that with the current SDK 2.2 the workaround is still necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 15:36:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/maven-build-in-sdk-2-2-fails-to-run-junit-tests-that-access-solr/m-p/285159#M238289</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2016-11-11T15:36:39Z</dc:date>
    </item>
  </channel>
</rss>

