Hi Jeevan,

Add Junit dependency to your pom.xml file and try to package then.

Regards,
Tejkumar

On Thu, Apr 2, 2020 at 7:50 AM Jan Monterrubio <janmonterru...@gmail.com>
wrote:

> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-war-plugin:2.2:war
> (default-war) on project mailcasting: Error assembling WAR: webxml
> attribute is required (or pre-existing WEB-INF/web.xml if executing in
> update mode) -> [Help 1]
>
> I think that’s your error.
>
> On Wed, Apr 1, 2020 at 20:53 Jan Monterrubio <janmonterru...@gmail.com>
> wrote:
>
>> Is this a Jenkins issue? Does it work outside of Jenkins? What Jenkins
>> version and plugins are you using?
>>
>> On Wed, Apr 1, 2020 at 20:29 Jeevan Podduturi <jeevan.poddut...@gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I can compile successfully but i cannot package, please help\guide me on
>>> the same
>>>
>>> [root@maveen mailcasting]# mvn package
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> [INFO] ----------------------< mailcasting:mailcasting
>>> >-----------------------
>>> [INFO] Building mailcasting 0.0.1-SNAPSHOT
>>> [INFO] --------------------------------[ war
>>> ]---------------------------------
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
>>> mailcasting ---
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] skip non existing resourceDirectory
>>> /root/mailcasting/src/main/resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
>>> mailcasting ---
>>> [INFO] No sources to compile
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.6:testResources
>>> (default-testResources) @ mailcasting ---
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] skip non existing resourceDirectory
>>> /root/mailcasting/src/test/resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
>>> mailcasting ---
>>> [INFO] No sources to compile
>>> [INFO]
>>> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @
>>> mailcasting ---
>>> [INFO] No tests to run.
>>> [INFO]
>>> [INFO] --- maven-war-plugin:2.2:war (default-war) @ mailcasting ---
>>> WARNING: An illegal reflective access operation has occurred
>>> WARNING: Illegal reflective access by
>>> com.thoughtworks.xstream.core.util.Fields
>>> (file:/root/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar)
>>> to field java.util.Properties.defaults
>>> WARNING: Please consider reporting this to the maintainers of
>>> com.thoughtworks.xstream.core.util.Fields
>>> WARNING: Use --illegal-access=warn to enable warnings of further illegal
>>> reflective access operations
>>> WARNING: All illegal access operations will be denied in a future release
>>> [INFO] Packaging webapp
>>> [INFO] Assembling webapp [mailcasting] in
>>> [/root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT]
>>> [INFO] Processing war project
>>> [INFO] Webapp assembled in [8 msecs]
>>> [INFO] Building war:
>>> /root/mailcasting/target/mailcasting-0.0.1-SNAPSHOT.war
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time:  2.339 s
>>> [INFO] Finished at: 2020-04-02T09:25:49+08:00
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
>>> mailcasting: Error assembling WAR: webxml attribute is required (or
>>> pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>> [root@maveen mailcasting]#
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CABRoojTT%2B%2B_5%2BZ-fo8XfOE-PV4s%2Bjjg08Q%3DJGW4fCTaMnQQxhg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CABRoojTT%2B%2B_5%2BZ-fo8XfOE-PV4s%2Bjjg08Q%3DJGW4fCTaMnQQxhg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KJiH3ay4xmBhPBD7k4bvaWnAsp9EkqCUdRzz-qDnkNmQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KJiH3ay4xmBhPBD7k4bvaWnAsp9EkqCUdRzz-qDnkNmQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPhxSuwPywC8%2BoOGfAmNcfM5F32keuuRgJg84_fh%2Bq0ZSR-csQ%40mail.gmail.com.

Reply via email to