I want to add my assembly task to one of my parent poms, as follows:

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.vcint.pom</groupId>
    <artifactId>server-app</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>pom</packaging>
    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.0.1</version>
                <configuration>
                    <descriptorId>bin</descriptorId>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>assembly</goal>
                        </goals>
                    </execution>
                </executions>                

            </plugin>
        </plugins>
    </build>
</project>

The problem is that when i try to install this pom (mvn install) i get
the following error:

[INFO] Building Unnamed - com.vcint.pom:server-app:pom:0.0.1-SNAPSHOT
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
----
[INFO] [clean:clean]
[INFO] Deleting directory c:\dev\workspace\ServerAppPom\target
[INFO] Deleting directory c:\dev\workspace\ServerAppPom\target\classes
[INFO] Deleting directory
c:\dev\workspace\ServerAppPom\target\test-classes
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] Preparing assembly:assembly
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Unnamed - com.vcint.pom:server-app:pom:0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
----
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[WARNING] Removing: assembly from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[WARNING] DEPRECATED [descriptorId]: Please use descriptorRefs instead
[INFO] [assembly:assembly {execution: default}]
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] Error creating assembly

Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory.

does anyone have any idea how i can avoid this?

thanks

jake

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Reply via email to