Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Help with m2e connectors

This is what I got : https://buildhive.cloudbees.com/job/coderplus/job/m2e-discovery-catalog/2/console

[ERROR] Failed to execute goal io.takari.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.maven-plugin:0.4.1:generate (catalog-1.4) on project org.eclipse.m2e.discovery.oss: Cannot find installable unit with id=com.coderplus.m2e.remoteresourcesfeature, version=0.0.1.201410041128 -> [Help 1]

On Wed, Oct 8, 2014 at 5:24 PM, CoderPlus Team <admin@xxxxxxxxxxxxx> wrote:
This is what I get 


On Wed, Oct 8, 2014 at 5:09 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
That repository look ok to me. What exact error do you get?

--
Regards,
Igor

On 2014-10-08, 1:32, CoderPlus Team wrote:
Thanks Igor, I tried removing site.xml but I'm not able to build the
catalog. Is there any alternate maven plugin which can help in
generating a new P2 site which is supported by recent eclipse versions?
Currently I'm using the tycho-packaging-plugin -
https://github.com/coderplus/m2e-connector-for-maven-remote-resources-plugin/blob/master/site/pom.xml#L19

Regards,
Aneesh

On Tue, Oct 7, 2014 at 8:26 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:

    repositoryUrl should point at your repository url, i.e.

    http://coderplus.com/m2e-__update-sites/maven-remote-__resources-plugin
    <http://coderplus.com/m2e-update-sites/maven-remote-resources-plugin>

    Also, I don't believe recent eclipse versions support old-style update
    site, so most likely you can just remove site.xml.

    --
    Regards,
    Igor

    On 2014-10-07, 10:15, CoderPlus Team wrote:

        Thank you, I was trying to build the m2e-discovery-catalog
        locally and
        test it before creating a pull request. I wan't able to figure
        out how
        the <catalogItem/> tag should be constructed based on the update
        site.

        On Tue, Oct 7, 2014 at 7:33 PM, Anders Hammar <anders@xxxxxxxxxx
        <mailto:anders@xxxxxxxxxx>
        <mailto:anders@xxxxxxxxxx <mailto:anders@xxxxxxxxxx>>> wrote:

             You should create a pull request for the catalog project [1].
             [1] https://github.com/takari/m2e-__discovery-catalog
        <https://github.com/takari/m2e-discovery-catalog>
             /Anders

             On Tue, Oct 7, 2014 at 3:01 PM, CoderPlus Team
        <admin@xxxxxxxxxxxxx <mailto:admin@xxxxxxxxxxxxx>
             <mailto:admin@xxxxxxxxxxxxx <mailto:admin@xxxxxxxxxxxxx>>>
        wrote:

                 Can anyone help me in correcting this catalog entry

                      <catalogItem>


        <categoryId>org.eclipse.m2e.__discovery.category.lifecycles<__/categoryId>
                        <m2e-versions>1.4,1.5,1.6</__m2e-versions>
                        <description>m2e connector for
                 maven-remote-resources-plugin<__/description>
                        <groupId>lifecycles</groupId>
                        <id>com.coderplus.m2e.__remoteresources</id>
        <!-- any
                 unique id? -->
                        <kind>lifecycles</kind>
                        <license>EPL</license>
                        <name>m2e connector for
        maven-remote-resources-plugin<__/name>
                        <provider>CoderPlus</provider>
                         <p2>


        <repositoryUrl>http://__coderplus.com/m2e-update-__sites/maven-remote-resources-__plugin/
        <http://coderplus.com/m2e-update-sites/maven-remote-resources-plugin/></repositoryUrl>

                 <iuId>com.coderplus.m2e.__remoteresourcesfeature</iuId>
        <!-- is
                 this the feature id -->

          <iuVersion>0.0.1.201410041128<__/iuVersion> <!-- is
                 this the feature version -->
                                <lifecycleMappingIU>

                 <iuId>com.coderplus.m2e.__remoteresourcescore</iuId>
        <!-- is this
                 the plugin id? -->
                                </lifecycleMappingIU>
                        </p2>
                        <overview>
                          <summary>m2e connector for
                 maven-remote-resources-plugin<__/summary>
                        </overview>
                      </catalogItem>


                 Update site's site.xml
        http://coderplus.com/m2e-__update-sites/maven-remote-__resources-plugin/site.xml
        <http://coderplus.com/m2e-update-sites/maven-remote-resources-plugin/site.xml>

                 Thanks,
                 Aneesh

                 On Mon, Oct 6, 2014 at 9:15 PM, Igor Fedorenko
                 <igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>
        <mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>> wrote:

                     I did misread the code. There is logic to skip
        execution when no
                     relevant sources have changed.

                     --
                     Regards,
                     Igor

                     On 2014-10-06, 11:10, CoderPlus Team wrote:

                         Anton,
                         Thank you for the wiki link :-)

                         Igor,
                         Thanks for all the quick responses and the
        feedback :)

                            maven-remote-resources-plugin has 2 goals,
                         1. *bundle*(which bundles the resources and
        creates a
                         manifest xml) and
                         2. *process*(which retrieves a remote resource
        bundle
                         and unpacks it
                         into the configured directory.


                         I had tried to skip the *bundle *goal during
        incremental
                         builds(buildContext.____isIncremental()) if the
        resources
                         haven't changed(by
                         using the plexus Scanner as described in the
        wiki page
        http://wiki.eclipse.org/M2E_____compatible_maven_plugins
        <http://wiki.eclipse.org/M2E___compatible_maven_plugins>

        <http://wiki.eclipse.org/M2E___compatible_maven_plugins
        <http://wiki.eclipse.org/M2E_compatible_maven_plugins>> )
                         I had tried to skip the *process *goal during
                         incremental builds if the
                         pom file hasn't changed.

        <https://github.com/coderplus/____m2e-connector-yuicompressor-____maven-plugin/blob/master/__core/__src/com/coderplus/m2e/____yuicompressorcore/____CoderPlusBuildParticipant.____java#L67
        <https://github.com/coderplus/__m2e-connector-yuicompressor-__maven-plugin/blob/master/core/__src/com/coderplus/m2e/__yuicompressorcore/__CoderPlusBuildParticipant.__java#L67>

        <https://github.com/coderplus/__m2e-connector-yuicompressor-__maven-plugin/blob/master/core/__src/com/coderplus/m2e/__yuicompressorcore/__CoderPlusBuildParticipant.__java#L67
        <https://github.com/coderplus/m2e-connector-yuicompressor-maven-plugin/blob/master/core/src/com/coderplus/m2e/yuicompressorcore/CoderPlusBuildParticipant.java#L67>>>
                         The other yui configurator is also very similar.

                         Will this not work?


                         I will look into the other yuicompressor plugin at
        https://github.com/sonatype/____yuicompressor-maven-plugin/
        <https://github.com/sonatype/__yuicompressor-maven-plugin/>

        <https://github.com/sonatype/__yuicompressor-maven-plugin/
        <https://github.com/sonatype/yuicompressor-maven-plugin/>>
                         :)







                         On Mon, Oct 6, 2014 at 8:03 PM, Igor Fedorenko
                         <igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx> <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>>
                         <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>

                         <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>>>> wrote:

                              Both participant appear to unconditionally
                         execution underlying mojo
                              during incremental build, unless I misread the
                         code. This will
                              absolutely certainly result in endless
        workspace
                         builds. Build
                              participants that execute during
        incremental builds
                         must have logic to
                              "skip" builds when there are no interesting
                         resource changes.

                              I haven't used remote resources plugin,
        but for
                         yuicompress I found it
                              was easier to implement new maven plugin with
                         proper incremental
                              behaviour than to "wrap"
        net.alchim31.maven plugin.
                         I think I still have
                              the code somewhere, if you are interested.

                              --
                              Regards,
                              Igor



                              On 2014-10-06, 7:25, CoderPlus Team wrote:

                                  Hi all,
                                  Can anyone help me in quickly
        reviewing the
                         below m2e connectors

        https://github.com/coderplus/______m2e-connector-for-maven-______remote-resources-plugin/blob/______master/core/src/com/____coderplus/__m2e/____remoteresourcescore/______CoderPlusBuildParticipant.java
        <https://github.com/coderplus/____m2e-connector-for-maven-____remote-resources-plugin/blob/____master/core/src/com/__coderplus/__m2e/__remoteresourcescore/____CoderPlusBuildParticipant.java>

        <https://github.com/coderplus/____m2e-connector-for-maven-____remote-resources-plugin/blob/____master/core/src/com/__coderplus/__m2e/__remoteresourcescore/____CoderPlusBuildParticipant.java
        <https://github.com/coderplus/__m2e-connector-for-maven-__remote-resources-plugin/blob/__master/core/src/com/coderplus/__m2e/remoteresourcescore/__CoderPlusBuildParticipant.java>__>


        <https://github.com/coderplus/____m2e-connector-for-maven-____remote-resources-plugin/blob/____master/core/src/com/__coderplus/__m2e/__remoteresourcescore/____CoderPlusBuildParticipant.java
        <https://github.com/coderplus/__m2e-connector-for-maven-__remote-resources-plugin/blob/__master/core/src/com/coderplus/__m2e/remoteresourcescore/__CoderPlusBuildParticipant.java>

        <https://github.com/coderplus/__m2e-connector-for-maven-__remote-resources-plugin/blob/__master/core/src/com/coderplus/__m2e/remoteresourcescore/__CoderPlusBuildParticipant.java
        <https://github.com/coderplus/m2e-connector-for-maven-remote-resources-plugin/blob/master/core/src/com/coderplus/m2e/remoteresourcescore/CoderPlusBuildParticipant.java>__>__>

        https://github.com/coderplus/______m2e-connector-__yuicompressor-____maven-__plugin/blob/master/__core/____src/com/coderplus/m2e/______yuicompressorcore/______CoderPlusBuildParticipant.java
        <https://github.com/coderplus/____m2e-connector-yuicompressor-____maven-plugin/blob/master/__core/__src/com/coderplus/m2e/____yuicompressorcore/____CoderPlusBuildParticipant.java>

        <https://github.com/coderplus/____m2e-connector-yuicompressor-____maven-plugin/blob/master/__core/__src/com/coderplus/m2e/____yuicompressorcore/____CoderPlusBuildParticipant.java
        <https://github.com/coderplus/__m2e-connector-yuicompressor-__maven-plugin/blob/master/core/__src/com/coderplus/m2e/__yuicompressorcore/__CoderPlusBuildParticipant.java>__>


        <https://github.com/coderplus/____m2e-connector-yuicompressor-____maven-plugin/blob/master/__core/__src/com/coderplus/m2e/____yuicompressorcore/____CoderPlusBuildParticipant.java
        <https://github.com/coderplus/__m2e-connector-yuicompressor-__maven-plugin/blob/master/core/__src/com/coderplus/m2e/__yuicompressorcore/__CoderPlusBuildParticipant.java>

        <https://github.com/coderplus/__m2e-connector-yuicompressor-__maven-plugin/blob/master/core/__src/com/coderplus/m2e/__yuicompressorcore/__CoderPlusBuildParticipant.java
        <https://github.com/coderplus/m2e-connector-yuicompressor-maven-plugin/blob/master/core/src/com/coderplus/m2e/yuicompressorcore/CoderPlusBuildParticipant.java>__>__>

                                  Can you also help in getting this
        added to the
                         m2e discovery
                                  catalog.


                                  Regards,
                                  Aneesh



          _____________________________________________________
                                  m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
                         <mailto:m2e-dev@xxxxxxxxxxx
        <mailto:m2e-dev@xxxxxxxxxxx> <mailto:m2e-dev@xxxxxxxxxxx
        <mailto:m2e-dev@xxxxxxxxxxx>>>
                                  To change your delivery options,
        retrieve your
                         password, or
                                  unsubscribe from this list, visit
        https://dev.eclipse.org/______mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/____mailman/listinfo/m2e-dev>

        <https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>>


        <https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>

        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>>>


          _____________________________________________________
                              m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
                         <mailto:m2e-dev@xxxxxxxxxxx
        <mailto:m2e-dev@xxxxxxxxxxx> <mailto:m2e-dev@xxxxxxxxxxx
        <mailto:m2e-dev@xxxxxxxxxxx>>>
                              To change your delivery options, retrieve your
                         password, or
                              unsubscribe from this list, visit
        https://dev.eclipse.org/______mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/____mailman/listinfo/m2e-dev>


        <https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>>


          <https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>

        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>>>




                         ___________________________________________________
                         m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
                         To change your delivery options, retrieve your
        password,
                         or unsubscribe from this list, visit
        https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>

        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>>

                     ___________________________________________________
                     m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
                     To change your delivery options, retrieve your
        password, or
                     unsubscribe from this list, visit
        https://dev.eclipse.org/____mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/__mailman/listinfo/m2e-dev>
                     <https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>>



                 _________________________________________________
                 m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
                 To change your delivery options, retrieve your password, or
                 unsubscribe from this list, visit
        https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>



             _________________________________________________
             m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        <mailto:m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>>
             To change your delivery options, retrieve your password, or
             unsubscribe from this list, visit
        https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>




        _________________________________________________
        m2e-dev mailing list
        m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
        To change your delivery options, retrieve your password, or
        unsubscribe from this list, visit
        https://dev.eclipse.org/__mailman/listinfo/m2e-dev
        <https://dev.eclipse.org/mailman/listinfo/m2e-dev>

    _________________________________________________
    m2e-dev mailing list
    m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://dev.eclipse.org/__mailman/listinfo/m2e-dev
    <https://dev.eclipse.org/mailman/listinfo/m2e-dev>




_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev

_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top