<?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 Maven Failure during the build:  assembly.xml file needed in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/maven-failure-during-the-build-assembly-xml-file-needed/m-p/319289#M6290</link>
    <description>&lt;P&gt;I'm attempting to build a bundle using the Nuxeo IDE.&lt;/P&gt;
&lt;P&gt;Everything seemed to install and configure correctly, however when I manually try to run maven on the POM file I get and error about maven looking for an assembly.xml file. I have not been able to find any reference to the appropriate assembly.xml configuration file layout/format. I understand what the assembly.xml file does so I don't need a definition, I need a reference to what it should contain if it is needed for Nuxeo dm.&lt;/P&gt;
&lt;P&gt;Is this file needed? Or have I set up something incorrectly in the Nuxeo IDE setup?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log of maven run and POM file follow:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[karl@BES nuxeo-platform-zaxis-mail-web]$ 
[karl@BES nuxeo-platform-zaxis-mail-web]$ mvn clean install
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
... etc ...
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: /home/karl/Desktop/nuxbundle/workspace/nuxeo-platform-zaxis-mail-web/target/nuxeo-zaxis-zmail-5.4.2-I20110404_0115.jar
[INFO] [nuxeo-distribution-tools:build {execution: packaging}]

BUILD FAILED
java.io.FileNotFoundException: /home/karl/Desktop/nuxbundle/workspace/nuxeo-platform-zaxis-mail-web/src/main/assemble/assembly.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:137)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:190)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
        at org.nuxeo.build.ant.AntClient.run(AntClient.java:139)
        at org.nuxeo.build.ant.AntClient.run(AntClient.java:87)
        at org.nuxeo.build.maven.AntBuildMojo.execute(AntBuildMojo.java:242)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
... etc ...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Here is the POM file:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;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;org.nuxeo.ecm.distribution&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;nuxeo-distribution-tomcat&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;5.4.2-I20110404_0115&amp;lt;/version&amp;gt;
  &amp;lt;/parent&amp;gt;

  &amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;
  &amp;lt;groupId&amp;gt;nuxeo-platform-mygroup&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;nuxeo-myproject&amp;lt;/artifactId&amp;gt;
  
  &amp;lt;dependencies&amp;gt;
    ... my dependencies ...    
  &amp;lt;/dependencies&amp;gt;
  
  &amp;lt;build&amp;gt;
    &amp;lt;plugins&amp;gt;
      &amp;lt;plugin&amp;gt;
        &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;maven-eclipse-plugin&amp;lt;/artifactId&amp;gt;
        &amp;lt;configuration&amp;gt;
          &amp;lt;additionalProjectnatures&amp;gt;
            &amp;lt;projectnature&amp;gt;org.nuxeo.ide.NuxeoNature&amp;lt;/projectnature&amp;gt;
          &amp;lt;/additionalProjectnatures&amp;gt;
          &amp;lt;classpathContainers&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.eclipse.jdt.launching.JRE_CONTAINER&amp;lt;/classpathContainer&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.nuxeo.ide.SDK_CONTAINER&amp;lt;/classpathContainer&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.nuxeo.ide.SDK_TEST_CONTAINER&amp;lt;/classpathContainer&amp;gt;
          &amp;lt;/classpathContainers&amp;gt;
        &amp;lt;/configuration&amp;gt;
      &amp;lt;/plugin&amp;gt;
    &amp;lt;/plugins&amp;gt;
  &amp;lt;/build&amp;gt;
  
  &amp;lt;repositories&amp;gt;
    &amp;lt;repository&amp;gt;
      &amp;lt;id&amp;gt;public&amp;lt;/id&amp;gt;
      &amp;lt;url&amp;gt;http://maven.nuxeo.org/nexus/content/groups/public&amp;lt;/url&amp;gt;
      &amp;lt;releases&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
        &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
    &amp;lt;/repository&amp;gt;
    &amp;lt;repository&amp;gt;
      &amp;lt;id&amp;gt;public-snapshot&amp;lt;/id&amp;gt;
      &amp;lt;url&amp;gt;http://maven.nuxeo.org/nexus/content/groups/public-snapshot&amp;lt;/url&amp;gt;
      &amp;lt;releases&amp;gt;
        &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
        &amp;lt;updatePolicy&amp;gt;always&amp;lt;/updatePolicy&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
    &amp;lt;/repository&amp;gt;
  &amp;lt;/repositories&amp;gt;
&amp;lt;/project&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Dec 2011 22:33:59 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2011-12-19T22:33:59Z</dc:date>
    <item>
      <title>Maven Failure during the build:  assembly.xml file needed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/maven-failure-during-the-build-assembly-xml-file-needed/m-p/319289#M6290</link>
      <description>&lt;P&gt;I'm attempting to build a bundle using the Nuxeo IDE.&lt;/P&gt;
&lt;P&gt;Everything seemed to install and configure correctly, however when I manually try to run maven on the POM file I get and error about maven looking for an assembly.xml file. I have not been able to find any reference to the appropriate assembly.xml configuration file layout/format. I understand what the assembly.xml file does so I don't need a definition, I need a reference to what it should contain if it is needed for Nuxeo dm.&lt;/P&gt;
&lt;P&gt;Is this file needed? Or have I set up something incorrectly in the Nuxeo IDE setup?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Log of maven run and POM file follow:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[karl@BES nuxeo-platform-zaxis-mail-web]$ 
[karl@BES nuxeo-platform-zaxis-mail-web]$ mvn clean install
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
... etc ...
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: /home/karl/Desktop/nuxbundle/workspace/nuxeo-platform-zaxis-mail-web/target/nuxeo-zaxis-zmail-5.4.2-I20110404_0115.jar
[INFO] [nuxeo-distribution-tools:build {execution: packaging}]

BUILD FAILED
java.io.FileNotFoundException: /home/karl/Desktop/nuxbundle/workspace/nuxeo-platform-zaxis-mail-web/src/main/assemble/assembly.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.&amp;lt;init&amp;gt;(FileInputStream.java:137)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:190)
        at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
        at org.nuxeo.build.ant.AntClient.run(AntClient.java:139)
        at org.nuxeo.build.ant.AntClient.run(AntClient.java:87)
        at org.nuxeo.build.maven.AntBuildMojo.execute(AntBuildMojo.java:242)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
... etc ...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Here is the POM file:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;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;org.nuxeo.ecm.distribution&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;nuxeo-distribution-tomcat&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;5.4.2-I20110404_0115&amp;lt;/version&amp;gt;
  &amp;lt;/parent&amp;gt;

  &amp;lt;packaging&amp;gt;jar&amp;lt;/packaging&amp;gt;
  &amp;lt;groupId&amp;gt;nuxeo-platform-mygroup&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;nuxeo-myproject&amp;lt;/artifactId&amp;gt;
  
  &amp;lt;dependencies&amp;gt;
    ... my dependencies ...    
  &amp;lt;/dependencies&amp;gt;
  
  &amp;lt;build&amp;gt;
    &amp;lt;plugins&amp;gt;
      &amp;lt;plugin&amp;gt;
        &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;maven-eclipse-plugin&amp;lt;/artifactId&amp;gt;
        &amp;lt;configuration&amp;gt;
          &amp;lt;additionalProjectnatures&amp;gt;
            &amp;lt;projectnature&amp;gt;org.nuxeo.ide.NuxeoNature&amp;lt;/projectnature&amp;gt;
          &amp;lt;/additionalProjectnatures&amp;gt;
          &amp;lt;classpathContainers&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.eclipse.jdt.launching.JRE_CONTAINER&amp;lt;/classpathContainer&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.nuxeo.ide.SDK_CONTAINER&amp;lt;/classpathContainer&amp;gt;
            &amp;lt;classpathContainer&amp;gt;org.nuxeo.ide.SDK_TEST_CONTAINER&amp;lt;/classpathContainer&amp;gt;
          &amp;lt;/classpathContainers&amp;gt;
        &amp;lt;/configuration&amp;gt;
      &amp;lt;/plugin&amp;gt;
    &amp;lt;/plugins&amp;gt;
  &amp;lt;/build&amp;gt;
  
  &amp;lt;repositories&amp;gt;
    &amp;lt;repository&amp;gt;
      &amp;lt;id&amp;gt;public&amp;lt;/id&amp;gt;
      &amp;lt;url&amp;gt;http://maven.nuxeo.org/nexus/content/groups/public&amp;lt;/url&amp;gt;
      &amp;lt;releases&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
        &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
    &amp;lt;/repository&amp;gt;
    &amp;lt;repository&amp;gt;
      &amp;lt;id&amp;gt;public-snapshot&amp;lt;/id&amp;gt;
      &amp;lt;url&amp;gt;http://maven.nuxeo.org/nexus/content/groups/public-snapshot&amp;lt;/url&amp;gt;
      &amp;lt;releases&amp;gt;
        &amp;lt;enabled&amp;gt;false&amp;lt;/enabled&amp;gt;
      &amp;lt;/releases&amp;gt;
      &amp;lt;snapshots&amp;gt;
        &amp;lt;updatePolicy&amp;gt;always&amp;lt;/updatePolicy&amp;gt;
        &amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
      &amp;lt;/snapshots&amp;gt;
    &amp;lt;/repository&amp;gt;
  &amp;lt;/repositories&amp;gt;
&amp;lt;/project&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Dec 2011 22:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/maven-failure-during-the-build-assembly-xml-file-needed/m-p/319289#M6290</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2011-12-19T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Maven Failure during the build:  assembly.xml file needed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/maven-failure-during-the-build-assembly-xml-file-needed/m-p/319290#M6291</link>
      <description>&lt;P&gt;You have the wrong parent project.&lt;/P&gt;
&lt;P&gt;The nuxeo-distribution-tomcat project uses nuxeo's distribution tools to package a whole distribution, not a single bundle, and it uses the assembly.xml to define a set of ant targets for building the dist dir.&lt;/P&gt;
&lt;P&gt;Just use nuxeo-features-parent as parent and everything should work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;parent&amp;gt;
    &amp;lt;groupId&amp;gt;org.nuxeo.ecm.platform&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;nuxeo-features-parent&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;5.5&amp;lt;/version&amp;gt;
  &amp;lt;/parent&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should probably take a look at some sample projects like &lt;A href="https://github.com/nuxeo/nuxeo-sample-project"&gt;this&lt;/A&gt; or use Nuxeo IDE.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 23:11:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/maven-failure-during-the-build-assembly-xml-file-needed/m-p/319290#M6291</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-12-19T23:11:43Z</dc:date>
    </item>
  </channel>
</rss>

