[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [zanata-users] Help requested



Hi Greg,

As Carlos said, it's because the Maven client doesn't handle backslash
characters.

I've put in https://bugzilla.redhat.com/show_bug.cgi?id=836054

If you update the client version to 1.6.1-SNAPSHOT, it should fix the
problem.  Please let me know what you find.


On an unrelated note: any time you end up with "pot" as part of the
filename (eg "Found source document: pot\analytique_entities"), "pot"
will end up in the output filename too.  That's usually not what you
want.  If you have configured srcDir as "." (the default), you may want
srcDir to be "pot" instead.

Regards

Sean.

On 2012-06-28 00:29, Gregoire Henry wrote:
> Hello 
> I'm trying to test zenata for my own project .. 
> I've succesfully setup zenata server on a win 2003 server 
> i've created a test project and added some language in it (fr,de) 
> I 'm trying to push some files from a test project using maven client
> (1.5.0 and 1.6.0) . (test made with  gettext .pot files and java
> .properties files) 
> 
> each push failled with the following error 
> 
> C:\Projects\lefebvre\zanatatest>mvn  zanata:push -B
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building test 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- zanata-maven-plugin:1.5.0:push (default-cli) @ test ---
> [WARNING] The POM for
> org.jboss.resteasy:resteasy-jaxb-provider:jar:2.1.0.GA <http://2.1.0.GA>
> is missing, no dependency information available
> [INFO] Loading project config from
> C:\Projects\lefebvre\zanatatest\zanata.xml
> [INFO] Loading user config from C:\Projects\lefebvre\zanatatest\zanata.ini
> [INFO] client API version: 1.5.0, server API version: 1.5.0
> [INFO] Server: http://srvbldbrn:8380/zanata/
> [INFO] Project: test
> [INFO] Version: 1.0
> [INFO] Username: admin
> [INFO] Project type: properties
> [INFO] Source language: fr
> [INFO] Copy previous translations: true
> [INFO] Merge type: auto
> [INFO] Enable modules: false
> [INFO] Include patterns:
> [INFO] Exclude patterns:
> [INFO] Default excludes: true
> [INFO] Pushing source documents only
> [INFO] Source directory (originals): C:\Projects\lefebvre\zanatatest
> [INFO] Found source document: pot\analytique_entities
> [INFO] pushing source doc [name=pot\analytique_entities size=596] to server
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.465s
> [INFO] Finished at: Wed Jun 27 16:11:54 CEST 2012
> [INFO] Final Memory: 8M/121M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.5.0:push
> (default-cli) on project test: Zanata mojo exception: operation returned
> 400 (Bad Request): , uri:
> http://srvbldbrn:8380/zanata/rest/projects/p/test/iterations/i/1.0/r,
> annotations: [ javax ws rs PUT(), @javax.ws.rs.Path(value=
> {id})] -> [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
> C:\Projects\lefebvre\zanatatest>
> 
> Do i make something wrong ?
> 
> Is there is a relation with the warning about  org.jboss.resteasy pom
> missing ?
> 
> my zanata.xml file looks like 
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <config xmlns="http://zanata.org/namespace/config/";>
>     <url>http://xxxxxxx/zanata/</url>
>     <project>test</project>
>     <project-version>1.0</project-version>
>     <project-type>properties</project-type>
> 
>     <locales>
>         <locale>de</locale>
>         <locale>fr</locale>
>     </locales>
> 
> </config>
> 
> Thanks for your help .
> 
> Greg


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat
<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>null</groupId>
   <artifactId>null</artifactId>
   <version>0</version>
   
   <build>
      <plugins>
         <plugin>
            <groupId>org.zanata</groupId>
            <artifactId>zanata-maven-plugin</artifactId>
            <version>1.6.1-SNAPSHOT</version>
            <configuration>
               <srcDir>.</srcDir>
               <transDir>.</transDir>
            </configuration>
         </plugin>
      </plugins>
   </build>
   <!-- NB: this is not needed if you have the jboss 'public' repository group enabled -->
   <pluginRepositories>
      <pluginRepository>
         <id>zanata-cloudbees-release</id>
         <name>zanata-cloudbees-release</name>
         <url>http://repository-zanata.forge.cloudbees.com/release/</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </pluginRepository>
      <pluginRepository>
         <id>zanata-cloudbees-snapshot</id>
         <name>zanata-cloudbees-snapshot</name>
         <url>http://repository-zanata.forge.cloudbees.com/snapshot/</url>
         <releases>
            <enabled>false</enabled>
         </releases>
         <snapshots>
            <enabled>true</enabled>
         </snapshots>
      </pluginRepository>
      <pluginRepository>
         <id>jboss-releases</id>
         <name>jboss-releases</name>
         <url>http://repository.jboss.org/nexus/content/repositories/releases/</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </pluginRepository>
      <pluginRepository>
         <id>jboss-thirdparty-releases</id>
         <name>jboss-thirdparty-releases</name>
         <url>http://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
         <releases>
            <enabled>true</enabled>
         </releases>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </pluginRepository>
   </pluginRepositories>
</project>

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]