Problem building OMS 0.1.2

3 messages Options
Embed this post
Permalink
Andrei Lissovski

Problem building OMS 0.1.2

Reply Threaded More More options
Print post
Permalink
Hi,

I cannot build OMS 0.1.2 having just done a fresh pull
from the SVN. It looks like several updated jars
haven't made it to the Maven repository. Here's the
output I'm seeing:

Andrei@Drei /cygdrive/c/Works/Eclipse
workspaces/Marketcetera/platform/oms
$ mvn resources:resources exec:java
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix:
'resources'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Marketcetera OMS
[INFO]    task-segment: [resources:resources,
exec:java]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered
resources.
[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
Downloading:
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
PSHOT/core-0.1.2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository
MarketceteraRepo (http://repo.m
arketcetera.org/maven/)
Downloading:
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
PSHOT/core-0.1.2-SNAPSHOT.jar
[WARNING] Unable to get resource from repository
MarketceteraRepo (http://repo.m
arketcetera.org/maven/)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.marketcetera:core:jar:0.1.2-SNAPSHOT

  Try downloading the file manually from the project
website.

  Then, install it using the command:
      mvn install:install-file
-DgroupId=org.marketcetera -DartifactId=core \
          -Dversion=0.1.2-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Path to dependency:
        1) org.marketcetera:oms:jar:0.1.2-SNAPSHOT
        2) org.marketcetera:core:jar:0.1.2-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.marketcetera:oms:jar:0.1.2-SNAPSHOT

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


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e
switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Aug 21 00:31:35 CST 2006
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------

-Andrei
_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
Andrei Lissovski

Re: Problem building OMS 0.1.2

Reply Threaded More More options
Print post
Permalink
I have figured out what the problem was. You need to
run "mvn install" in the platform directory prior to
running OMS in the oms directory. It sure looks like
it's trying to download the jars from the repository
though:

 Downloading:
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
 PSHOT/core-0.1.2-SNAPSHOT.pom
 [WARNING] Unable to get resource from repository
 MarketceteraRepo (http://repo.m
 arketcetera.org/maven/)
 Downloading:
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
 PSHOT/core-0.1.2-SNAPSHOT.jar
 [WARNING] Unable to get resource from repository
 MarketceteraRepo (http://repo.m
 arketcetera.org/maven/)

In other news, my locally run OMS 0.1.2 now
successfully connects to the Marketcetera Exchange.

-Andrei



--- Andrei Lissovski <[hidden email]> wrote:

> Hi,
>
> I cannot build OMS 0.1.2 having just done a fresh
> pull
> from the SVN. It looks like several updated jars
> haven't made it to the Maven repository. Here's the
> output I'm seeing:
>
> Andrei@Drei /cygdrive/c/Works/Eclipse
> workspaces/Marketcetera/platform/oms
> $ mvn resources:resources exec:java
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix:
> 'resources'.
> [INFO]
>
-------------------------------------------------------------------------
> ---
> [INFO] Building Marketcetera OMS
> [INFO]    task-segment: [resources:resources,
> exec:java]
> [INFO]
>
-------------------------------------------------------------------------
> ---
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered
> resources.
> [INFO] Preparing exec:java
> [INFO] No goals needed for project - skipping
> Downloading:
>
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
> PSHOT/core-0.1.2-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository
> MarketceteraRepo (http://repo.m
> arketcetera.org/maven/)
> Downloading:
>
http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
> PSHOT/core-0.1.2-SNAPSHOT.jar
> [WARNING] Unable to get resource from repository
> MarketceteraRepo (http://repo.m
> arketcetera.org/maven/)
> [INFO]
>
------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
>
------------------------------------------------------------------------

> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.marketcetera:core:jar:0.1.2-SNAPSHOT
>
>   Try downloading the file manually from the project
> website.
>
>   Then, install it using the command:
>       mvn install:install-file
> -DgroupId=org.marketcetera -DartifactId=core \
>           -Dversion=0.1.2-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.marketcetera:oms:jar:0.1.2-SNAPSHOT
>         2) org.marketcetera:core:jar:0.1.2-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>   org.marketcetera:oms:jar:0.1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   MarketceteraRepo
> (http://repo.marketcetera.org/maven/)
>
>
> [INFO]
>
------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e
> switch
> [INFO]
>
------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Aug 21 00:31:35 CST 2006
> [INFO] Final Memory: 4M/8M
> [INFO]
>
------------------------------------------------------------------------
>
> -Andrei
> _______________________________________________
> m-etc-dev mailing list
> [hidden email]
>
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
>

_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
toli

Re: Problem building OMS 0.1.2

Reply Threaded More More options
Print post
Permalink
In reply to this post by Andrei Lissovski
Andrei,

this is a Maven issue. The way the project is structured the OMS
component depends both on core and the top-level platform component.

so the first time, you need to build from the top-level directory,
which will build both the parent and the core modules that the OMS
depends on.

You need to install all the modules into your "local repository" -
only then will exec:java work:

ndrei@Drei /cygdrive/c/Works/Eclipseworkspaces/Marketcetera/platform
> $ mvn install

On 8/20/06, Andrei Lissovski <[hidden email]> wrote:

> Hi,
>
> I cannot build OMS 0.1.2 having just done a fresh pull
> from the SVN. It looks like several updated jars
> haven't made it to the Maven repository. Here's the
> output I'm seeing:
>
> Andrei@Drei /cygdrive/c/Works/Eclipse
> workspaces/Marketcetera/platform/oms
> $ mvn resources:resources exec:java
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix:
> 'resources'.
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Building Marketcetera OMS
> [INFO]    task-segment: [resources:resources,
> exec:java]
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered
> resources.
> [INFO] Preparing exec:java
> [INFO] No goals needed for project - skipping
> Downloading:
> http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
> PSHOT/core-0.1.2-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository
> MarketceteraRepo (http://repo.m
> arketcetera.org/maven/)
> Downloading:
> http://repo.marketcetera.org/maven//org/marketcetera/core/0.1.2-SNA
> PSHOT/core-0.1.2-SNAPSHOT.jar
> [WARNING] Unable to get resource from repository
> MarketceteraRepo (http://repo.m
> arketcetera.org/maven/)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.marketcetera:core:jar:0.1.2-SNAPSHOT
>
>   Try downloading the file manually from the project
> website.
>
>   Then, install it using the command:
>       mvn install:install-file
> -DgroupId=org.marketcetera -DartifactId=core \
>           -Dversion=0.1.2-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.marketcetera:oms:jar:0.1.2-SNAPSHOT
>         2) org.marketcetera:core:jar:0.1.2-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>   org.marketcetera:oms:jar:0.1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   MarketceteraRepo
> (http://repo.marketcetera.org/maven/)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e
> switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Aug 21 00:31:35 CST 2006
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
>
> -Andrei
> _______________________________________________
> m-etc-dev mailing list
> [hidden email]
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
>


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev