Article View: pl.comp.lang.java
Article #153499Re: Maven i GWT
From: J-23
Date: Sun, 22 Jul 2012 22:03
Date: Sun, 22 Jul 2012 22:03
151 lines
5985 bytes
5985 bytes
W dniu 20.07.2012 14:14, William Bonawentura pisze: >> Sorki może za głupie pytanie ale jak to zmienic w konfiguraji bo > > W pliku pom.xml projektu. Dzieki wielkie za pomoc, ale jeszcze potrzebuje podpowiedzi, bo mam: problem dotyczy budowania pliku WAR [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Test 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ Test --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\Łukasz\workspace\Test\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ Test --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Test --- [debug] execute contextualize [WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\Łukasz\workspace\Test\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ Test --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ Test --- [INFO] Surefire report directory: C:\Users\Łukasz\workspace\Test\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ Test --- [INFO] Packaging webapp [INFO] Assembling webapp [Test] in [C:\Users\Łukasz\workspace\Test\target\Test-0.0.1-SNAPSHOT] [INFO] Processing war project [INFO] Webapp assembled in [29 msecs] [INFO] Building war: C:\Users\Łukasz\workspace\Test\target\Test-0.0.1-SNAPSHOT.war [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.274s [INFO] Finished at: Sun Jul 22 23:51:22 CEST 2012 [INFO] Final Memory: 5M/61M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project Test: 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 Zawartość pliku pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>Test</groupId> <artifactId>Test</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <build> <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-resources-plugin </artifactId> <versionRange> [2.4.3,) </versionRange> <goals> <goal>resources</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> </plugin> </plugins> </build> </project> Pozdrawiam
Technical Details
Message-ID:
<juhtit$1k4$1@mx1.internetia.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!opal.futuro.pl!news.internetia.pl!not-for-mailReferences:
<jtnq0o$8c8$1@mx1.internetia.pl> <jtof4l$qq9$1@news2.ipartners.pl> <ju71rh$7bl$1@mx1.internetia.pl> <ju867e$2ave$1@news2.ipartners.pl> <jua79m$107$1@mx1.internetia.pl> <jubi3k$tl4$1@news2.ipartners.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!opal.futuro.pl!news.internetia.pl!not-for-mail From: J-23 <baczeklu@poczta.fm> Newsgroups: pl.comp.lang.java Subject: Re: Maven i GWT Date: Mon, 23 Jul 2012 00:03:58 +0200 Organization: Netia S.A. Lines: 151 Message-ID: <juhtit$1k4$1@mx1.internetia.pl> References: <jtnq0o$8c8$1@mx1.internetia.pl> <jtof4l$qq9$1@news2.ipartners.pl> <ju71rh$7bl$1@mx1.internetia.pl> <ju867e$2ave$1@news2.ipartners.pl> <jua79m$107$1@mx1.internetia.pl> <jubi3k$tl4$1@news2.ipartners.pl> NNTP-Posting-Host: 87-205-250-41.adsl.inetia.pl Mime-Version: 1.0 X-Trace: mx1.internetia.pl 1342994845 1668 87.205.250.41 (22 Jul 2012 22:07:25 GMT) X-Complaints-To: abuse@inetia.pl NNTP-Posting-Date: Sun, 22 Jul 2012 22:07:25 +0000 (UTC) In-Reply-To: <jubi3k$tl4$1@news2.ipartners.pl> X-Tech-Contact: usenet@internetia.pl User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 X-Server-Info: http://www.internetia.pl/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit