camunda-community-hub / camunda-7-cockpit-plugin-statistics

camunda BPM community extension providing a statistics plugin for camunda Cockpit
Apache License 2.0
25 stars 20 forks source link

How to build Jar #8

Closed manugarciac closed 8 years ago

manugarciac commented 8 years ago

Hello. I'm having trouble building the Jar. I checked out the project, and when I run maven clean package I get the following errors:

[ERROR] /home/mc/Desarrollo/git/camunda-cockpit-plugin-statistics/src/main/java/org/camunda/cockpit/plugin/statistics/resources/StatisticsPluginRootResource.java:[8,47] package org.camunda.bpm.engine.rest.sub.runtime does not exist [ERROR] /home/mc/Desarrollo/git/camunda-cockpit-plugin-statistics/src/main/java/org/camunda/cockpit/plugin/statistics/resources/process/IncidentResource.java:[9,47] package org.camunda.bpm.engine.rest.dto.runtime does not exist [ERROR] /home/mc/Desarrollo/git/camunda-cockpit-plugin-statistics/src/main/java/org/camunda/cockpit/plugin/statistics/resources/process/IncidentResource.java:[31,17] cannot find symbol symbol: class IncidentDto location: class org.camunda.cockpit.plugin.statistics.resources.process.IncidentResource [ERROR] /home/mc/Desarrollo/git/camunda-cockpit-plugin-statistics/src/main/java/org/camunda/cockpit/plugin/statistics/resources/process/IncidentResource.java:[33,37] cannot find symbol symbol: class IncidentDto location: class org.camunda.cockpit.plugin.statistics.resources.process.IncidentResource

I also tried de Plugin store, but I get the following error there:

Could not clone and build plugin: https://github.com/camunda/camunda-cockpit-plugin-statistics/blob/master/pom.xml

With this root cause:

java.lang.IllegalStateException: ${maven.home} is not specified as a directory: '/usr/share/maven-bin-3.0'.

How can I build the Jar for this plugin?

eklieme commented 8 years ago

Hi manugarciac,

I just tried a 'green field' clone and successfully built the jar using maven clean package. Did you check out the master branch? Did you do anything before your build? Your error trace looks like your camunda dependencies may not have been resolved successfully..

../home/mc/Desarrollo/git/camunda-cockpit-plugin-statistics/src/main/java/org/camunda/cockpit/plugin/statistics/resources/process/IncidentResource.java:[9,47] package org.camunda.bpm.engine.rest.dto.runtime does not exist..

cheers,

Eric

manugarciac commented 8 years ago

It seems I had a problem in my settings.xml. I had a repository that was causing problems. I deleted it and it works now.

eklieme commented 8 years ago

:) great!! looking forward to get some feedback ;)

shantanu-deriv commented 3 years ago

Hi, I am using the same version of camunda as specified 7.6 tomcat distribution then I build this project with mvn clean install and copy the jar from ./target/camunda-cockpit-plugin-statistics-root-1.0.0.jar to lib folder of above distribution zip. But I dont see the plugin when I start the server on cockpit dashboard. What am I doing wrong?