You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by l....@corag.de on 2007/07/04 16:10:36 UTC

Including external xml fragments im pom.xml

Hi,

I'trying to separately organise pom-profiles in external xml files and 
include them at the point of need.
I've tried it in several ways. Like using xml enities (apparently entities 
aren't supported in maven 2)  or something like: 

<profile>
         <id>debug_local</id> 
         <import uri="Profiles/local_debug.xml"/> 
 </profile>

But none of my tryouts were successful. 
I always got an error like which sounds logically to me if an invalid tag 
is used within the pom.
org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. 
Reason: Unrecognised tag:
 'import' (position: START_TAG seen ...</id>\r\n\t\t \r\n <import 
uri="Profiles/local_deb

Does somebody know how external xml files can be included in a pom file 
with maven 2.

Regards, 

Lorenz Graf

Re: Including external xml fragments im pom.xml

Posted by Jason van Zyl <ja...@maven.org>.
It's not possible currently, but Milos has an issue in JIRA for it.  
Basically mixins for the POM.

On 4 Jul 07, at 7:10 AM 4 Jul 07, l.graf@corag.de wrote:

> Hi,
>
> I'trying to separately organise pom-profiles in external xml files and
> include them at the point of need.
> I've tried it in several ways. Like using xml enities (apparently  
> entities
> aren't supported in maven 2)  or something like:
>
> <profile>
>          <id>debug_local</id>
>          <import uri="Profiles/local_debug.xml"/>
>  </profile>
>
> But none of my tryouts were successful.
> I always got an error like which sounds logically to me if an  
> invalid tag
> is used within the pom.
> org.apache.maven.reactor.MavenExecutionException: Parse error  
> reading POM.
> Reason: Unrecognised tag:
>  'import' (position: START_TAG seen ...</id>\r\n\t\t \r\n <import
> uri="Profiles/local_deb
>
> Does somebody know how external xml files can be included in a pom  
> file
> with maven 2.
>
> Regards,
>
> Lorenz Graf

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder and PMC Chair, Apache Maven
jason at sonatype dot com
----------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org