Hello,
In fact, I see that if I replace this "parent" by :
<parent>
<artifactId>maven-archetype-bundles</artifactId>
<groupId>org.apache.maven.archetypes</groupId>
<version>3</version>
</parent>
it works. Could anyone explain it?
NGUYEN Cong Kinh a écrit :
Hello,
I want to write a new archetype Maven. But I have a problem. Here is
my "top" pom:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--parent>
<groupId>cosmos.cosmos-mavenarchetype</groupId>
<artifactId>parent</artifactId>
<version>0.1.7-SNAPSHOT</version>
</parent-->
<groupId>cosmos.cosmos-mavenarchetype</groupId>
<artifactId>julia</artifactId>
<version>0.1.7-SNAPSHOT</version>
<packaging>jar</packaging>
<name>COSMOS Maven Archetype - julia</name>
</project>
In fact, with this pom, it works well. But you can see that I
commented on the "parent". In my archetype, I want to use "parent".
When I use "parent", I received one error as the following:
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling JAR
Embedded error: Problem creating jar:
/home/kinh/workspace/cosmos/trunk/cosmos/mavenarchetype/julia/target/classes
(Is a directory)
Could anyone give me suggestions to solve my problem?
Thanks in advance!
Kinh
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]