[JBoss JIRA] (FORGE-766) Allow manipulation of maven plugins in a project
by Florian Hirsch (JIRA)
[ https://issues.jboss.org/browse/FORGE-766?page=com.atlassian.jira.plugin.... ]
Florian Hirsch commented on FORGE-766:
--------------------------------------
Isn't this resolved? org.jboss.forge.maven.plugins.MavenPluginBuilder?
> Allow manipulation of maven plugins in a project
> ------------------------------------------------
>
> Key: FORGE-766
> URL: https://issues.jboss.org/browse/FORGE-766
> Project: Forge
> Issue Type: Enhancement
> Components: Builtin Plugins
> Affects Versions: 1.2.0.Final
> Reporter: George Gastaldi
> Labels: starter
>
> The ProjectPlugin could introduce the addition and removal maven plugins, so it will be easy to register a new Maven plugin in the pom.xml project without the need to write a plugin for that.
> The implementation could be like this:
> {code}
> MavenPluginBuilder processorPlugin = MavenPluginBuilder.create()
> .setDependency( ... )
> .addExecution( .. )
> .addPluginDependency( ... );
> project.getFacet(MavenPluginFacet.class).addPlugin(processorPlugin);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months
[JBoss JIRA] (FORGE-781) forge install-plugin command fails with cygwin
by Florian Hirsch (JIRA)
[ https://issues.jboss.org/browse/FORGE-781?page=com.atlassian.jira.plugin.... ]
Florian Hirsch commented on FORGE-781:
--------------------------------------
In Cygwin you have two home-directories. Forge is using the Windows home C:\Users\297646 (SystemProperty "user.home") as ModuleRepository but is passing the linux-like home ($HOME=C:\cygwin\home\297646) to the ModuleLoader in the start-script.
So we could pass the linux-like home to forge (-Duser.home=$HOME). But then you could not use one forge installation from cygwin and cmd. I would suggest to add another repo-root to the ModuleLoader. Could be solved by adding following line in the start-script before line 169:
{code}
MODULE_PATH="$MODULE_PATH:$HOMEPATH/.forge/plugins"
{code}
> forge install-plugin command fails with cygwin
> -----------------------------------------------
>
> Key: FORGE-781
> URL: https://issues.jboss.org/browse/FORGE-781
> Project: Forge
> Issue Type: Bug
> Affects Versions: 1.1.2.Final, 1.1.3.Final, 1.2.0.Final
> Environment: cygwin
> Reporter: Andreas Karalus
>
> @See: https://community.jboss.org/message/797250
> forge install-plugin <plugin> command fails if it is called from cygwin.
> I tried this with different forge versions (1.1.2, 1.1.3, 1.2.0) and different plugins (jboss-as-7, richfaces)
> I think the problem relies in the path resolution for loading modules with cygwin. This path ist not present: C:\cygwin\home\297646\.forge\plugins
> {code}
> roots: D:\Programme\forge-distribution-1.2.0.Final\modules,C:\cygwin\home\297646\.forge\plugins,D:\workspaces\forge-jbossas-quickstart\
> {code}
> The .forge folder is installed under: C:\Users\297646\.forge\plugin (even if forge was called from cygwin first time).
> {code}
> 297646@TB01448C ~/workspaces/forge-jbossas-quickstart
> # forge
> Failed loading: org.richfaces.forge.richfaces-forge-plugin:1.0.5.Final:1.0.0-SNAPSHOT-d292c53d-b7ad-41b8-800e-8c2b4ea1475b
> org.jboss.modules.ModuleNotFoundException: Module org.richfaces.forge.richfaces-forge-plugin:1.0.0-SNAPSHOT-d292c53d-b7ad-41b8-800e-8c2b4ea1475b is not found in local module loader @2fcac6db (roots: D:\Programme\forge-distribution-1.2.0.Final\modules,C:\cygwin\home\297646\.forge\plugins,D:\workspaces\forge-jbossas-quickstart\.)
> at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
> at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)
> at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
> at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
> at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:204)
> at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:254)
> at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
> at java.lang.Thread.run(Thread.java:662)
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
> JBoss Forge, version [ 1.2.0.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
> [jboss-as-quickstarts-parent] forge-jbossas-quickstart $
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 8 months