[xwiki-devs] Maven XAR Plugin set Hard requirement for Version
Hi devs, I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect. <extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>${commons.version}</version> </extension> Is there any solution or do I have to upgrade the project to Java7? Thanks and regards, Josef
Hi Josef, If you put 5.2 then you’ll get version 5.2 even if you have version 6.0M1 in your local repo. To debug this, you could use “mvn help:effective-pom” and then version used. Thanks -Vincent On 26 Mar 2014 at 10:03:16, Haimerl, Josef ([email protected]) wrote: Hi devs, I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect. <extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>${commons.version}</version> </extension> Is there any solution or do I have to upgrade the project to Java7? Thanks and regards, Josef
Vincent, the XAR plugin shouldn't care about the Java version no? I think Josef has problems with the Enforcer plugin. Hope this helps, Marius On Wed, Mar 26, 2014 at 1:24 PM, [email protected] <[email protected]> wrote:
Hi Josef,
If you put 5.2 then you'll get version 5.2 even if you have version 6.0M1 in your local repo.
To debug this, you could use "mvn help:effective-pom" and then version used.
Thanks -Vincent
On 26 Mar 2014 at 10:03:16, Haimerl, Josef ([email protected]) wrote:
Hi devs,
I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect.
<extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>${commons.version}</version> </extension>
Is there any solution or do I have to upgrade the project to Java7?
Thanks and regards, Josef _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I added the plugin xwiki-commons-tool-xar-plugin and set a specific version. If the plugin is not explicitly set, the newest version is used by the xwiki-commons-tool-xar-handlers extension. --------------------------------------------------------- ... <plugin> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-plugin</artifactId> <version>5.2</version> </plugin> </plugins> <extensions> <extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>5.2</version> </extension> </extensions> ... --------------------------------------------------------- Thanks, Josef Marius Dumitru Florea wrote
Vincent, the XAR plugin shouldn't care about the Java version no? I think Josef has problems with the Enforcer plugin.
Hope this helps, Marius
On Wed, Mar 26, 2014 at 1:24 PM,
vincent@
<
vincent@
> wrote:
Hi Josef,
If you put 5.2 then you'll get version 5.2 even if you have version 6.0M1 in your local repo.
To debug this, you could use "mvn help:effective-pom" and then version used.
Thanks -Vincent
On 26 Mar 2014 at 10:03:16, Haimerl, Josef (
josef.haimerl@
) wrote:
Hi devs,
I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect.
<extension>
<groupId> org.xwiki.commons </groupId>
<artifactId> xwiki-commons-tool-xar-handlers </artifactId>
<version> ${commons.version} </version>
</extension>
Is there any solution or do I have to upgrade the project to Java7?
Thanks and regards, Josef _______________________________________________ devs mailing list
devs@
devs mailing list
devs@
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-XAR-Plugin-set-Hard-requirement-for-... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On 27 Mar 2014 at 08:35:00, jhaimerl ([email protected]) wrote: I added the plugin xwiki-commons-tool-xar-plugin and set a specific version. If the plugin is not explicitly set, the newest version is used by the xwiki-commons-tool-xar-handlers extension. yes, that’s how Maven works :) But in your example in your first mail you had set a version so this couldn’t have happened! Thanks -Vincent --------------------------------------------------------- ... <plugin> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-plugin</artifactId> <version>5.2</version> </plugin> </plugins> <extensions> <extension> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-handlers</artifactId> <version>5.2</version> </extension> </extensions> ... --------------------------------------------------------- Thanks, Josef Marius Dumitru Florea wrote
Vincent, the XAR plugin shouldn't care about the Java version no? I think Josef has problems with the Enforcer plugin. Hope this helps, Marius On Wed, Mar 26, 2014 at 1:24 PM,
vincent@
<
vincent@
> wrote:
Hi Josef, If you put 5.2 then you'll get version 5.2 even if you have version 6.0M1 in your local repo. To debug this, you could use "mvn help:effective-pom" and then version used. Thanks -Vincent On 26 Mar 2014 at 10:03:16, Haimerl, Josef (
josef.haimerl@
) wrote:
Hi devs, I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect. <extension>
<groupId> org.xwiki.commons </groupId>
<artifactId> xwiki-commons-tool-xar-handlers </artifactId>
<version> ${commons.version} </version>
</extension> Is there any solution or do I have to upgrade the project to Java7? Thanks and regards, Josef ____________________
participants (4)
-
Haimerl, Josef -
jhaimerl -
Marius Dumitru Florea -
vincent@massol.net