cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I solve this Error on Maven Compilation

geekonspace
Star Contributor
Star Contributor

I have been trying to solve this problem that is generated when I run command mvn install. I show you the console errors and my file pom. I hope You can help me please.

C:\workspace\workflows>mvn install
[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------
[INFO] Building workflows
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Storing buildNumber: 20111010-174335 at timestamp: 1318284815250
[INFO] [incremental-build:incremental-build {execution: default}]
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Verifying sources...
[INFO] [nuxeo:eclipse-version {execution: eclipsize-version}]
[INFO] eclipseVersion:1.0.0.-SNAPSHOT
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 2 source files to C:\workspace\workflows\target\c
lasses
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \workspace\workflows\src\main\java\ve\com\ema\Document
CreationListener.java:[5,31] package org.nuxeo.ecm.core.event does not exist

[ERROR] \workspace\workflows\src\main\java\ve\com\ema\Document
CreationListener.java:[6,31] package org.nuxeo.ecm.core.event does not exist

Pom file:

 <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 http://maven.apache.org/maven-v4_0_0.xsd">;
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.nuxeo.ecm.platform</groupId>
    <artifactId>nuxeo-services-parent</artifactId>
    <version>5.4.1</version>
  </parent>

  <artifactId>nuxeo-platform-usermanager-core</artifactId>
  <name>Nuxeo User Manager - Core</name>
  <description>
    Nuxeo Enterprise Platform: User Manager - Core.
  </description>

  <dependencies>
    <dependency>
      <groupId>org.nuxeo.ecm.platform</groupId>
      <artifactId>nuxeo-platform-usermanager-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.nuxeo.ecm.core</groupId>
      <artifactId>nuxeo-core-api</artifactId>
    </dependency>

  </dependencies>

</project>

I have been doing this tutorial: link

1 ACCEPTED ANSWER

jostout_Stout
Champ on-the-rise
Champ on-the-rise

My maven is rusty but don't you need the event dependency?

<dependency>
  <groupId>org.nuxeo.ecm.core</groupId>
  <artifactId>nuxeo-core-event</artifactId>
</dependency>

Got it from Sonatype: https://maven.nuxeo.org/nexus/index.html#nexus-search;quick~org.nuxeo.ecm.core

Here's another useful link: http://doc.nuxeo.com/display/NXDOC/How-to+create+an+empty+bundle

View answer in original post

3 REPLIES 3

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Hi,

You should first make sure to follow recommendations about Nuxeo maven usage.

jostout_Stout
Champ on-the-rise
Champ on-the-rise

My maven is rusty but don't you need the event dependency?

<dependency>
  <groupId>org.nuxeo.ecm.core</groupId>
  <artifactId>nuxeo-core-event</artifactId>
</dependency>

Got it from Sonatype: https://maven.nuxeo.org/nexus/index.html#nexus-search;quick~org.nuxeo.ecm.core

Here's another useful link: http://doc.nuxeo.com/display/NXDOC/How-to+create+an+empty+bundle

Thanks, I gave you a +1 . I forgot to include this dependency.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.