[2.0] play dist giving duplicate entry for play.play_2.9.1-2.0.1.jar

261 views
Skip to first unread message

Justin Hart

unread,
May 4, 2012, 1:54:07 PM5/4/12
to play-fr...@googlegroups.com
(Actually Play 2.0.1)

[Server] $ dist
[error] {file:/Users/jhart/dev/Server/}Server/*:dist: java.util.zip.ZipException: duplicate entry: server-1.0-SNAPSHOT/lib/play.play_2.9.1-2.0.1.jar
[error] Total time: 2 s, completed May 4, 2012 11:52:19 AM

I don't see any duplicates in 'play classpath' output, and no obvious dupes in Build.scala

Any thoughts?

Justin Hart

unread,
May 5, 2012, 3:30:01 PM5/5/12
to play-fr...@googlegroups.com
A follow up, it seems to do with the play2war plugin after the 2.0.1 upgrade

Thomas Felix

unread,
May 6, 2012, 4:33:09 PM5/6/12
to play-fr...@googlegroups.com
I have the same error so I just reverted back to 2.0 which packs my app fine without errors. But I dont use the play2war plugin. The only plugin I used was the mailer plugin. I tried play clean but with no luck. :/

Damien Lecan

unread,
May 10, 2012, 5:56:11 AM5/10/12
to play-fr...@googlegroups.com
Hi Justin,
 
Someone has already reported this issue :
 
But I'm not able to reproduce it. So help the project by providing a Play 2 project test case.
 
Thanks
 
Damien Lecan

Carlos Encarnacion

unread,
May 21, 2012, 10:32:38 PM5/21/12
to play-fr...@googlegroups.com
What's the status of this issue?

Damien Lecan

unread,
May 22, 2012, 7:09:41 AM5/22/12
to play-fr...@googlegroups.com
2012/5/22 Carlos Encarnacion <encarnaci...@gmail.com>:
> What's the status of this issue?

Fixed in v0.3.2 (only for "war" task, not for "dist" task).

Damien

Nuanda

unread,
May 22, 2012, 10:14:33 PM5/22/12
to play-fr...@googlegroups.com
It's not the play2-war Plugin that's broken; I believe the "dist" operation is just broken with Play 2.0.1.

So you can dev with v2.0.1, but not go to production unless you choose an alternate deployment vector such as the play2-war plugin which doesn't have the problem anymore:

Play is tracking the bug here:


I'd like to know if anybody has figured a work-around for the "dist" problem with v2.0.1... or do people just roll back to Play 2.0.0 ?

David CHAU

unread,
May 28, 2012, 8:46:25 AM5/28/12
to play-fr...@googlegroups.com
Hi,

I have the same issue since adding the spring4play2 module.
I suspect the duplicate entry error is only when adding modules as the my application depends on play2 and the module too.

Thomas Felix

unread,
May 28, 2012, 9:32:52 AM5/28/12
to play-fr...@googlegroups.com
I have the same problem when I use the typesafe mailer plugin. My solution is at the moment to roll back and use the play 2.0.0 for deployment.

Nuanda

unread,
Jun 17, 2012, 9:15:36 AM6/17/12
to play-fr...@googlegroups.com

For anybody tracking this thread, the problem is resolved a-ok in Play v2.0.2-RC2 !!

Reply all
Reply to author
Forward
0 new messages