maven: Package [com.package…] does not exist

I sometimes forget how maven works. When you have multiple projects and dependencies among time, sometimes you need to “install” the other artifact before it can be used.

In the dependent project, type:

mvn clean
mvn compile
mvn install

Then from the depending project, you can successfully type:

mvn package
Advertisements
Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: