Bug 737806 - putversion: attributes defined in zanata.xml are not used.
putversion: attributes defined in zanata.xml are not used.
Status: CLOSED NOTABUG
Product: Zanata
Classification: Community
Component: Component-Maven (Show other bugs)
1.4-RC
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Runa Bhattacharjee
Ding-Yi Chen
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-13 03:18 EDT by Ding-Yi Chen
Modified: 2013-03-03 21:21 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-10-16 23:23:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ding-Yi Chen 2011-09-13 03:18:02 EDT
Description of problem:
For maven client, attributes such as url, project, project-version in
zanata.xml are not used on goal putproject.

Administrators do not have to type all the information which already contained
in zanata.xml 

How reproducible:
Always

Version-Release number of selected component (if applicable):


Steps to Reproduce:
1. Assume zanata.xml is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<config xmlns="http://zanata.org/namespace/config/">
    <url>http://zanata.server.com/</url>
    <project>AboutFedora</project>
    <project-version>f13</project-version>
    <locales>
        <locale map-from="ja-JP">ja</locale>
        <locale map-from="zh-CN">zh-Hans</locale>
    </locales>
</config>


2. Assume zanata.ini has following line:

zanata_1_4_auto.url=http://zanata.server.com/
zanata_1_4_auto.username=admin
zanata_1_4_auto.key=b6d7044e9ee3b2447c28fb7c50d86d98



3. mvn -e zanata:putversion

Actual results:
[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.4-SNAPSHOT:putversion (default-cli) on project null: The parameters 'versionProject', 'versionSlug' for goal org.zanata:zanata-maven-plugin:1.4-SNAPSHOT:putversion are missing or invalid -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.zanata:zanata-maven-plugin:1.4-SNAPSHOT:putversion (default-cli) on project null: The parameters 'versionProject', 'versionSlug' for goal org.zanata:zanata-maven-plugin:1.4-SNAPSHOT:putversion are missing or invalid



Expected results:
Version "f13" should be created for Project AboutFedora.
Comment 1 Sean Flanigan 2011-09-13 03:48:13 EDT
The testing commands putversion, putuser and putproject don't support zanata.xml, and it's not entirely trivial to implement.  You do have the option of putting the parameters into pom.xml.

But if you want this, it should be an enhancement request.

Note You need to log in before you can comment on or make changes to this bug.