maven's m2.conf not being read?

Hi,

We use TeamCity 2.0 (build 4111) and I'm having trouble with a maven plugin that requires weblogic.jar on the classpath. We normally do this by adding a line to our m2.conf files, however I've done this (TeamCity-2.0/buildAgent/plugins/maven-2.0.6/bin/m2.conf) and it doesn't seem to be picked up.

How does TeamCity invoke maven, and is there a way to have m2.conf loaded?

cheers,
dim

2 comments

Hello Dmitri,

TeamCity 2.0 runs Maven using its embedder API.
Try upgrading to TeamCity 2.1, which simply invokes the mvn executable.

Also check that TeamCity uses proper Maven installation.

TeamCity determines Maven's location using the following (order is significant):

1. environment variable M2_HOME
2. JVM system property maven.home

If none is set or contains invalid location TeamCity uses the bundled Maven
package.

You've tried to reconfigure the bundled Maven. Please ensure your system
doesn't have M2_HOME or maven.home pointing to another Maven package.

Hi,

We use TeamCity 2.0 (build 4111) and I'm having trouble with a maven
plugin that requires weblogic.jar on the classpath. We normally do
this by adding a line to our m2.conf files, however I've done this
(TeamCity-2.0/buildAgent/plugins/maven-2.0.6/bin/m2.conf) and it
doesn't seem to be picked up.

How does TeamCity invoke maven, and is there a way to have m2.conf
loaded?

cheers,
dim


WBR,
Sergey Anchipolevsky


0

Thanks Sergey - downloading 2.1 now.

0

Please sign in to leave a comment.