I get the following error when trying to build debian package.
Can you help me to know what is the problem?

Plugin version is 1.0-alpha-4
Linux Ubuntu 10.10
Maven 2.2.1

$ mvn clean install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Packing HLicea
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /home/hlicea/Work/Java/Packing/target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/hlicea/Work/Java/Packing/src/main/resources
[INFO] [unix:package-dpkg {execution: default-package-dpkg}]
11/03/2011 12:58:45 PM org.apache.commons.vfs.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to create package.

Embedded error: Command 'dpkg-deb' returned a non-null exit code: 141
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
create package.
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
create package.
        at 
org.codehaus.mojo.unix.maven.MojoHelper$Execution.execute(MojoHelper.java:256)
        at 
org.codehaus.mojo.unix.maven.AbstractPackageMojo.execute(AbstractPackageMojo.java:61)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.io.IOException: Command 'dpkg-deb' returned a non-null
exit code: 141
        at 
org.codehaus.mojo.unix.util.SystemCommand$ExecutionResult.assertSuccess(SystemCommand.java:136)
        at org.codehaus.mojo.unix.dpkg.Dpkg.execute(Dpkg.java:95)
        at 
org.codehaus.mojo.unix.maven.dpkg.DpkgUnixPackage.packageToFile(DpkgUnixPackage.java:177)
        at 
org.codehaus.mojo.unix.maven.MojoHelper$Execution.execute(MojoHelper.java:240)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 11 12:58:45 CST 2011
[INFO] Final Memory: 11M/124M
[INFO] ------------------------------------------------------------------------
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
	<modelVersion>4.0.0</modelVersion>

	<groupId>cu.org.hl</groupId>
	<artifactId>Packing</artifactId>
	<version>0.1-SNAPSHOT</version>
	<packaging>dpkg</packaging>

	<name>Packing HLicea</name>
	<licenses>
		<license>
			<name>HLiceaLic</name>
		</license>
	</licenses>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.rp</groupId>
			<artifactId>rp-core</artifactId>
			<version>0.1-SNAPSHOT</version>
			<type>pom</type>
		</dependency>
		<dependency>
			<groupId>org.rp</groupId>
			<artifactId>core</artifactId>
			<version>0.1-SNAPSHOT</version>
			<type>jar</type>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>unix-maven-plugin</artifactId>
				<version>1.0-alpha-4</version>
				<extensions>true</extensions>

				<configuration>
					<contact>Hector Licea</contact>
					<contactEmail>[email protected]</contactEmail>
					<dpkg>
						<section>utils</section>
						<priority>optional</priority>
					</dpkg>

					<assembly>
						<copyArtifact>
							<artifact>org.rp:core:jar</artifact>
							<toFile>/home/hlicea/Work/core-0.1-SNAPSHOT.jar</toFile>
							<attributes>
								<user>hlicea</user>
								<group>hlicea</group>
								<mode>0666</mode>
							</attributes>
						</copyArtifact>
					</assembly>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to