You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dave Brosius <db...@mebigfatguy.com> on 2009/02/05 19:05:52 UTC
mvn and native2ascii on ubuntu
Hi folks,
I've seen a couple references to problems regarding native2ascii on various places but i couldn't see a similar problem to what i am experiencing, so perhaps, if you would indulge me, i will ask again.
I am running java 6 (/usr/bin/jvm/java-6-sun-1.6.0.10)
and have a pom with a native2ascii plugin in it (see below at end)
when i mvn install i get the following exception, which shows that mvn or ant perhaps, are confused about where native2ascii exists. Which i find in /usr/bin/native2ascii). Anyone have any suggestions on what i could have set up wrongly?
/home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii not found.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)
at org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:192)
at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:215)
at org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:115)
at org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:92)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
(and here is the maven pom section of note)
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>${native2ascii-maven-plugin.version}</version>
<executions>
<execution>
<id>Cp1251</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>Cp1251</encoding>
<includes>TPStrings_ru*.native</includes>
<dest>${native.dest.resource.dir}</dest>
<ext>.properties</ext>
</configuration>
</execution>
<execution>
<id>big5</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>big5</encoding>
<includes>TPStrings_zh_TW*.native</includes>
<dest>${native.dest.resource.dir}</dest>
<ext>.properties</ext>
</configuration>
</execution>
<execution>
<id>gb2312</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>gb2312</encoding>
<includes>TPStrings_zh_CN*.native</includes>
<dest>${native.dest.resource.dir}</dest>
<ext>.properties</ext>
</configuration>
</execution>
<execution>
<id>shift_jis</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>shift_jis</encoding>
<includes>TPStrings_ja*.native</includes>
<dest>${native.dest.resource.dir}</dest>
<ext>.properties</ext>
</configuration>
</execution>
</executions>
</plugin>
Re: mvn and native2ascii on ubuntu
Posted by Dave Brosius <db...@mebigfatguy.com>.
Ah, my source code view had gotten corrupted, and so directories had gotten hijacked in a bad state. Deleting all the code, and reloading fixed the problem. Sorry for the noise.
Re: mvn and native2ascii on ubuntu
Posted by Dave Brosius <db...@mebigfatguy.com>.
Hmmm, you are right. making a ln to it there does nothing.
When i add a directory called 'native2ascii' there, it seems to go past that location, but now all kinds of wonky things are happening. Compiler can't find classes for one. I have no idea why maven wants a directory there - it is beyond me. It should just be calling native2ascii. This was all working a couple of days ago, and i must have inadvertently stepped on something, but for the life of me i have no idea what.
-----Original Message-----
From: "Wayne Fay" <wa...@gmail.com>
Sent: Thursday, February 5, 2009 4:31pm
To: "Maven Users List" <us...@maven.apache.org>
Subject: Re: mvn and native2ascii on ubuntu
On Thu, Feb 5, 2009 at 1:12 PM, Dave Brosius wrote:
> I'm not following you. The problem is that native2ascii (the executable) can't be found.
Can you make a symlink to native2ascii in that location, to confirm
what you're saying is correct?
I don't use n2a myself so I really have no particular expectation of
what it wants etc, just trying to help.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn and native2ascii on ubuntu
Posted by Wayne Fay <wa...@gmail.com>.
On Thu, Feb 5, 2009 at 1:12 PM, Dave Brosius <db...@mebigfatguy.com> wrote:
> I'm not following you. The problem is that native2ascii (the executable) can't be found.
Can you make a symlink to native2ascii in that location, to confirm
what you're saying is correct?
I don't use n2a myself so I really have no particular expectation of
what it wants etc, just trying to help.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn and native2ascii on ubuntu
Posted by Dave Brosius <db...@mebigfatguy.com>.
I'm not following you. The problem is that native2ascii (the executable) can't be found.
-----Original Message-----
From: "Dan Tran" <da...@gmail.com>
Sent: Thursday, February 5, 2009 1:34pm
To: "Maven Users List" <us...@maven.apache.org>
Subject: Re: mvn and native2ascii on ubuntu
/home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii
is where you should put your to be convert files in
-D
On Thu, Feb 5, 2009 at 10:05 AM, Dave Brosius wrote:
> Hi folks,
>
> I've seen a couple references to problems regarding native2ascii on various places but i couldn't see a similar problem to what i am experiencing, so perhaps, if you would indulge me, i will ask again.
>
> I am running java 6 (/usr/bin/jvm/java-6-sun-1.6.0.10)
>
> and have a pom with a native2ascii plugin in it (see below at end)
>
> when i mvn install i get the following exception, which shows that mvn or ant perhaps, are confused about where native2ascii exists. Which i find in /usr/bin/native2ascii). Anyone have any suggestions on what i could have set up wrongly?
>
> /home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii not found.
> at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)
> at org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:192)
> at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:215)
> at org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:115)
> at org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:92)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>
>
>
>
>
>
> (and here is the maven pom section of note)
>
>
>
> org.codehaus.mojo
> native2ascii-maven-plugin
> ${native2ascii-maven-plugin.version}
>
>
> Cp1251
>
> native2ascii
>
>
> Cp1251
> TPStrings_ru*.native
> ${native.dest.resource.dir}
> .properties
>
>
>
> big5
>
> native2ascii
>
>
> big5
> TPStrings_zh_TW*.native
> ${native.dest.resource.dir}
> .properties
>
>
>
> gb2312
>
> native2ascii
>
>
> gb2312
> TPStrings_zh_CN*.native
> ${native.dest.resource.dir}
> .properties
>
>
>
> shift_jis
>
> native2ascii
>
>
> shift_jis
> TPStrings_ja*.native
> ${native.dest.resource.dir}
> .properties
>
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn and native2ascii on ubuntu
Posted by Dan Tran <da...@gmail.com>.
/home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii
is where you should put your to be convert files in
-D
On Thu, Feb 5, 2009 at 10:05 AM, Dave Brosius <db...@mebigfatguy.com> wrote:
> Hi folks,
>
> I've seen a couple references to problems regarding native2ascii on various places but i couldn't see a similar problem to what i am experiencing, so perhaps, if you would indulge me, i will ask again.
>
> I am running java 6 (/usr/bin/jvm/java-6-sun-1.6.0.10)
>
> and have a pom with a native2ascii plugin in it (see below at end)
>
> when i mvn install i get the following exception, which shows that mvn or ant perhaps, are confused about where native2ascii exists. Which i find in /usr/bin/native2ascii). Anyone have any suggestions on what i could have set up wrongly?
>
> /home/dave/views/pr/platform/ProgressReporter/pr-gui/src/main/native2ascii not found.
> at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)
> at org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:192)
> at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:215)
> at org.codehaus.mojo.native2ascii.Native2AsciiMojo.executeAnt(Native2AsciiMojo.java:115)
> at org.codehaus.mojo.native2ascii.Native2AsciiMojo.execute(Native2AsciiMojo.java:92)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>
>
>
>
>
>
> (and here is the maven pom section of note)
>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>native2ascii-maven-plugin</artifactId>
> <version>${native2ascii-maven-plugin.version}</version>
> <executions>
> <execution>
> <id>Cp1251</id>
> <goals>
> <goal>native2ascii</goal>
> </goals>
> <configuration>
> <encoding>Cp1251</encoding>
> <includes>TPStrings_ru*.native</includes>
> <dest>${native.dest.resource.dir}</dest>
> <ext>.properties</ext>
> </configuration>
> </execution>
> <execution>
> <id>big5</id>
> <goals>
> <goal>native2ascii</goal>
> </goals>
> <configuration>
> <encoding>big5</encoding>
> <includes>TPStrings_zh_TW*.native</includes>
> <dest>${native.dest.resource.dir}</dest>
> <ext>.properties</ext>
> </configuration>
> </execution>
> <execution>
> <id>gb2312</id>
> <goals>
> <goal>native2ascii</goal>
> </goals>
> <configuration>
> <encoding>gb2312</encoding>
> <includes>TPStrings_zh_CN*.native</includes>
> <dest>${native.dest.resource.dir}</dest>
> <ext>.properties</ext>
> </configuration>
> </execution>
> <execution>
> <id>shift_jis</id>
> <goals>
> <goal>native2ascii</goal>
> </goals>
> <configuration>
> <encoding>shift_jis</encoding>
> <includes>TPStrings_ja*.native</includes>
> <dest>${native.dest.resource.dir}</dest>
> <ext>.properties</ext>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org