cancel
Showing results for 
Search instead for 
Did you mean: 

custom palette

hamepal
Champ in-the-making
Champ in-the-making
Hi,
   I am trying to build one custom palette by following the userguide. When I give the command
mvn eclipse:eclipse
it gives me the following output

E:\CA\software\jbpm-installer\workspace\CustomPalette>mvn eclipse:eclipse
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.acme:money-tasks:jar:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 26, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ————————————————————————
[INFO] Building Acme Corporation Money Tasks 1.0.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks <<<
[INFO]
[INFO] — maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks —
[INFO] Using Eclipse Workspace: E:\CA\software\jbpm-installer\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Java_program_files\jre6
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Stan
dardVMType/J2SE-1.5
Downloading: http://repo1.maven.org/maven2/org/activiti/designer/org.activiti.designer.integration/5.6/org.activi...
ration-5.6.pom
[WARNING] Missing POM for org.activiti.designer:org.activiti.designer.integration:jar:5.6
Downloading: http://repo1.maven.org/maven2/org/activiti/designer/org.activiti.designer.integration/5.6/org.activi...
ration-5.6.jar
[WARNING] An error occurred during dependency resolution.
    Failed to retrieve org.activiti.designer:org.activiti.designer.integration-5.6
Caused by: Could not find artifact org.activiti.designer:org.activiti.designer.integration:jar:5.6 in central (http://repo1.maven.
org/maven2)

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.activiti.designer -DartifactId=org.activiti.designer.integration -Dversion=5.6 -Dpackag
ing=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.activiti.designer -DartifactId=org.activiti.designer.integration -Dversion=5.6 -Dpackagin
g=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
        1) org.acme:money-tasks:jar:1.0.0-SNAPSHOT
        2) org.activiti.designer:org.activiti.designer.integration:jar:5.6


  org.activiti.designer:org.activiti.designer.integration:jar:5.6

from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

[INFO] Unable to read jar manifest from C:\Users\hame\.m2\repository\org\activiti\designer\org.activiti.designer.integration\5.6\o
rg.activiti.designer.integration-5.6.jar
[INFO] File E:\CA\software\jbpm-installer\workspace\CustomPalette\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "money-tasks" to E:\CA\software\jbpm-installer\workspace\CustomPalette.
[INFO]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 7.377s
[INFO] Finished at: Tue Jun 14 09:44:21 EDT 2011
[INFO] Final Memory: 5M/15M

It seems the pom.xml present at projects\designer\trunk\examples\money-tasks is not updated according to the latest Activiti release version. Earlier the pom.xml was looking for 5.5 version and giving the same output, after changing t0 5.6 doesn't help me in removing the dependencies. I am not  able to remove the Path dependencies:
        1) org.acme:money-tasks:jar:1.0.0-SNAPSHOT
        2) org.activiti.designerSmiley Surprisedrg.activiti.designer.integration:jar:5.6
Can any one tell me how to remove these path dependencies and how to get these jar files?

Any kind of help is highly appreciated.  Smiley Happy


PS: when I run this command
mvn -ver
the following output is given by the maven.
E:\CA\software\jbpm-installer\workspace\CustomPalette>mvn -ver
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: E:\CA\softwareInstalledfiles\apache-maven-3.0.3\bin\..
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: C:\Java_program_files\jdk1.6.0_23\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
23 REPLIES 23

hamepal
Champ in-the-making
Champ in-the-making
@Ronal,
  Can you please tell me how to do it, otherwise provide me any pointer for it.

trademak
Star Contributor
Star Contributor
Hi,

Just add this to the pom:

<repositories>
  <repository>
   <id>alfresco</id>
   <url>http://maven.alfresco.com/nexus/content/groups/public</url>
  </repository>
</repositories>

Best regards,

hamepal
Champ in-the-making
Champ in-the-making
@trademak
Thanks for the solution, but when I included your line I got this following error.
Some problems were encountered while building the effective model for org.acme:money-tasks:jar:1.0.0-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 42, column 12


then I modified the maven-compiler-plugin a little bit.

          <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
     <source>1.5</source>
     <target>1.5</target>
     <showDeprecation>true</showDeprecation>
     <showWarnings>true</showWarnings>
     <optimize>true</optimize>
    </configuration>
  </plugin>
then I got this output

E:\CA\software\jbpm-installer\workspace\CustomPalette>mvn eclipse:eclipse
[INFO] Scanning for projects…
[INFO]
[INFO] ————————————————————————
[INFO] Building Acme Corporation Money Tasks 1.0.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks <<<
[INFO]
[INFO] — maven-eclipse-plugin:2.8:eclipse (default-cli) @ money-tasks —
[INFO] Using Eclipse Workspace: E:\CA\software\jbpm-installer\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Java_program_files\jre6
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Stan
dardVMType/J2SE-1.5
[INFO] File E:\CA\software\jbpm-installer\workspace\CustomPalette\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "money-tasks" to E:\CA\software\jbpm-installer\workspace\CustomPalette.
[INFO]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 1.007s
[INFO] Finished at: Tue Jun 14 15:11:15 EDT 2011
[INFO] Final Memory: 5M/15M
[INFO] ————————————————————————


Please confirm it is working now?

Thanks…

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
how should we know? the build is successful, but the proof of the pudding is in the eating… try it and you know it

hamepal
Champ in-the-making
Champ in-the-making
I guess build was through. But now a new problem has come I am not able to see the Palette in my designer-view even though I can see my Jar file under Activiti Designer Extensions.
  I have attached my project folder with this post. This project the same as money-task present at projects\designer\trunk\examples\.

I followed this discussion thread. But couldn't get anything which can resolve my issue. I am able to see the icon in the jar package. But somehow I am not able to see the Palette in the Acitiviti designer view.

tiesebarrell
Champ in-the-making
Champ in-the-making
Have you looked in the .log file in the workspace for the Eclipse installation you've installed the extension to? There's probably a problem with the extension.

Also, did you re-open diagrams to check whether the new node is in the palette?

hamepal
Champ in-the-making
Champ in-the-making
@tiesebarrell

workspace file looks good  to me.

I had started eclipse and reponed the activity diagram many times but didn't see any new palette.

Don't know exactly where I am going wrong Smiley Sad

tiesebarrell
Champ in-the-making
Champ in-the-making
is the file you attached the completed extension? I'll give it a test run to see if I can figure it out this weekend.

trademak
Star Contributor
Star Contributor
Hi,

I've tested the extension you posted and it works fine in my workspace.
I added the JAR to the Actviti designer extension classpath variable and reopened the process diagram.
The moneytask node was added to the palette at the bottom.

Best regards,

hamepal
Champ in-the-making
Champ in-the-making
@trademak
Thanks for testing my jar file on ur system.
  But still I am not able to see palette in Activiti designer. I have attached the screen-shots.

Please let me know about your eclipse version if you don't mind can you also post the procedure of adding the jar file in eclipse environment. So that I can check where I am going wrong.


Thanks in advance.. Smiley Happy