Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.2.2
-
None
-
None
-
Linux 2.6.25, Maven 2.0.4, JDK Sun 1.6.0, ServiceMix 3.2.2
Description
To create a new SU, I use :
mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-service-unit -DgroupId=net.nanthrax.servicemix -DartifactId=http-consumer-su
I have the following Build Error :
[INFO] Error creating from archetype
Embedded error: Error reading the META-INF/archetype.xml descriptor.
The META-INF/archetype.xml descriptor cannot be found.
I have test on SA maven create and the behavior is the same.
Analyzing my m2 local repository, I have seen that, in the servicemix-service-unit-3.2.2.jar and servicemix-service-assembly-3.2.2.jar, the archetype.xml file is located in META-INF/maven/archetype.xml. I have exploded the repackaged the jar files, putting the archetype.xml directly in the META-INF directory.
With this change, the build is OK (it's a workaround).