You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jordi Txor Casas Ríos <tx...@gmail.com> on 2009/05/26 20:08:34 UTC
problem compiling the project with ubuntu's pbuilder
Dear community.
I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it
compiles and builds perfectly, creating the correct jars.
The problem comes when I try to do the same in a chrooted environment, with
pbuilder. The maven instalation is created when pbuilder starts, and the
project directory is copied inside; the problem is that maven does not
copies a set of jars that are in the local repository...
I checked all configuration files, I tryed to add the local repos by hand,
and more things that I found over internet, but without luck.
Here is a fragment of maven output:
...
[DEBUG] Dependencies for project:
net.opentrends.einestic:instalacion:jar:1.0 are:
junit:junit:jar:4.4:compile
[DEBUG] Managing version for: junit:junit:jar to: 4.4
[DEBUG] Managing scope for: junit:junit:jar to: compile
[DEBUG] Resolving project dependencies transitively.
[DEBUG] net.opentrends.einestic:instalacion:jar:1.0 (selected for null)
[DEBUG] junit:junit:jar:4.4:compile (selected for compile)
[DEBUG] While resolving dependencies of
net.opentrends.einestic:instalacion:jar:1.0:
[DEBUG] Statistics for Scope filter [null-scope=true, compile=true,
runtime=true, test=false, provided=false, system=false]
[DEBUG] The following scope filters were not used:
o Runtime
o Test
o Provided
o System
[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency path
information.
[DEBUG] Adding 1 dependency artifacts.
[DEBUG] Adding artifact: junit:junit:jar:4.4 with file:
/root/.m2/repository/junit/junit/4.4/junit-4.4.jar to assembly location:
lib/instalacion-1.0.jar.
[DEBUG] Adding file: /root/.m2/repository/junit/junit/4.4/junit-4.4.jar to
archive location: lib/instalacion-1.0.jar
[INFO] lib/procesosexternos-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
[INFO] lib/aplicaciones-1.0.jar already added, skipping
...
Maybe is a bug? Or I have to do something that I don't did...
Thanks in advice for any help...
Re: problem compiling the project with ubuntu's pbuilder
Posted by Max Bowsher <ma...@mxtelecom.com>.
Jordi Txor Casas Ríos wrote:
> Dear community.
> I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it
> compiles and builds perfectly, creating the correct jars.
> The problem comes when I try to do the same in a chrooted environment, with
> pbuilder. The maven instalation is created when pbuilder starts, and the
> project directory is copied inside; the problem is that maven does not
> copies a set of jars that are in the local repository...
Since the entire point of pbuilder is to build in a clean chroot with
only build dependencies explicitly declared via the debian packaging
infrastructure available, I would say that that is functioning as intended.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org