Can I run a maven lifecycle for a module as a before launch step in 12.0.4?

I have a module: webapp that relies on a module: component. For some reason when I try to run webapp in tomcat the component is not introduced into the webapp. If I manually "mvn install" the component into my local repository then everything works as desired. I tried running the install:install goal but that fails. For now I've just added a manual build step that runs the mvn command line, but this seems wrong :)...

Thanks in advance for your advice!

2 comments

Bindu, how do you run webapp in tomcat? Using Tomcan Run Configuration or some maven plugin?
What error occurred when you tried running the install:install goal?

0

I'm trying to use a Tomcat Run configuration

When I run install:install I see the following:

Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-cli) on project amp: The packaging for this project did not assign a file to the build artifact -> [Help 1]

I see the same if I attempt mvn install:install from a shell, mvn install however works as desired.

0

Please sign in to leave a comment.