December 9, 2009

Manually installing a Maven artifact

Filed under: marketcetera, maven — michaelangela @ 5:10 am

In an effort to try out Marketcetera’s open source project, I have been working on building the platform on OS X 10.5. Those instructions were for earlier machines so I have been able to get it to build without using Soylatte 1.6 by resetting the default java used to the already installed 1.6.0. Because of out of memory errors I had to boost the memory directly in mvn.sh by adding

export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=1024m"

directly after the copyright notice. That got me through the build process. One test has an error causing the build to fail but building it without testing successfully creates the build. But then running it with

marketcetera-platform/source/ors$ mvn -Pexecute exec:java

fails complaining about missing the org.codehaus.mojo:exec-maven-plugin:pom:1.1 artifact. It’s there, but maven 2.2.0 is not actually supported. I should be using maven 2.0.9. After changing back to maven 2.0.9 I tried to do a mvn clean to start over and it complained of another artifact missing: org.apache.maven.shared:file-management:jar:1.2.1. But this time it gave some useful advice:

1) org.apache.maven.shared:file-management:jar:1.2.1

Try downloading the file manually from the project website.

Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.maven.shared -DartifactId=file-management -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

So before I give up on 2.2.0 I’ll try to add this missing file-management artifact and also the exec-maven-plugin as well and see how it goes.

1 Comment »

  1. […] Posted on December 9, 2009 by michaelangela While prepping to what I outlined in my last post about installing a maven artifact manually, I happened to search to see if it could be done […]

    Pingback by Manual (local or remote) install of maven artifacts needs sudo « Ramblings — December 9, 2009 @ 6:04 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: