cancel
Showing results for 
Search instead for 
Did you mean: 

How to run the activiti source code?

balaji1
Champ in-the-making
Champ in-the-making
Hi,

1. We have checked out the source code from SVN and installed in SVN.
Can you please tell us how to build this source code?

ALso what will be the outcome of this process?

2. We have proposed to use activiti plugin for our porject. We need to customise the palette shapes and XML tags. Can you please tell us the process to perform.


Please help us to resolve to above issues. We are badly stuck up here.
294 REPLIES 294

tiesebarrell
Champ in-the-making
Champ in-the-making
Balaji,

2) you can use the documentation as described here:  http://activiti.org/userguide/index.html#N11494

balaji1
Champ in-the-making
Champ in-the-making
Hi All,

Can you please clarify the below questions?

1. There are two trunks available
  a)http://svn.codehaus.org/activiti
  b)http://code.google.com/p/activitidesigner/source/browse/#svn/trunk

Can you please tell the purpose of those trunks? Also,please tell us how to set up those trunks as projects in eclipse helio?

Please help!!! We are badly stuck up here.

2. Also can you please provide some reference/links to customise the palette shapes and XML tags?

THanks

tiesebarrell
Champ in-the-making
Champ in-the-making
Balaji,

1. You should look at the http://svn.codehaus.org/activiti sources; the code.google.com repo is no longer in use - it was used when we were first getting started setting up the designer. The easiest way to get things setup in Eclipse is to checkout each of the top-level folders in the designer folder as new projects in Eclipse. Then, for each project use Maven 3 to make them ready for use in Eclipse by performing mvn clean eclipse:clean eclipse:eclipse in each of the projects' root folder. Refresh the projects in Eclipse and you're all set to go.

2. The way to customize the palette and the XML produced is described in the user guide link I mentioned before: http://activiti.org/userguide/index.html#N11494

balaji1
Champ in-the-making
Champ in-the-making
HI,
We have checkout the src from activiti source and used MAven 3 to build.

IS there any hierarchy to be followed while building the projects?
First, We tried to build from the parent project(org.activiti.designer.parent) directory.

We have faced the below error

[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.tycho:tycho-maven-plugin:0.10.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0 () @

Can anyone please help me ???

tiesebarrell
Champ in-the-making
Champ in-the-making
Balaji,

you should perform eclipse:eclipse on the parent project. Same goes for install.

From the error message it looks like a dependency cannot be resolved. Do you have an internet connection on the machine you're using to create the build? There are 3 repositories listed in the pom.xml file of the parent project. Can you reach those repositories? The build is trying to download an set of dependencies from there.

balaji1
Champ in-the-making
Champ in-the-making
HI,
There are 3 links in the repository.

I am not able to reach the below link.
http://download.eclipse.org/tools/orbit/downloads/drops/R20100519200754/updateSite/
Is there any way we get could get the required dependency files?


This is the complete error message :

ERROR] Unresolveable build extension: Plugin org.sonatype.tycho:tycho-maven-plugin:0.10.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0 () @

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:629)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:578)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:230)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]
[ERROR]   The project org.activiti.designerSmiley Surprisedrg.activiti.designer.parent:0.6.0 (/home/knataraj/activiti_workspace/org.activiti.designer.parent/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.sonatype.tycho:tycho-maven-plugin:0.10.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0 (): Failed to read artifact descriptor for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0: Could not transfer artifact org.sonatype.tycho:tycho-maven-pluginSmiley Tongueom:0.10.0 from/to central (http://repo1.maven.org/maven2😞 Error transferring file: Connection timed out -> [Help 2]
org.apache.maven.plugin.PluginResolutionException: Plugin org.sonatype.tycho:tycho-maven-plugin:0.10.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0 ()
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:159)
        at org.apache.maven.project.DefaultProjectBuildingHelper.resolveExtensionArtifacts(DefaultProjectBuildingHelper.java:366)
        at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:235)
        at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)
        at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)
        at org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1041)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:391)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:482)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:314)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:629)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:578)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:230)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0 ()
        at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:192)
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:267)
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:148)
        … 24 more
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.sonatype.tycho:tycho-maven-plugin:jar:0.10.0
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:275)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDes
        at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(Def
        … 26 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artif                                                             central (http://repo1.maven.org/maven2😞 Error transferring file: Connection timed out
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultAr
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArt
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(Default
        … 28 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact                                                              ral (http://repo1.maven.org/maven2😞 Error transferring file: Connection timed out
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryC
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryC
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepo
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepo
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConn
        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultAr
        … 30 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file: Connection
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(Lightweight
        at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
        at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonReposi
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:10
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(Lightweight
        … 7 more
[ERROR]
[ERROR]

tiesebarrell
Champ in-the-making
Champ in-the-making
Balaji,

if you're referring to the 404 on the page, you might be misled because the page is in fact an Eclipse update site. Anyway, your problem is with an artifact that is available in the central Maven repo (http://repo1.maven.org), so you'll need connectivity to that repo. Otherwise, you'll need to download the artifacts by hand or on a different machine and transfer them or look into using a proxy solution such as nexus to provide access to public repos for internally-bound machines.

balaji1
Champ in-the-making
Champ in-the-making
Hi,
Can you please help me to resolve this issue.
DO I need to provide anyother URL?
I am badly stuck up here.

trademak
Star Contributor
Star Contributor
Hi,

Can you please provide some more information about your environment etc.
As Tiese already pointed out, there seems to be something wrong with your connection, because Maven 3 should be able to download the Tycho jars without any problem.

Best regards,

Tijs Rademakers
Lead developer Activiti Designer