I am using Maven and Eclipse to create a archetype webapp
project.
my project is dependent on another project in the workspace (say, projectA
), and everything works well at compile time. Now i have to add the entry for projectA
in my deployment assembly, so that it is included in the created WAR
, otherwise i get a class not found error when the webapp runs, for the classes i have used from projectA
.
Now, everytime I right click --> Maven --> Update
, the projectA
entry from deployment assembly is automatically removed, and i have to manually add it again before creating the war.
P.S: I have seen similar questions about Maven Dependencies
getting removed from deployment assembly, but that does not seem to be the case here, only the projectA entry is removed. I have <packaging> war </packaging>
in my pom.xml as well.
Using Eclipse Luna.