Dobry den, ja mam v POMu toto:
<build> <plugins> <plugin> <groupId>com.jakubpawlowicz.maven.plugins</groupId> <artifactId>maven-ant-plugins</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>native2ascii</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>sun.jdk</groupId> <artifactId>tools</artifactId> <version>${java.version}</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> </dependencies> </plugin> </plugins> </build> ---------- mp. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benda Lukas Sent: Monday, October 23, 2006 17:31 To: Java Subject: Re: Maven kodovani zdroju Michal Palička napsal(a): > Dobry den, > > existuje plugin, ktery to umi. > Jedna se vlastne o obaleny kus skriptu pro ANT. > Autorem je Jakub Pawlowicz. > > http://www.jakubpawlowicz.com/blog/2006/03/19/maven_native2ascii_plugi > n/ > > Plugin jsem nainstaloval podle navodu a mvn -U install a nic se nezmenilo. Mam jeste nejak pozmenit pomy? Protoze na strankach je psano ze to funguje jako kouzlem. Ale vypada to ze ja jsem proti tomuto druhu magie rezistni :( Lukas "benzin" Benda ([EMAIL PROTECTED]; http://benzin.bloguje.cz) Java a Delphi programator PHP a JavaScript skrypter Tvurce databazovych aplikaci A "cestinarsky" ignorant > mp. > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Benda Lukas > Sent: Friday, October 20, 2006 19:59 > To: Java - diskuse > Subject: Maven kodovani zdroju > > Pouzivam ke kompilovani Maven2. V antu jsem pro cestinu pouzival > <native2ascii encoding="UTF-8" src="${resource.dir}" > dest="${class.dir}/resource" includes="**/messages/*.properties" > /> > > Jenze v mavenovi nevim jak ho dokopat k tomu aby konvertoval soubory do asci > aby se mi to zobrazovalo spravne. Zkousel jsem jak nastaveni: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0.1</version> > <configuration>p > <source>1.5</source> > <target>1.5</target> > <encoding>utf-8</encoding> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-resources-plugin</artifactId> > <version>2.2</version> > <configuration> > <encoding>utf-8</encoding> > </configuration> > </plugin> > Ktere ale nedela ocividne vubec nic. > > Tak nastaveni pomoci anta: > <plugins> > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>generate-sources</phase> > <configuration> > <tasks> > <taskdef name="native2ascii" > > classname="org.apache.tools.ant.taskdefs.optional.Native2Ascii" > classpathref="maven.dependency.classpath" > > <classpath> > <pathelement path="maven.dependency.classpath"/> > <pathelement location="${java.home}/../lib/tools.jar"/> > </classpath> > </taskdef> > > <native2ascii src="src/main/resources/" > dest="src/target/resources/" > includes="**/*.properties" /> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > Ktere zase konci havarii anta (s blize neurcenou chybou). > > Jak tento problem resite vy? > > Lukas "benzin" Benda ([EMAIL PROTECTED]; http://benzin.bloguje.cz) > Java a Delphi programator PHP a JavaScript skrypter Tvurce > databazovych aplikaci A "cestinarsky" ignorant > >