cancel
Showing results for 
Search instead for 
Did you mean: 

[RESOLVED] Demo H2 & Maven setup exceptions

experimental
Champ in-the-making
Champ in-the-making
Hello there,

I am trying to test Activiti. I run ant -autoproxy setup.demo and receive error messages. I do not think autoproxy is working.


maven.install:

internal.install.activiti.libs:
[INFO] Scanning for projects…
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: central due to an error: Error transferring file: repo1.ma
ven.org
[INFO] Repository 'central' will be blacklisted
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.2/maven-install-plugin-2.2.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-install-plugin:
pom:2.2' from repository central (http://repo1.maven.org/maven2😞 Error transfer
ring file: repo1.maven.org
[INFO] ————————————————————————
[ERROR] BUILD ERROR
[INFO] ————————————————————————
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-install-plugin

Reason: POM 'org.apache.maven.plugins:maven-install-plugin' not found in reposit
ory: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-install-plugin:pom:2.2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

for project org.apache.maven.plugins:maven-install-plugin

and later on:


h2.start:
launching cmd 'C:\activiti-5.0.rc1\apps\h2\h2.start.bat ' in dir 'C:\activiti-5.
0.rc1\apps\h2'
waiting for launch completion msg 'TCP server running on'…
  TCP server running on tcp://10.25.224.240:9092 (others can connect)

db.create.engine:

BUILD FAILED
C:\activiti-5.0.rc1\setup\build.xml:180: Class Not Found: JDBC driver org.h2.Dri
ver could not be loaded

Which doesn't make sense because surely if it creates a TCP server then it found the h2 library?


C:\activiti-5.0.rc1\setup>echo %ant_home%
C:\apache-ant-1.8.1-bin\apache-ant-1.8.1\

I believe ant is fine and Java is fine.

Is there a list of libraries I need that I can download manually?
2 REPLIES 2

experimental
Champ in-the-making
Champ in-the-making
I fixed it. I did not realise there was a self-contained Maven installation in the demo. you can find it in the activiti-5.0.rc1\apps\apache-maven-2.2.1 directory. I assumed it would use the one I already had installed.

The one I had installed was set up with a proxy so I just copied and pasted the relevant proxy settings to the activiti one. The settings are in activiti-5.0.rc1\apps\apache-maven-2.2.1\conf You can find your proxy settings in your web browser network settings.


<proxies>
    <!– proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    –>
  </proxies>

jbarrez
Star Contributor
Star Contributor
We are currently completely refactoring this 'embedded' maven approach as it creates more issues than it fixes.
But for the moment, this is indeed the fix you would need to do. Thanks for posting it!