You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Selber, Heiko (NSN - DE/Berlin)" <he...@nsn.com> on 2008/04/09 15:17:22 UTC

Expanding ... into null

Hello,

I have a problem with an artifact that is downloaded from a local repository server, but is not expanded. So when its contents are accessed, they are not found.

Apparently, there is a problem with a null pointer. The console says this:

[INFO] Expanding: c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip into null

I would have expected something like expanding ... into c:\.m2\repository\.unpacked-modules\activemq-cpp-2.1.3_02-win32

There is more of the console output at the end.

I am entirely unsure about the reason. What disturbs me is that the expansion works sporadically. I'd have preferred a reproducible error.

I googled a similar problem reported on this list a while ago, which was solved by cleaning first. But it happens for me also when I execute 'mvn clean install'.

Could the problem be related to the fact that the target in question is a Visual C++ compilation? But I'd assume that expanding a dependency is independent of the type of the target, right?

Can anybody enlighten me?

Thanks in advance,

Heiko

PS: I use Maven 2.0.8 on Windows XP.

---- pom.xml extract ----
	
		<dependency>
			<groupId>com.company.project</groupId>
			<artifactId>activemq-cpp</artifactId>
			<classifier>${operating-system}</classifier>
			<version>${activemq-version}</version>
			<type>zip</type>
			<scope>compile</scope>
		</dependency> 



---- extract of console output ----

[INFO] ------------------------------------------------------------------------
[INFO] Building [...]
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\src\myproject\trunk\core-cpp\subproject\target
Downloading: http://localrepo.intra.net/maven-proxy/repository/release/com/company/project/activemq-cpp/2.1.3_02/activemq-cpp-2.1.3_02.pom
3K downloaded
Downloading: http://localrepo.intra.net/maven-proxy/repository/release/com/company/project/activemq-cpp/2.1.3_02/activemq-cpp-2.1.3_02-win32.zip
1636K downloaded
[INFO] [antrun:run {execution: clean}]
[INFO] Executing tasks
     [echo] Build script state: clean

clean:

     [exec] Microsoft (R) Development Environment,  Version 7.10.6030.
     [exec] Copyright (C) Microsoft Corp 1984-2001. Alle Rechte vorbehalten.
     [exec] ------ Bereinigen gestartet: Projekt: subproject, Konfiguration: Release Win32 ------

     [exec] Die Zwischen- und Ausgabedateien f?r das Projekt "subproject" mit der Konfiguration "Release|Win32" werden gelöscht.
     [exec]


     [exec] ---------------------- Fertig ----------------------

     [exec]     Bereinigigung: 1 erfolgreich, 0 fehlgeschlagen, 0 ?bersprungen
     [exec]

[INFO] Executed tasks
[INFO] [dependency:unpack-dependencies {execution: unpack-dependencies}]
[INFO] Expanding: c:\.m2\repository\com\company\project\activemq-cpp\2.1.3_02\activemq-cpp-2.1.3_02-win32.zip into null
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [antrun:run {execution: nones}]
[INFO] Executing tasks

compile.sequential:

     [exec] Microsoft (R) Development Environment,  Version 7.10.6030.
     [exec] Copyright (C) Microsoft Corp 1984-2001. Alle Rechte vorbehalten.
     [exec] ------ Erstellen gestartet: Projekt: subproject, Konfiguration: Release Win32 ------

     [exec] Kompilieren...
     [exec] build.cpp
     [exec] src\main\cpp\com\company\project\core\ams\activemq\jms\Message.h(20) : fatal error C1083: Include-Datei kann nicht geöffnet werden: 'cms/Message.h': No such file or directory
     [exec]
     [exec] Das Build-Protokoll wurde unter "file://C:\src\myproject\trunk\core-cpp\subproject\target\obj\Release\vs2003\BuildLog.htm" gespeichert.
     [exec] subproject - 1 Fehler, 0 Warnung(en)


     [exec] ---------------------- Fertig ----------------------

     [exec]     Erstellen: 0 erfolgreich, 1 fehlgeschlagen, 0 ?bersprungen
     [exec]

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\src\myproject\trunk\build\build.xml:97: exec returned: 1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 26 seconds
[INFO] Finished at: Fri Apr 04 12:24:31 CEST 2008
[INFO] Final Memory: 67M/124M
[INFO] ------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org