[jira] Created: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

View: New views
11 Messages — Rating Filter:   Alert me  

[jira] Created: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please allow the XJC mojo to be used for generating test sources.
-----------------------------------------------------------------

                 Key: MJAXB-26
                 URL: http://jira.codehaus.org/browse/MJAXB-26
             Project: Maven 2.x JAXB 2.0 Plugin
          Issue Type: Improvement
    Affects Versions: 1.2
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
Java version: 1.5.0_17
Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"

            Reporter: Christian Schulte
            Priority: Blocker


I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte updated MJAXB-26:
-----------------------------------

    Attachment: MJAXB-26.patch

Patch adding parameters 'addToCompileSourceRoots' and 'addToTestCompileSourceRoots'.


> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=192889#action_192889 ]

Robert Scholte commented on MJAXB-26:
-------------------------------------

I'd prefer adding a new mojo(goal) which is bound to the generate-test-sources. This way the sources are generated during the expected phase and we don't need those flags.



> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MJAXB-26:
--------------------------------

    Attachment: MJAXB-26-rfscholte.patch

See 'Source Repository' under 'Project Information' if you want to apply this patch yourself and install it on your own system.
The patch contains a second mojo to support xjc bound at the generate-test-sources phase. You could compare it with the maven-compiler-plugin

> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Closed: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MJAXB-26.
-------------------------------

    Resolution: Fixed

Applied my patch together with some small adjustments. [rev-10816|http://fisheye.codehaus.org/changelog/mojo/trunk/mojo?cs=10816]

> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193444#action_193444 ]

Christian Schulte commented on MJAXB-26:
----------------------------------------

One note. The generatedResourcesDirectory parameter is added to the project resources in AbstractXjcMojo. The attached patch makes the two mojos add that directory to the corresponding resources. (project.addResource(), project.addTestResource()).


> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schulte updated MJAXB-26:
-----------------------------------

    Attachment: MJAXB-26-2.patch

Patch adding generatedResourcesDirectory to the correct project resources.


> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-2.patch, MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193483#action_193483 ]

Robert Scholte commented on MJAXB-26:
-------------------------------------

Patch applied. Thanks Christian!

> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-2.patch, MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195658#action_195658 ]

Christian Schulte commented on MJAXB-26:
----------------------------------------

Are there any plans to release these changes to the central repository already ?


> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-2.patch, MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195709#action_195709 ]

Robert Scholte commented on MJAXB-26:
-------------------------------------

Yes, right now we're cleaning up the code and adding some minor adjustments before calling the vote. IIRC I've deployed a snapshot already included this fix.

> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-2.patch, MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Commented: (MJAXB-26) Please allow the XJC mojo to be used for generating test sources.

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJAXB-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196611#action_196611 ]

Christian Schulte commented on MJAXB-26:
----------------------------------------

Just tested that snapshot. Works for me.


> Please allow the XJC mojo to be used for generating test sources.
> -----------------------------------------------------------------
>
>                 Key: MJAXB-26
>                 URL: http://jira.codehaus.org/browse/MJAXB-26
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+0000)
> Java version: 1.5.0_17
> Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31.1" arch: "i386" Family: "unix"
>            Reporter: Christian Schulte
>            Priority: Blocker
>         Attachments: MJAXB-26-2.patch, MJAXB-26-rfscholte.patch, MJAXB-26.patch
>
>
> I would like to use the XJC mojo during the generate-test-sources phase. Currently this is not supported, since the plugin will only add the output directory to a projects' compile source roots. The attached patch adds two parameters for allowing to configure the plugin to which source root to add to.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email