<?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 Deploying, to a non-eclipse server, developed code which started in the Nuxeo IDE and Studio. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323364#M10365</link>
    <description>&lt;P&gt;Would someone please point me to document/tutorial that starts with a Studio/IDE based addition to Nuxeo DM and deploys the same to a separate test server running Tomcat/Nuxeo?&lt;/P&gt;
&lt;P&gt;I have Nuxeo IDE working with the server system started via eclipse. I also have my custom schemas, etc updated on the same "eclipse" based server system using Studio. Also, I have custom Java code written with the help of the IDE: automation actions, a few SEAM components, etc.; this all works on my development system.&lt;/P&gt;
&lt;P&gt;I would like to run these updates on a test system before deploying it to a production server. The Studio stuff is easy and I have it deployed. The Java code written with Nuxeo IDE is where I'm having the issues.&lt;/P&gt;
&lt;P&gt;Is the deployment as simple as placing a file in the target nuxeo distribution file tree? Do I need to use maven to generate a deployment package?&lt;/P&gt;
&lt;P&gt;I've never deployed a "stand alone" additions using maven and have come into the development process at the Studio/Nuxeo IDE level, I have not found a tutorial which takes the code and Studio updates I have written and deploys them to a server which is not controlled by eclipse.&lt;/P&gt;
&lt;P&gt;Any pointers, comments will be helpful.&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2012 17:09:18 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2012-05-22T17:09:18Z</dc:date>
    <item>
      <title>Deploying, to a non-eclipse server, developed code which started in the Nuxeo IDE and Studio.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323364#M10365</link>
      <description>&lt;P&gt;Would someone please point me to document/tutorial that starts with a Studio/IDE based addition to Nuxeo DM and deploys the same to a separate test server running Tomcat/Nuxeo?&lt;/P&gt;
&lt;P&gt;I have Nuxeo IDE working with the server system started via eclipse. I also have my custom schemas, etc updated on the same "eclipse" based server system using Studio. Also, I have custom Java code written with the help of the IDE: automation actions, a few SEAM components, etc.; this all works on my development system.&lt;/P&gt;
&lt;P&gt;I would like to run these updates on a test system before deploying it to a production server. The Studio stuff is easy and I have it deployed. The Java code written with Nuxeo IDE is where I'm having the issues.&lt;/P&gt;
&lt;P&gt;Is the deployment as simple as placing a file in the target nuxeo distribution file tree? Do I need to use maven to generate a deployment package?&lt;/P&gt;
&lt;P&gt;I've never deployed a "stand alone" additions using maven and have come into the development process at the Studio/Nuxeo IDE level, I have not found a tutorial which takes the code and Studio updates I have written and deploys them to a server which is not controlled by eclipse.&lt;/P&gt;
&lt;P&gt;Any pointers, comments will be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 17:09:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323364#M10365</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-05-22T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying, to a non-eclipse server, developed code which started in the Nuxeo IDE and Studio.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323365#M10366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the IDE projets can be built using maven. What's you need is a way of integrating these artifacts in your deployment. I suggest you to create a new maven project for building a marketplace package and then use the nuxeoctl tool for installing it into your server.&lt;/P&gt;
&lt;P&gt;Here is a skeleton of the pom file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 &lt;A href="http://maven.apache.org/maven-v4_0_0.xsd&amp;quot;&amp;gt;" target="test_blank"&gt;http://maven.apache.org/maven-v4_0_0.xsd"&amp;gt;&lt;/A&gt;;
  &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;
  &amp;lt;parent&amp;gt;
    &amp;lt;groupId&amp;gt;your.group&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;your-parent&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;1.0-SNAPSHOT&amp;lt;/version&amp;gt;
    &amp;lt;relativePath&amp;gt;../pom.xml&amp;lt;/relativePath&amp;gt;
  &amp;lt;/parent&amp;gt;

  &amp;lt;artifactId&amp;gt;your-package&amp;lt;/artifactId&amp;gt;
  &amp;lt;packaging&amp;gt;zip&amp;lt;/packaging&amp;gt;
  &amp;lt;name&amp;gt;Marketplace package for your plugins&amp;lt;/name&amp;gt;

  &amp;lt;build&amp;gt;
    &amp;lt;plugins&amp;gt;
      &amp;lt;plugin&amp;gt;
        &amp;lt;groupId&amp;gt;org.nuxeo.build&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;nuxeo-distribution-tools&amp;lt;/artifactId&amp;gt;
        &amp;lt;configuration&amp;gt;
          &amp;lt;buildFiles&amp;gt;
            &amp;lt;buildFile&amp;gt;${basedir}/src/main/assemble/assembly.xml&amp;lt;/buildFile&amp;gt;
          &amp;lt;/buildFiles&amp;gt;
        &amp;lt;/configuration&amp;gt;
      &amp;lt;/plugin&amp;gt;
    &amp;lt;/plugins&amp;gt;
  &amp;lt;/build&amp;gt;
&amp;lt;/project&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the skeleton for the package descriptor located in src/main/resources/package.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;package type="addon" name="your-package" version="@VERSION@"&amp;gt;
  &amp;lt;title&amp;gt;A title&amp;lt;/title&amp;gt;
  &amp;lt;description&amp;gt;
    &amp;lt;p&amp;gt;...&amp;lt;/p&amp;gt;
  &amp;lt;/description&amp;gt;
  &amp;lt;home-page&amp;gt;http://...&amp;lt;/home-page&amp;gt;
  &amp;lt;vendor&amp;gt;Your Organisation&amp;lt;/vendor&amp;gt;
  &amp;lt;installer restart="false" /&amp;gt;
  &amp;lt;uninstaller restart="true" /&amp;gt;
  &amp;lt;!-- &amp;lt;hotreload-support&amp;gt;true&amp;lt;/hotreload-support&amp;gt; --&amp;gt;
  &amp;lt;!-- &amp;lt;require-terms-and-conditions-acceptance&amp;gt;false --&amp;gt;
  &amp;lt;!-- &amp;lt;/require-terms-and-conditions-acceptance&amp;gt; --&amp;gt;
  &amp;lt;production-state&amp;gt;testing&amp;lt;/production-state&amp;gt;
  &amp;lt;supported&amp;gt;false&amp;lt;/supported&amp;gt;
  &amp;lt;platforms&amp;gt;
    &amp;lt;platform&amp;gt;cap-5.6&amp;lt;/platform&amp;gt;
  &amp;lt;/platforms&amp;gt;
  &amp;lt;dependencies&amp;gt;
    &amp;lt;package&amp;gt;nuxeo-content-browser:1.0.0:1.0.0&amp;lt;/package&amp;gt;
  &amp;lt;/dependencies&amp;gt;
  &amp;lt;license&amp;gt;LGPL&amp;lt;/license&amp;gt;
  &amp;lt;license-url&amp;gt;http://www.gnu.org/licenses/lgpl.html&amp;lt;/license-url&amp;gt;
&amp;lt;/package&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the skeleton for the installation descriptor located in src/main/resources/install.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;install&amp;gt;
  &amp;lt;update file="${package.root}/install/bundles" todir="${env.bundles}" /&amp;gt;
&amp;lt;/install&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the skeleton for the assembly descriptor located in src/main/resources/assembly.xml&lt;/P&gt;
&lt;P&gt;&lt;PROJECT name="your-assembly" default="build" NX="urn:nuxeo-build" ARTIFACT="urn:nuxeo-artifact"&gt;
&lt;TASKDEF resource="org/nuxeo/build/antlib.xml" uri="urn:nuxeo-build"&gt;&lt;/TASKDEF&gt;
&lt;TASKDEF resource="org/nuxeo/build/artifact/antlib.xml" uri="urn:nuxeo-artifact"&gt;&lt;/TASKDEF&gt;&lt;/PROJECT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;target name="build"&amp;gt;
    &amp;lt;tstamp /&amp;gt;
    &amp;lt;delete failonerror="false"
            dir="${maven.project.build.directory}/marketplace" /&amp;gt;
    &amp;lt;mkdir dir="${maven.project.build.directory}/marketplace" /&amp;gt;
    &amp;lt;copy todir="${maven.project.build.directory}/marketplace"&amp;gt;
      &amp;lt;fileset dir="src/main/resources" /&amp;gt;
      &amp;lt;filterset&amp;gt;
        &amp;lt;filter token="VERSION" value="${maven.project.version}" /&amp;gt;
      &amp;lt;/filterset&amp;gt;
    &amp;lt;/copy&amp;gt;

    &amp;lt;copy todir="${maven.project.build.directory}/marketplace/install/bundles"&amp;gt;
      &amp;lt;artifact:resolveFile key="your.group:::jar" /&amp;gt;
      &amp;lt;artifact:resolveFile key="nuxeo-studio:your-studio-project::jar" /&amp;gt;
    &amp;lt;/copy&amp;gt;

    &amp;lt;zip destfile="${maven.project.build.directory}/${maven.project.artifactId}-${maven.project.version}.zip"
         basedir="${maven.project.build.directory}/marketplace" /&amp;gt;
    &amp;lt;artifact:attach file="${maven.project.build.directory}/${maven.project.artifactId}-${maven.project.version}.zip"
                     target="${maven.project.groupId}:${maven.project.artifactId}"
                     type="zip" /&amp;gt;
  &amp;lt;/target&amp;gt;

&amp;lt;/project&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then install the obtained package in target folder your server using the following commands&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$ mp-add your-package-1.0-SNAPSHOT.zip
$ mp-install your-package-1.0-SNAPSHOT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2012 20:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323365#M10366</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-05-22T20:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying, to a non-eclipse server, developed code which started in the Nuxeo IDE and Studio.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323366#M10367</link>
      <description>&lt;P&gt;Hi there,
The right way is definitely Stephane's one&lt;/P&gt;
&lt;P&gt;Thought if you are not familiar with maven or if it's just to test it quickly
To build your ide project, you can just run on eclipse:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;right click on the project&lt;/LI&gt;
&lt;LI&gt;Nuxeo &amp;gt; Export Jar&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Then copy the jar in nxserver/plugins&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 17:49:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323366#M10367</guid>
      <dc:creator>Sun_Seng_David_</dc:creator>
      <dc:date>2012-05-23T17:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying, to a non-eclipse server, developed code which started in the Nuxeo IDE and Studio.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323367#M10368</link>
      <description>&lt;P&gt;FYI artifact&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 20:09:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/deploying-to-a-non-eclipse-server-developed-code-which-started/m-p/323367#M10368</guid>
      <dc:creator>Steven_Huwig1</dc:creator>
      <dc:date>2013-06-26T20:09:03Z</dc:date>
    </item>
  </channel>
</rss>

