Re: invalid POM, why?

2007-08-15 Thread aldana



aldana wrote:
> 
> i am having problems with following dependency:
> 
> 
>   com.sun.xml.stream.buffer
>   streambuffer
>   0.4
> 
> 
> it tells me that referenced pom is invalid:
> 
> 
>   4.0.0
>   com.sun.xml.stream.buffer
>   streambuffer
>   0.4
>   
> 
>   org.jvnet.staxex
>   stax-ex
> 
> 
>   activation
>   activation
> 
>   
> 
> 
> when doing mvn:compile [WARNING] is given on maven console build is
> continued. but when executing assembly:assembly (from assembly plugin)
> build is failing. it seems that a validate POM must be given so content
> can be copied to assembly.
> 
> so my question: why is above POM invalid (does not look wrong to me). how
> can i make it validate so my assembly:assembly goal works?
> 
> 
> 


found out why: org.jvnet.staxex:stax-ex is from pom-version 3, which is
destroying my build. i am using assembly plugin 2.2-beta-1 which seems
cannot handle this...
-- 
View this message in context: 
http://www.nabble.com/invalid-POM%2C-why--tf4274044s177.html#a12165365
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: invalid POM, why?

2007-08-15 Thread John Casey
The problem is that this POM's dependencies do not have versions.  
They can inherit versions from a dependencyManagement section (in a  
parent POM or something), but this POM also doesn't specify a > section (which would need the groupId, artifactId, and version of  
the parent POM).


Cheers,

-john

On Aug 15, 2007, at 12:08 PM, aldana wrote:



i am having problems with following dependency:


  com.sun.xml.stream.buffer
  streambuffer
  0.4


it tells me that referenced pom is invalid:


  4.0.0
  com.sun.xml.stream.buffer
  streambuffer
  0.4
  

  org.jvnet.staxex
  stax-ex


  activation
  activation

  


when doing mvn:compile [WARNING] is given on maven console build is
continued. but when executing assembly:assembly (from assembly  
plugin) build
is failing. it seems that a validate POM must be given so content  
can be

copied to assembly.

so my question: why is above POM invalid (does not look wrong to  
me). how

can i make it validate so my assembly:assembly goal works?


--
View this message in context: http://www.nabble.com/invalid-POM%2C- 
why--tf4274044s177.html#a12165009

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john