skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Jeffrey E Care
I have a large, multi-module project that includes WAR and EAR projects. 
We are using skinny WARs inside the EAR.

I'm seeing a problem where the WAR manifest has timestamped classpath 
entries (e,g, research-jpa-1.0.0-20130802.22-177.jar) but the EAR 
contains SNAPSHOT files (e.g. research-jpa-1.0.0-SNAPSHOT.jar).

This only appears to happen if the dependencies (research-jpa in this 
example) are retrieved from the remote repo. The problem goes away if I 
mvn install the research-jpa project before building the WAR project.

Is there a work-around for this problem? Is it a known issue or should I 
open a JIRA for it? If I should open one, would it be against the WAR 
plugin or the archiver?

If it matters we're using Maven 3.0.5, war-plugin 2.4, ear-plugin 2.8


Jeffrey E. (Jeff) Care
Advisory Software Engineer | IBM Watson Solutions Release Engineering
email: ca...@us.ibm.com | External: 919-543-4907 | Tie line: 441-4907 







Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Wayne Fay
 Is there a work-around for this problem? Is it a known issue or should I

You mean other than this work-around that you already found??

 example) are retrieved from the remote repo. The problem goes away if I mvn
 install the research-jpa project before building the WAR project.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Jeffrey E Care
Wayne Fay wayne...@gmail.com wrote on 08/02/2013 12:24:14 PM:

  Is there a work-around for this problem? Is it a known issue or should 
I
 
 You mean other than this work-around that you already found??
 
  example) are retrieved from the remote repo. The problem goes awayif I 
mvn
  install the research-jpa project before building the WAR project.

Yes, sorry I wasn't clear. I don't want developers who never have to touch 
research-jpa to be forced to build that project everyday. I was thinking 
more along the lines of some sort of POM hack...

Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Wayne Fay
 Yes, sorry I wasn't clear. I don't want developers who never have to touch
 research-jpa to be forced to build that project everyday. I was thinking
 more along the lines of some sort of POM hack...

Maven is diametrically opposed to hacks. If there is a good solution
to your problem, it should not involve a hack. But there may not
(today) be a good solution to your problem (yet).

I'm not certain as I haven't been using skinny wars (or ears) lately.
Hopefully someone else will pipe up.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: skinny WAR classpath includes timestamped entries for SNAPSHOT dependenencies

2013-08-02 Thread Patrick Sansoucy
We use the skinny wars / ear and never had this issue. Maybe a dependency
issue with your poms? It may sound stupid, but did you take a look at the
dependency tree to make sure the resolution was OK ?
On Aug 2, 2013 1:18 PM, Wayne Fay wayne...@gmail.com wrote:

  Yes, sorry I wasn't clear. I don't want developers who never have to
 touch
  research-jpa to be forced to build that project everyday. I was thinking
  more along the lines of some sort of POM hack...

 Maven is diametrically opposed to hacks. If there is a good solution
 to your problem, it should not involve a hack. But there may not
 (today) be a good solution to your problem (yet).

 I'm not certain as I haven't been using skinny wars (or ears) lately.
 Hopefully someone else will pipe up.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org