On 2011-05-01 01:31, sipungora wrote:
> Sorry, it was my error. pom says:
>
> <build>
> <outputDirectory>war/WEB-INF/classes</outputDirectory>
This is not good. You should alway use a directory under target/ as your
output directory. Why are you setting outputDirectory manually?
> ...
> and
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
>
> <warSourceDirectory>war</warSourceDirectory>
>
> <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
>
> <dependentWarExcludes>WEB-INF/lib/*</dependentWarExcludes>
> <archive>
>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF
> </manifestFile>
Here you are telling the plugin to use your own custom MANIFEST.MF that
is located in ${project.build.outputDirectory}/META-INF/ and with your
current outputDirectory that means in war/WEB-INF/classes/META-INF/ just
as it says in the error message.
> </archive>
> </configuration>
> </plugin>
> ...
> </build>
>
> Now I've corrected it and build is successful.
>
> Thank you for hint. Sorry. --
> View this message in context:
> http://maven.40175.n5.nabble.com/Error-assembling-WAR-MANIFEST-MF-does-not-exist-tp4361924p4361959.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]