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

two moditect-generated files and "writing to"-output #174

Open
bmarwell opened this issue Apr 20, 2022 · 0 comments
Open

two moditect-generated files and "writing to"-output #174

bmarwell opened this issue Apr 20, 2022 · 0 comments

Comments

@bmarwell
Copy link
Contributor

Hi,

Problem description

I found out that even if I only define one execution with the add-module-info-goal, two files will be written.
Example for jjwt:

 ~/git/jjwt/jjwt (519_modules*) $ find api/target -name "*module-info.java"
api/target/moditect/generated-sources/io.jsonwebtoken.jjwt.api/module-info.java
api/target/moditect/jjwt.api/module-info.java

I never configured the second one…

Expected output

Just one of the files

Other things to notice

Maven build output:

[INFO] --- moditect-maven-plugin:1.0.0.RC2:add-module-info (add-module-infos) @ jjwt-api ---
writing to /home/bmarwell/git/jjwt/jjwt/api/target/moditect/jjwt.api/module-info.java
[INFO] Created module descriptor at /home/bmarwell/git/jjwt/jjwt/api/target/moditect/generated-sources/io.jsonwebtoken.jjwt.api/module-info.java

Configuration used

This is the configuration (not yet committed or in any branch):

        <profile>
            <id>nonJDK7</id>
            <activation>
                <jdk>[1.8,)</jdk>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.moditect</groupId>
                        <artifactId>moditect-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-module-infos</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>add-module-info</goal>
                                </goals>
                                <configuration>
                                    <module>
                                        <moduleInfo>
                                            <name>io.jsonwebtoken.jjwt.api</name>
                                            <exports>
                                                !io.jsonwebtoken.lang.*;
                                                !io.jsonwebtoken.lang;
                                                io.jsonwebtoken;
                                                io.jsonwebtoken.*;
                                            </exports>
                                        </moduleInfo>
                                    </module>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
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

1 participant