I use ${POM_VERSION}_${BUILD_NUMBER} in the Version field of Jenkins UrbanCode plugin: https://developer.ibm.com/urbancode/docs/integrating-jenkins-ibm-urbancode-deploy/, but it gives me something like this ${POM_VERSION}_12. Any idea how to fix this?
${POM_VERSION} is only supported in Maven project, not freestyle project.
Related
I am trying to install the AngularJS plugin for Intellij IDEA (https://plugins.jetbrains.com/plugin/6971?pr=idea), but am facing the following issues:
when using the plugin browser, IDEA does not find it (only result is Ionic Framework when searching AngularJS)
when downloading and installing manually, I get the following message: "Plugin AngularJS depends on unknown plugin JavaScript". A plugin I cannot, obviously, find.
Is this plugin no longer available for Intellij IDEA?
As mentionned by Lawrence, this is not available for Community edition.
My company (Java + AngularJS shop) is evaluating both IDEA and WebStorm. Based on some Googling, it looks like IntelliJ IDEA is a superset of the *Storm editors, assuming you install the proper plugins (source1, source2):
Practically, if we purchased IntelliJ IDEA 13.1 Ultimate, what plugins would we need to get these WebStorm features?
Grunt integration
AngularJS integration
Bower integration
Karma integration
JavaScript auto-complete/navigation
Grunt and Bower support, as well as javaScript completion, etc. are available out of the box. AngularJS, Node.js and Karma plugins have to be installed from the repository (Settings/Plugins, Browse Repositories..., type plugin name in the search box to quickly locate it).
Just search the repo, you can do this from within intellij with a nice gui aswell.
javascript code complete is in vanilla (not an external plugin) version btw, as I would imagine most of the others are. Just try the trial version.
I'm using appengine-sdk 1.9.3.
In devserver, works in Eclipse and Ant normally.
When I deploy (update) to appengine (production environment), I get this error:
event.getResults(): [<pre>Error for /p7/formPanelServlet
java.lang.NoClassDefFoundError: Could not initialize class
com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:42)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:34)
at com.bitvisio.p7.server.FormPanelServlet.<init>(FormPanelServlet.java:27)
At FormPanelServlet.java:27, the code is:
private final GcsService gcsService = GcsServiceFactory
.createGcsService(new RetryParams.Builder()
.initialRetryDelayMillis(10)
.retryMaxAttempts(10)
.totalRetryPeriodMillis(15000)
.build());
I put the lib appengine-gcs-client-0.3.9.jar in war/WEB-INF/lib. I think there is a problem with this lib.
Thanks for help.
Always use tools like Maven or Ivy to resolve dependencies for you. Copying JARs to war/WEB-INF/lib/ directory and editing .classpath file manually will be painful and may not help you always. If you use Eclipse & Google App Engine plugin, use Add Google APIs... as mentioned here - Google Plugin for Eclipse. In my case, adding Cloud Storage API via Google Plugin for Eclipse helped resolve this NoClassDefFoundError.
I had the same problem. I use Ivy to resolve dependencies and always get the latest.integration (with Maven use RELEASE) for revisions.
However I usually ignore transitive libraries. It looks like Google is expanding the API family - at least splitting out discrete functionality.
There are now quite a few transitive dependencies and it seems they released a new version of the GCS client around the same time as 1.9.3.
Getting all dependencies and packaging them in my deployment fixed my issue. I did not have the issue in development which made it more confusing.
You are facing this issue because you are not adding the some of the jar like
google-api-services-storage-v1-rev78-1.22.0.jar download link
joda-time-2.94.jar download link
guava-19.0.jar link to download
you can use the different version of jar according to your appengine-gcs-client jar file.
Note : Add all these jar and build path with the project and problem will get solve.
I am writing an application in Java 6 (I have to stick with this).
I need to write a module for file watcher.
After googling around, I found that Java 7 java.nio package is good.
I want to import this sub package alone to maven [my repository] and create the module.
Can any one guide me how can i achieve this? is there any maven repo for such sub-modules?
All the java.nio packages are part of the rt.jar of the basic JRE. So they are not present in any other Maven package, since they assume you already have it.
If you want to use NIO from Java 7, you could package and deploy all or part of the rt.jar as a Maven module onto your own repo, but I wouldn't recommend it.
You can add this:
compile group: 'com.jtransc', name: 'jtransc-rt', version: '0.3.1'
I have developed few Maven plugins for Maven 2, but I am wondering what are the main changes when I want to develop a plugin (or migrate the existing ones) for Maven 3.0.
The documentation on the Maven site in not up-to-date (what a surprise!) and all related pages still deal with Maven 2.0, like this one:
This guide is intended to assist users
in developing Java plugins for Maven
2.0.
As an example, in Maven 2 plugin, I defined a configuration parameter like this:
/**
* Some parameter.
*
* #parameter
* #required
*/
private String foo;
So now, using the new Maven Plugin API, I expect real Java annotations...
Question: Where can I find documentation / information about the development of Maven 3 plugins?
There is now a work-in-progress implementation of annotations for Maven plugins developments! Read the following links:
https://cwiki.apache.org/confluence/display/MAVEN/Java+5+Annotations+for+Plugins
http://olamy.blogspot.fr/2012/05/java5-annotations-support-for-maven.html
for the record you can have a look http://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html
Just saw this... maybe it's helpful.
http://www.sonatype.com/people/2010/11/whats-in-maven-3-0-for-plugin-authors/
I think the best source is http://www.sonatype.com/books/mvnref-book/reference/index.html
Maybe it is not up to date but it is the best choice in my oppinion.
For developing maven plugins see section 11.
I hope it was helpfull.
Don't know if this is still relevant but this plugin provides annotation support
Maven Anno Mojo
In meantime the official doc seems to be up to date:
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
(they use annotations everywhere)
This is the best I have been able to find regarding plugin development.
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
Often the best way to work with maven is to use the archetype and play around with that.