[ http://jira.codehaus.org/browse/MNG-4297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216034#action_216034 ]
Bruno F commented on MNG-4297: ------------------------------ Please don't disallow properties in the classifier since it is the only smart way (please tell me if you know any other possibility) to handle native code, JNI stuff, etc. Disallow anywhere but not in the classifier. This enables to group a jar and its associated JNI libraries into identifiable artifacts: mygroupid:jniartifact:1.3:zip:bin-x86-linux2.6-gcc3.3 mygroupid:jniartifact:1.3:zip:bin-x86-windows-vc8 This also enables to declare native dependencies for the JNI code: <dependency> <groupId>boost</groupId> <artifactId>boost_regex</artifactId> <version>${boost.version}</version> <classifier>bin-${target.platform}</classifier> <type>zip</type> </dependency> Where target platform is defined by profile and shall be set to x86-linux2.6-gcc3.3 on linux or bin-x86-windows-vc8 on windows. > Disallow use of properties in the project coordinates > ----------------------------------------------------- > > Key: MNG-4297 > URL: http://jira.codehaus.org/browse/MNG-4297 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: POM > Reporter: Brian Fox > > Maven currently allows properties in the groupId, artifactId and version of a > pom. This causes artifacts to be produced that require full inheritance and > interpolation before they can be uniquely identified. It also poses potential > problems if the properties are defined in settings, env or profiles where the > consumer can't exactly identify the artifact after the fact. > Allowing properties in the coordinates generally allows bad practices. After > all, how can you not know what the identify of the project you're working on > actually is? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira