Thanks for you anwsers.
I have now reached a satisfying solution. It looks as following:
<project xmlns:war="war">
<!-- Compile and pack the project -->
<preGoal name="war:war">
<delete file="${maven.war.build.dir}/${maven.final.name}.jar"/>
<attainGoal name="java:jar"/>
</preGoal>
<preGoal name="war:war">
<attainGoal name="war:webapp"/>
</preGoal>
<goal name="war:war">
<echo>Building ${maven.war.build.dir}/${pom.id}.war</echo>
<echo>Maven build dir ${maven.war.build.dir}</echo>
<echo>Maven final name ${maven.final.name}</echo>
<echo>Maven lib name ${maven.war.build.dir}/${pom.id}/WEB-INF/lib</echo>
<delete file="${maven.war.build.dir}/${pom.id}.war"/>
<war warfile="${maven.war.build.dir}/${pom.id}.war" webxml="${maven.war.webxml}">
<lib dir="${maven.war.build.dir}/${pom.id}/WEB-INF/lib">
</lib>
<lib dir="${maven.war.build.dir}">
<include name="${maven.final.name}.jar"/>
</lib>
<!--<classes dir="${maven.build.dest}">
<exclude name="${maven.war.excludes}" />
</classes>-->
<fileset dir="${maven.war.src}">
<exclude name="WEB-INF/web.xml"/>
</fileset>
<metainf dir="${basedir}">
<include name="LICENSE.txt"/>
</metainf>
<manifest>
<attribute name="Built-By" value="${user.name}" />
<section name="${pom.package}">
<attribute name="Specification-Title" value="${pom.id}" />
<attribute name="Specification-Version" value="${pom.currentVersion}" />
<attribute name="Specification-Vendor" value="${pom.organization.name}" />
<attribute name="Implementation-Title" value="${pom.package}" />
<attribute name="Implementation-Version" value="${pom.currentVersion}" />
<attribute name="Implementation-Vendor" value="${pom.organization.name}" />
</section>
</manifest>
</war>
</goal>
</project>
Is this a good solution?
I'm also really uncertain of what the namespace declaration in this context means and
how I can use it.
If anyone care to explain, please.
Best regards,
/Theis.
--
To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>