-
Notifications
You must be signed in to change notification settings - Fork 41
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
Allow pom-configurable module file names #7
Comments
Actually, I think it's already possible: <plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<moduleName>it.test.E2E_dev</moduleName>
</configuration>
</execution>
</executions>
</plugin> (in a profile) See http://maven.apache.org/guides/mini/guide-default-execution-ids.html With a file <module rename-to='e2e'>
<inherits name='it.test.E2E' />
<set-property name='user.agent' value='safari' />
</module> (you could also use filtering instead of hard-coding the I'll reopen the issue if that doesn't work. Of course, you could also just have a module in your tree with a …or simply not use I don't really want to encourage this as it goes against The Maven Way™ of not varying the produced artifact. It should be possible, because alternatives are impractical at best (ideally, you should have a distinct Maven module specific to your |
You are right, your default-compile configuration works as you expected. What actually puzzles me is this:
Otherwise I agree that having two different profile-dependent artifacts ending up in the same target directory is not the best solution as it requires "mvn clean" when switching configurations. |
The problem is lack of documentation.
|
Ah, I see, thanks for clarifying. |
It would be practical to have module file names configurable in the pom.xml to support this use case:
<set-property name="user.agent" value="safari"/>
.The configuration might look like
<module>${moduleName}</module>
as was the case in the codehaus gwt-maven-plugin.The text was updated successfully, but these errors were encountered: