incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Octavian <h.octav...@gmail.com>
Subject Maven release gives error on multi-module project
Date Thu, 27 Nov 2014 14:21:27 GMT
Hello again,
I use org.apache.npanday.plugins:maven-compile-plugin:1.4.0-incubating
and org.apache.npanday.plugins:maven-resgen-plugin:1.5.0-internal (I
released locally the version 1.5.0-incubating-SNAPSHOT) for my multi-module
project.

If I run "mvn clean install" it goes to success, but when I try to release
with "mvn -Dresume=false -DautoVersionSubmodules=true
-DpreparationGoals="clean install" release:clean release:prepare
release:perform" it fails at module B because it can't get the dependency
module A. The compile plugin doesn't resolve Maven variables and it tries
to download com.example:A:dll:${project.version}

ex:
Inside pom.xml from module B
        <dependency>
            <groupId>com.example</groupId>
            <artifactId>A</artifactId>
            <version>${project.version}</version>
            <type>dll</type>
        </dependency>


Why at install phase the NPanday compile plugin finds A dependency, but at
release time it don't?

Thanks,
Octavian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message