There's something about properties substition that I don't understand.
I'm getting the error about a missing artifact, the coordinates for the
artifact it's complaining about are
jdbc-groupId-placeholder:jdbc-artifactId-placeholder:jar:version-jdbc-placeholder
And the path message is
Path to dependency:
1) edu.berkeley.ist.cars:cars-war:war:1.1-SNAPSHOT
2) edu.berkeley.ist.cars:cars-web:jar:1.1-SNAPSHOT
3) edu.berkeley.ist.cars:cars-download:jar:1.1-SNAPSHOT
4) jdbc-groupId-placeholder:jdbc-artifactId-placeholder:jar:version-jdbc
The cars-web and cars-download are built from a multi module parent pom, which
contains (along with the usual stuff)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${jdbc.groupId}</groupId>
<artifactId>${jdbc.artifactId}</artifactId>
<version>${version.jdbc}</version>
</dependency>
<!-- etc. -->
</dependencies>
</dependencyManagement>
<properties>
<jdbc.groupId>jdbc-groupId-placeholder</jdbc.groupId>
<jdbc.artifactId>jdbc-artifactId-placeholder</jdbc.artifactId>
<version.jdbc>version-jdbc-placeholder</version.jdbc>
<!-- etc. -->
</properties>
<profiles>
<profile>
<id>test</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<jdbc.driverClass>com.mysql.jdbc.Driver</jdbc.driverClass>
<jdbc.groupId>mysql</jdbc.groupId>
<jdbc.artifactId>mysql-connector-java</jdbc.artifactId>
<version.jdbc>5.1.6</version.jdbc>
<!-- etc. -->
</properties>
</profile>
</profiles>
I'm getting the error when I run "mvn -Ptest package" in the cars-war directory.
In the cars-parent directory I did "mvn -Ptest clean package install" and it
installed the jars in my ~/.m2 repo.
The cars-war pom.xml only has a dependency on cars-web.
The pom for cars-download contains
<dependency>
<groupId>${jdbc.groupId}</groupId>
<artifactId>${jdbc.artifactId}</artifactId>
</dependency>
(When I look at the .pom files in my ~/.m2 repo for cars-download and the
parent they contain the ${} placeholders, not the substituted values, which
puzzles me.)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]