Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applying a local plugin #60

Open
luiscruz opened this issue Sep 13, 2016 · 2 comments
Open

Applying a local plugin #60

luiscruz opened this issue Sep 13, 2016 · 2 comments

Comments

@luiscruz
Copy link

To deploy a walkmod plugin, docs suggest:

[...] run mvn install and follow these instructions to upload a maven artifact into the official maven repository

I've never done this before and instructions are not simple at all.
Is there anyway of quickly try my plugins in my projects without having to deploy them?

If not, can you provide instructions of how to deploy a plugin?

@rpau
Copy link
Collaborator

rpau commented Mar 27, 2017

Hi,

Sorry to answer too late. To deploy a plugin is the same than deploying a Maven artifact. There are not special instructions.So the link to follow is http://central.sonatype.org/pages/ossrh-guide.html

If you have built a Maven project for this plugin and you run WalkMod from the command line, run
mvn install

In your plugin project, and afterwards, replace your ivy configuration ($WALKMOD_HOME/conf/ivy-settings.xml) by this one:

<ivysettings>
    <property name="ivy.cache.ttl.default" value="1d"/>
        <settings defaultResolver="walkmod-core" />
        <property name="m2-pattern" value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifi$
        <configurations defaultconfmapping="compile->compile">
        </configurations>
        <resolvers>
                <chain name="walkmod-core">
                        <filesystem name="local-maven2" m2compatible="true" >
                           <artifact pattern="${m2-pattern}"/>
                           <ivy pattern="${m2-pattern}"/>
                        </filesystem>
                        <ibiblio name="maven2" m2compatible="true"
                                pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
                        <ibiblio name="jboss" root="http://repository.jboss.com/maven2"
                                m2compatible="true" usepoms="false" />
                        <ibiblio name="springsource-external" m2compatible="true"
                                root="http://repository.springsource.com/maven/bundles/external" />
                        <ibiblio name="springsource-release" m2compatible="true"
                                root="http://repository.springsource.com/maven/bundles/release" />
                        <ibiblio name="springio-release" m2compatible="true"
                                root="http://repo.spring.io/libs-release-remote/" />
                </chain>
        </resolvers>
</ivysettings>

The next WalkMod release will contain it.

@placeybordeaux
Copy link

Looks like your m2-pattern value was truncated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants