I believe "mvn clean package" runs the default lifecycle twice, first to
"package" phase, when reactor dependencies are resolved to packaged
jars, then to "test" phase, when reactor dependencies are resolved to
target/classes folders. I am surprised shade plugin is called during
"test" run at all. What phase is the plugin bound to in your project?

-- 
Regards,
Igor

On Sat, Nov 14, 2015, at 06:45 AM, Robert Scholte wrote:
> Op Sat, 14 Nov 2015 11:53:41 +0100 schreef Kristian Rosenvold  
> <kristian.rosenv...@gmail.com>:
> 
> > While working on MSHADE-171, I figured I'd take a stab at making shade
> > work from the "target" folder instead of just the assembled finished
> > jar.
> >
> > I implemented this, and it works kinda-ok, but then I realized that
> > I'm not producing the same output as I would from "package", since
> > there is no META-INF in the "target" folder of a reactor dependency.
> >
> > The user here is issuing a command like "mvn clean package test".
> > Given this command the reactor references resolve to the "target"
> > folder, can someone explain this to me ? If I just do "mvn clean
> > package" it resolves to the jar file.
> 
> And only one thread?
> 
> Robert
> 
> >
> > I'm probably the last guy to realize this, but this patch is a dead
> > end, right ? So we should probably just make shade a little more
> > verbose about what's going on; that we actually require a jar file ?
> >
> > Kristian
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 

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

Reply via email to