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

plugin does not work on projects without main() #69

Open
jay-g-mehta opened this issue Jan 5, 2021 · 0 comments
Open

plugin does not work on projects without main() #69

jay-g-mehta opened this issue Jan 5, 2021 · 0 comments

Comments

@jay-g-mehta
Copy link

Hi,
Nice work on your plugin!

This plugin does not work for projects which are libs or frameworks only or in short projects which do not have main().

For example I tried with my project: https://github.com/jay-g-mehta/reflectioninvoker
and have this plugin in my pom.xml as :

           <plugin>
                <groupId>com.iluwatar.urm</groupId>
                <artifactId>urm-maven-plugin</artifactId>
                <version>1.4.8</version>
                <configuration>
                    <!-- if outputDirectory is not set explicitly it will default to your build dir -->
                    <outputDirectory>${project.basedir}/etc</outputDirectory>
                    <packages>
                        <param>reflectioninvoker</param>
                    </packages>
                    <includeMainDirectory>true</includeMainDirectory>
                    <includeTestDirectory>false</includeTestDirectory>
                    <presenter>graphviz</presenter>
                </configuration>
                <executions>
                    <execution>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>map</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

It didn't work.

I created a dummy Main.java as:

package reflectioninvoker;

public class Main {
    public static void main(String args[]) {

    }
}

and this plugin worked.

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

No branches or pull requests

2 participants