incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Corneliussen // Zen" ...@lcorneliussen.de>
Subject AW: Maven release gives error on multi-module project
Date Mon, 15 Dec 2014 08:37:54 GMT
Hi Octavian,

I can't imagine "things" work when mixing. So even if adding the "dll" packaging type helps
to get things working for you, I'm pretty sure plenty of other things wont work.

Then, introducing "dll" shouldn't be necessary, since "library" and "dotnet-library" should
work fine when using 1.5 entirely.

_
Lars


-----Urspr√ľngliche Nachricht-----
Von: Octavian [mailto:h.octavian@gmail.com] 
Gesendet: Mittwoch, 10. Dezember 2014 14:28
An: npanday-users@incubator.apache.org
Cc: Brett Porter
Betreff: Re: Maven release gives error on multi-module project

Hello,
Yes I have mixed the versions 1.4 and 1.5, but then I found why it skipped the type dll dependencies.
Finally I used only the version 1.5 for both plugins with a little hack:
https://github.com/octavian-h/npanday/commit/02a0fa919534fc4afee4ae407f8e597fd7f5e6a7


Octavian

2014-12-08 11:00 GMT+02:00 Lars Corneliussen // Zen <me@lcorneliussen.de>:

> Do you mix the versions 1.4 and 1.5?
>
> I'm pretty sure we have some bugs around the release lifecycle in 
> NPanday 1.5, though this one seems strange
>
> But shouldn't maven resolve the project.version?
> @Brett, any idea?
>
> @Octavian: Could you provide a zip file (if your example project is 
> real
> :-))
>
> _
> Lars
>
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: Octavian [mailto:h.octavian@gmail.com]
> Gesendet: Donnerstag, 27. November 2014 15:21
> An: npanday-users@incubator.apache.org
> Betreff: Maven release gives error on multi-module project
>
> 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
View raw message