Adding JS and CSS webresource to use in velocity template doesn't work in JIRA 6.4 - jira-plugin

Our JIRA project tab panel plugin was working fine with with external web resources (JS & CSS) until 6.3.9, after migrating to 6.4 they're no longer included in the velocity templates. How can we solve this problem? Has there been a change in the way web resources are included in velocity templates? Please help.
<web-resource key="project-tab-resources" name="project-tab Web Resources">
<resource type="download" name="project-tab.css" location="/css/project-tab.css"/>
<resource type="download" name="project-tab.js" location="/js/project-tab.js"/>
project-tab

I have found the solution:
We are running a local instance of Jira via atlas-debug to be able to reload frontend changes without recompiling.
The right way to do the upgrade is:
change the jira-version in pom.xml.
Before running atlas-debug run mvn clean
run atlas-debug as usual
Be careful with mvn clean because if you are using an in memory database it will be destroyed

Related

intellij webapp hot deploy changes to html files

I have added a tomcat server and in my maven ui project I do a maven install. Then I start the tomcat server and it deploys my ui project as a exploded war. Now if I make changes to a js, css or html file should be be seen in the target web app as they do not need to be compiled. Right now I don't see the changes. Is there a setting for it.
Make sure that the your artifact is build when making the project (File > Project Structure > Artifacts > YOUR_EXPLODED_ARTIFACT > Build on make).
Furthermore, use exploded artifact which name ends with .war or .ear.
See more here:
IntelliJ hot swapping classes, but not JSF pages
Looks like Tomcat uses the target folder of maven as the code for webapp. Hence doing an install, moves all code to the target folder and if the file is js, html, css than it gets picked up, when you revist the page.

IntelliJ & Wildfly - hot deploy webapp

I am using IntelliJ (14.0.3) and Wildfly (8).
When I recompile my Java classes, hot swapping is easy and everything works just fine. However, my HTML, JS and CSS files will not hot swap for me. I am sure it is just a configuration issue and was hoping for some help.
My HTML data is in:
<root>/<war_module>/src/main/webapp
My run/debug is setup for:
Before launch: Make, Build Artifacts
Make
Build 'mymodule:war' artifact
I had the exact same problem, this is how it worked for me:
After configuring your JBoss server (Wildfly), setup an artifact of type exploded, in my case I selected Web Application: Exploded, and then in the Output directory add .war to the end of the name.
In case you need a .ear, simply select JavaEE Application: exploded instead, but anyways always remember to add manually the extension.
After setting this artifact to work with your Application Server, in the edit configurations of your Wildfly server select the option Update resources in the list of options in the section On frame deactivation.
So every time you modify and save static content, it will update these changes as soon as you focus something else outside the IDE, like the browser.

Using Netbeans to configure context-root for JBoss

I have a Spring application that is being deployed to JBoss 4.2. I can manually edit the generated WAR file and alter the jboss-web.xml file to set the context-root value and that works perfectly well. I would like to be able to do the samething via netbeans (6.9.1), but I have been unable to locate where to make the adjustment. I've tried tweaking the project's properties and setting the Context Path value. When I Run the application that value is reset to the Project's name. I've located the jboss-web.xml file in the project and changed it there, also reset upon run. So it appears that Netbeans is deciding that the value need to be set but I can't locate where. If it's of any use, the project also uses Maven2, but all the controls I can find for impacting context-root are geared towards EAR files instead of WAR.
Has anyone been able to do this or am I just in a world of making the change post build?
I had a similar problem once where netbeans was sometimes removing the context-root element from the glassfish-web.xml configuration. I have not been able to track it down exactly but you could try to remove the file nb-configuration.xml in the project root folder and see if that helps.

How to override/prevent Maven Install Plugin behavior

this is an odd request but here is the scenario. I am writing custom maven plugins that basically manipulate build versions then will install or deploy the modified jar. The plugin is called both via command line and a build profile.
The plugins all have similar behavior, so the solution will work for all. Currently I am manipulating the project version in memory, via MavenProject.setVersion(newVersion);. This works and builds a local jar with the new version, but once the MavenInstaller executes the newVersion jar is installed in my local repo with the old version information and location. Is there a way I can prevent or override this behavior? The plugin is not using the Maven Installer or Deployer directly, and is just part of the build phase.
The file is executed as: mvn install -Pincrement and the increment profile is associated with the process-sources phase.
EDIT 1: I am looking into overriding the install/deploy lifecycle with a plugin that will basically handle what I plan on doing, while also still handling the normal behavior of install/deploy.
http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-override-default-lifecycle.html
EDIT 2: Following Edit 1 I was able to override a default lifecycle, in this case install and deploy with a custom solution. I do not like that it requires a custom package, so packaging tag no longer refers to the true packaging type and requires me to set an additional tag so that I can lookup the type.

How do I get artifacts from one Maven module included in the resources of another in my build?

I have Maven modules that produce a Flex application as an SWF file. I want to include that file in a web application that is made with another Maven module from the same build. I'm wondering how and at which lifecycle phase I get Maven to grab the artifact from the other module and put it insode the appropriate folder of the webapp module. Would I use a separate assembly module?
The web app is running on a Jetty server in an OSGi environment (using Pax), the server side of the web app uses Struts. The final artifact as I see it would be a WAR file including my Action etc classes, JSP templates, static contents such as CSS or JS, and the SWF movies. I might be better off with these split over some other setup, but right now, I wouldn't know which.
I'm wondering how and at which lifecycle phase I get Maven to grab the artifact from the other module and put it insode the appropriate folder of the webapp module.
What about using dependency:unpack dependency:copy during prepare-package?