Native to ascii on the file shows:

<name>Trygve Laugst\u00f8l</name>

I'm not sure why this is an issue, but I will change the pom in the
repo for the moment.

- Brett

On 11/4/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> Stepping through this in debug the main difference I can see is:
>
> Windows:
>
> isr.sd.btc is an instance of sun.io.ByteToCharCp1252
>
> Linux:
>
> isr.sd.btc is an instance of sun.io.ByteToCharUTF8
>
> but I feel I'm debugging the JRE now :-(
>
> On 11/3/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > This small test case fails for me with the
> > sun.io.MalformedInputException, but running on Windows it passes.
> > Locale is en_GB on both! I'll continue to dig.
> >
> > import java.io.FileInputStream;
> > import java.io.InputStreamReader;
> >
> > public class ReadPom {
> >
> >     public static void main(String[] args) {
> >         try {
> >             char[] pomFileChars = new char[10000];
> >             FileInputStream fis = new
> > FileInputStream("/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom");
> >             FileInputStream fis = new
> > //FileInputStream("c:\\cygwin\\home\\hughesj\\plexus-utils-1.0.4.pom");
> >             InputStreamReader isr = new InputStreamReader(fis);
> >             isr.read(pomFileChars);
> >         } catch (Exception e) {
> >             e.printStackTrace();
> >         }
> >
> >     }
> > }
> >
> > On 11/3/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > > import java.util.Locale;
> > > public class WhatsMyLocale {
> > >     public static void main(String[] args) {
> > >         Locale l = Locale.getDefault();
> > >         System.out.println(l);
> > >     }
> > > }
> > > outputs
> > > en_GB
> > >
> > > The LANG env variable:
> > > LANG=en_GB.UTF-8
> > >
> > > If there's anything I can do to help diagnose, let me know. I can try
> > > changing to en_US, but I know en_GB is supported!
> > >
> > > Thanks,
> > > Jeremy
> > >
> > > On 11/2/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > > I think this is the key:
> > > >
> > > > Caused by: sun.io.MalformedInputException
> > > >        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled 
> > > > Code))
> > > >
> > > > What is your locale?
> > > >
> > > > I seem to recall something like this recently, but I'm not sure.
> > > >
> > > > - Brett
> > > >
> > > > On 11/2/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > > > > Here's a snippet from my mvn -X compile. Is this what you wanted? 
> > > > > Thanks.
> > > > >
> > > > > Downloading: 
> > > > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
> > > > > 6K downloaded
> > > > > [DEBUG]   Artifact resolved
> > > > > [INFO] 
> > > > > ----------------------------------------------------------------------------
> > > > > [ERROR] BUILD ERROR
> > > > > [INFO] 
> > > > > ----------------------------------------------------------------------------
> > > > > [INFO] Error building POM (may not be this project's POM).
> > > > >
> > > > >
> > > > > Project ID: org.codehaus.plexus:plexus-utils
> > > > >
> > > > > Reason: Failed to build model from file
> > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > Error: 'null'
> > > > >
> > > > >
> > > > > [INFO] 
> > > > > ----------------------------------------------------------------------------
> > > > > [DEBUG] Trace
> > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> > > > > dependency information: Unable to read the metadata file for artifact
> > > > > 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from
> > > > > file 
> > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > Error: 'null'
> > > > >   org.codehaus.plexus:plexus-utils:1.0.4:jar
> > > > >
> > > > > from the specified remote repositories:
> > > > >   central (http://repo1.maven.org/maven2),
> > > > >   snapshots (http://snapshots.maven.codehaus.org/maven2)
> > > > > Path to dependency:
> > > > >         1) 
> > > > > org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1
> > > > >         2) org.apache.maven:maven-model:jar:2.0
> > > > >
> > > > >
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:536)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
> > > > >         at 
> > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> > > > >         at 
> > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> > > > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> > > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > >         at 
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
> > > > >         at 
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
> > > > >         at 
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
> > > > >         at java.lang.reflect.Method.invoke(Method.java:391)
> > > > >         at 
> > > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > >         at 
> > > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > > Caused by: 
> > > > > org.apache.maven.artifact.resolver.ArtifactResolutionException:
> > > > > Unable to get dependency information: Unable to read the metadata file
> > > > > for artifact 'org.codehaus.plexus:plexus-utils:jar': Failed to build
> > > > > model from file
> > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > Error: 'null'
> > > > >   org.codehaus.plexus:plexus-utils:1.0.4:jar
> > > > >
> > > > > from the specified remote repositories:
> > > > >   central (http://repo1.maven.org/maven2),
> > > > >   snapshots (http://snapshots.maven.codehaus.org/maven2)
> > > > > Path to dependency:
> > > > >         1) 
> > > > > org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1
> > > > >         2) org.apache.maven:maven-model:jar:2.0
> > > > >
> > > > >
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:289)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:294)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:67)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
> > > > >         at 
> > > > > org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:596)
> > > > >         at 
> > > > > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:506)
> > > > >         at 
> > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:377)
> > > > >         at 
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
> > > > >         ... 17 more
> > > > > Caused by: 
> > > > > org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
> > > > > Unable to read the metadata file for artifact
> > > > > 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from
> > > > > file 
> > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > Error: 'null'
> > > > >         at 
> > > > > org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:114)
> > > > >         at 
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:276)
> > > > >         ... 26 more
> > > > > Caused by: org.apache.maven.project.ProjectBuildingException: Failed
> > > > > to build model from file
> > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > Error: 'null'
> > > > >         at 
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1066)
> > > > >         at 
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:383)
> > > > >         at 
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:346)
> > > > >         at 
> > > > > org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:101)
> > > > >         ... 27 more
> > > > > Caused by: sun.io.MalformedInputException
> > > > >         at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled 
> > > > > Code))
> > > > >         at 
> > > > > sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Inlined
> > > > > Compiled Code))
> > > > >         at 
> > > > > sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled
> > > > > Code))
> > > > >         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled 
> > > > > Code))
> > > > >         at java.io.InputStreamReader.read(InputStreamReader.java:208)
> > > > >         at java.io.Reader.read(Reader.java:113)
> > > > >         at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
> > > > >         at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
> > > > >         at 
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1080)
> > > > >         at 
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1057)
> > > > >         ... 30 more
> > > > >
> > > > >
> > > > > On 11/1/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > > > > The VM_... errors are really just warnings and can be ignored.
> > > > > >
> > > > > > I'm not able to reproduce the problems with mvn -X compile on a new
> > > > > > archetpye though. What are the stack traces?
> > > > > >
> > > > > > - Brett
> > > > > >
> > > > > > On 11/2/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > > > > > > Hi, thanks for responding. The files in the maven-2.0-bin.tar.gz 
> > > > > > > file
> > > > > > > I downloaded are dated 2005-10-18.
> > > > > > >
> > > > > > > I just cleared out my ~/.m2 directory and did:
> > > > > > >
> > > > > > > cd ~
> > > > > > > mvn -X archetype:create -DgroupId=com.mycompany.app 
> > > > > > > -DartifactId=my-app
> > > > > > > cd my-app
> > > > > > > mvn -X compile
> > > > > > >
> > > > > > > stdout and stderr for each of the mvn commands attached.
> > > > > > >
> > > > > > > mvn -X archetype:create gives me an error which I only just 
> > > > > > > noticed:
> > > > > > >
> > > > > > > [ERROR] ResourceManager : unable to find resource
> > > > > > > 'VM_global_library.vm' in any resource loader.
> > > > > > >
> > > > > > > but reports BUILD SUCCESSFUL at the end.
> > > > > > >
> > > > > > > mvn -X compile reports the same error with some stack traces. 
> > > > > > > Hope it helps.
> > > > > > >
> > > > > > > Thanks v. much,
> > > > > > > Jeremy
> > > > > > >
> > > > > > > On 10/31/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > > > > > > Hi Jeremy,
> > > > > > > >
> > > > > > > > I've never seen this one. Did re-running continue to exhibit 
> > > > > > > > this?
> > > > > > > > What about using -X?
> > > > > > > >
> > > > > > > > What version of Maven are you using?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > Brett
> > > > > > > >
> > > > > > > > On 10/27/05, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > > > > > > > > Hi, I'm a Maven newbie. I just downloaded Maven2 and started 
> > > > > > > > > going
> > > > > > > > > through 'Getting started'. But got stuck on mvn compile. It 
> > > > > > > > > failed to
> > > > > > > > > build the model from plexus utils 1.0.4.
> > > > > > > > >
> > > > > > > > > Any help really appreciated. Thx. Jeremy
> > > > > > > > >
> > > > > > > > > This is the output:
> > > > > > > > >
> > > > > > > > > [INFO] Scanning for projects...
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [INFO] Building Maven Quick Start Archetype
> > > > > > > > > [INFO]    task-segment: [compile]
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [INFO] artifact 
> > > > > > > > > org.apache.maven.plugins:maven-resources-plugin:
> > > > > > > > > checking for updates from central
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > > > > > > > > 888b downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > > > > > > > > 6K downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > > > > > > > > 10K downloaded
> > > > > > > > > [INFO] artifact 
> > > > > > > > > org.apache.maven.plugins:maven-compiler-plugin:
> > > > > > > > > checking for updates from central
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> > > > > > > > > 1K downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> > > > > > > > > 13K downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-model-2.0.pom
> > > > > > > > > 2K downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom
> > > > > > > > > 8K downloaded
> > > > > > > > > Downloading: 
> > > > > > > > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
> > > > > > > > > 6K downloaded
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [ERROR] BUILD ERROR
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [INFO] Error building POM (may not be this project's POM).
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Project ID: org.codehaus.plexus:plexus-utils
> > > > > > > > >
> > > > > > > > > Reason: Failed to build model from file
> > > > > > > > > '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'.
> > > > > > > > > Error: 'null'
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [INFO] For more information, run Maven with the -e switch
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > > [INFO] Total time: 14 seconds
> > > > > > > > > [INFO] Finished at: Wed Oct 26 15:14:06 BST 2005
> > > > > > > > > [INFO] Final Memory: 3M/7M
> > > > > > > > > [INFO] 
> > > > > > > > > ----------------------------------------------------------------------------
> > > > > > > > >
> > > > > > > > > ---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to