Hey Benjamin,
in one of my projects (which I took over) I run into the same issue (using the 
current version of the ear-plugin). Running `mvn verify" with "-e" parameter 
brings me exactly the same behavior (trying to copy classes) and failing the 
build.

I don't see a "classes-ep" directory in my "target" directory, but only the 
regular "classes", but in that, there are all files I would excpect.

Did you found out any other reason or only not using the "-e" parameter? For me 
it feels that there is a must be something else, but I'm a bit lost know where 
to search.

Matthias
P.S. Happens on Windows and Linux, so I think we can take this aspect out.


On 2020/02/03 11:04:43 Benjamin Marwell wrote:
> Hi,
> 
> I think I found the reason.
> 
> In the verify phase, I am executing errorprone, which uses the
> maven-compiler-plugin.
> 
> Although I compile to target/classes-ep (instead of target/classes),
> somehow this seems to un-append artifacts.
> 
> I think that the execution of an addition compilation should not
> un-append artifacts from the project build, should it?
> 
> Ben
> 
> Am Mo., 3. Feb. 2020 um 11:08 Uhr schrieb Benjamin Marwell 
> <bmarw...@gmail.com>:
> >
> > Hi all,
> >
> > since today my ear-plugin configuration does not work anymore and
> > stops with an exception.
> >
> > I pull in a dependency (type war) from another module in the same
> > reactor. I also pull the same dependency in again with a classifier
> > and another type to be used with the maven-assembly-plugin.
> >
> > Anyway, maven-ear-plugin does not try to pull in the war file, but the
> > target/classes directory instead:
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-ear-plugin:3.0.1:ear (default-ear) on
> > project ear: Cannot copy a directory:
> > $HOME/svn/project/web/ui-v2/target/classes; Did you package/install
> > project:webui-v2:war:1.4.0-SNAPSHOT:compile? -> [Help 1]
> >
> > As I am using verify as goal. I checked that both the packages were
> > created in the referenced module.
> >
> > Any ideas where to look next?
> >
> > Thanks,
> > Ben
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

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

Reply via email to