mirror of https://github.com/apache/maven.git
Update m1 build and generates the schema with the good namespace
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@522393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea6d67bf0d
commit
96e9f759ca
|
@ -16,26 +16,28 @@ KIND, either express or implied. See the License for the
|
|||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project xmlns:modello="modello" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" xmlns:j="jelly:core">
|
||||
|
||||
<goal name="customizeModello">
|
||||
<j:if test="${not modelloGenerated}">
|
||||
<!-- We need to have the generated code before to compile -->
|
||||
<ant:copy tofile="${maven.modello.model}" file="${maven.modello.model.m2}"/>
|
||||
<!-- We have to change the namespace before to generate the schema -->
|
||||
<ant:replace file="${maven.modello.model}" token="http://maven.apache.org/POM/4.0.0" value="http://maven.apache.org/POM/3.0.0"/>
|
||||
<attainGoal name="modello:modello"/>
|
||||
<!-- Need the original package as well -->
|
||||
<ant:copy tofile="${maven.modello.model}.2" file="${maven.modello.model}"/>
|
||||
<ant:replace file="${maven.modello.model}.2" token="org.apache.maven.model" value="org.apache.maven.project"/>
|
||||
<maven:set plugin="maven-modello-plugin" property="maven.modello.model" value="${maven.modello.model}.2"/>
|
||||
<attainGoal name="modello:modello"/>
|
||||
<j:set var="modelloGenerated" value="true" scope="parent"/>
|
||||
</j:if>
|
||||
</goal>
|
||||
<!-- We need to have the generated code before to compile -->
|
||||
<preGoal name="java:compile">
|
||||
<attainGoal name="modello:modello"/>
|
||||
<!-- Need the original package as well -->
|
||||
<ant:copy tofile="${basedir}/target/maven.mdo.m1" file="${maven.modello.model}" />
|
||||
<ant:replace file="${basedir}/target/maven.mdo.m1" token="org.apache.maven.model" value="org.apache.maven.project" />
|
||||
<maven:set plugin="maven-modello-plugin" property="maven.modello.model" value="${basedir}/target/maven.mdo.m1"/>
|
||||
<attainGoal name="modello:modello"/>
|
||||
<attainGoal name="customizeModello"/>
|
||||
</preGoal>
|
||||
|
||||
<!-- We need to have the generated code before to compute the javadoc -->
|
||||
<preGoal name="maven-javadoc-plugin:register">
|
||||
<attainGoal name="modello:modello"/>
|
||||
<!-- Need the original package as well -->
|
||||
<ant:copy tofile="${basedir}/target/maven.mdo.m1" file="${maven.modello.model}" />
|
||||
<ant:replace file="${basedir}/target/maven.mdo.m1" token="org.apache.maven.model" value="org.apache.maven.project" />
|
||||
<maven:set plugin="maven-modello-plugin" property="maven.modello.model" value="${basedir}/target/maven.mdo.m1"/>
|
||||
<attainGoal name="modello:modello"/>
|
||||
<attainGoal name="customizeModello"/>
|
||||
</preGoal>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -46,7 +46,8 @@ maven.compile.source=1.4
|
|||
maven.compile.target=1.4
|
||||
|
||||
# Modello settings
|
||||
maven.modello.model=${basedir}/src/main/mdo/maven.mdo
|
||||
maven.modello.model=${basedir}/target/maven.mdo.m1
|
||||
maven.modello.model.m2=${basedir}/src/main/mdo/maven.mdo
|
||||
maven.modello.packageWithVersion=false
|
||||
maven.modello.version=3.0.0
|
||||
maven.modello.plugins=xpp3,stax,dom4j
|
||||
|
|
Loading…
Reference in New Issue