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.