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

dependencyManagement ... don't work. #327

Open
crazyweeds opened this issue Nov 17, 2022 · 1 comment
Open

dependencyManagement ... don't work. #327

crazyweeds opened this issue Nov 17, 2022 · 1 comment

Comments

@crazyweeds
Copy link

crazyweeds commented Nov 17, 2022

the result :

</dependencyManagement>            
           <dependency>
                <groupId>com.xx</groupId>
                <artifactId>rhythm-common</artifactId>
                <version>${revision}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

I expect this to be the result.

</dependencyManagement>            
           <dependency>
                <groupId>com.xx</groupId>
                <artifactId>rhythm-common</artifactId>
                <version>1.0</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

plugin config.

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>flatten-maven-plugin</artifactId>
                <version>1.3.0</version>
                <configuration>
                    <flattenMode>resolveCiFriendliesOnly</flattenMode>
                    <updatePomFile>true</updatePomFile>
                    <flattenDependencyMode>all</flattenDependencyMode>
                </configuration>
                <executions>
                    <execution>
                        <id>flatten</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>flatten</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>flatten.clean</id>
                        <phase>clean</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

What would I do?

@rezanirumand
Copy link

you can try with:

                <pomElements>
                    <dependencyManagement>interpolate</dependencyManagement>
                </pomElements>

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

2 participants