Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

Hibernate JPA 2 Metamodel generation

$
0
0

I am trying to get IDEA 13.1.4 to generate the metamodels for my model classes.  I followed the instruction in help but the "Process Annotations" item never shows when I right click on a model class nor when I look in the Build menu.

 

I have all Java config which works just fine otherwise.  My settings in the Compiler/Annotation Processors are as follows:

  1. "Obtain processors from project classpath" is selected.
  2. Processor FQ name set to: org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor
  3. Annotations Processor options: fullyAnnotationConfigured = true

 

I am not using the Default profile.  I created my own and associated my module with the new profile.  I have also tried invalidating my caches.  I have also tried removing the fully qualified name of the processor and just let IntelliJ find it in the classpath, did not work.

 

 

When I make the project I get the following message:

  1. Warning: java: Hibernate JPA 2 Static-Metamodel Generator 4.3.6.Final

 

That's it.  I get no other message I can find.

 

Any help is apperciated.


Download Maven Snapshot even if it is not found exactly

$
0
0

Hi

 

I am working in an envrionment where I consume different jars from other teams. Each teams works automnomsly and publishes new Snapshots of jars continously as soon something ha been checked in to there trunk. Since we configured our Maven Repository in a way that only ONE snapshot is stored I have problems to download the sources. This is because the exact version e.g. XXX-SNAPSHOT201408221000.jar is not available anymore. Instead there exists a XXX-SNAPSHOT201408221012.jar. Mostly the changes other teams made are small and for me it would be okay, to download sources of the newer Snapshot. The risk to download sources which are not in sync with the used binary is for acceptable.

 

How to I achieve this with Intelli?

Looking for step-by-step guide to build and deploy Grails war to Tomcat

$
0
0

I've spent a bit of time, probably more than should be necessary, looking for a step-by-step guide to build and deploy a Grails war to a local instance of Tomcat using IntelliJ IDEA 13.

I've seen links talking about creating a run configuration for Tomcat, creating an artifact for my Grails app, plus other bits of pieces of information but nothing that puts it all together.  And I've seen nothing in the IntelliJ IDEA online documentation that describes how to do this.

 

Ideally, what I want is a single run / debug configuration that does this:

  1. Builds the war using grails war (optionally allows me to set the desired environment: dev test prod)
  2. Deploys the war to my local Tomcat instance
  3. Starts Tomcat (optionally in debug mode so that I can remote attach and debug my Grails app)
  4. Starts my browser of choice and points it at a URL inside my Grails app that I can configure

 

Can someone point me to a link that lays this out relatively simply?

modules turned into projects

$
0
0

I don't know what I did, but my two modules in a single project are

now behaving like two separate projects. What is the easiest way to

get them back the way they were? The directory structure still looks

ok.

 

--

Roedy Green Canadian Mind Products http://mindprod.com

Errors using inadequate data are much less than those using no data at all.

~ Charles Babbage (born: 1791-12-26 died: 1871-10-18 at age: 79)

 

Flex and java web combined module from eclipse to idea

$
0
0

Hi all:

 

I have an old project implemented with flex and java web in eclipse.

Now,I want to import it to idea. But,

 

if I tried to import Eclipse project (module from external model->eclipse) Idea understands only java/web related stuff

if I tried to import FlashBulder (module from external model -> Flashbuilder) idea picks only flash related stuff.

 

It's the same question with link http://devnet.jetbrains.com/thread/437473. The answer suggested using two modules. But my modules share the same root.

why cant I add two facets(flex and java web) to the whole project?

 

It's essential for me  to debug the two parts together. Can anybody help?

 

p.s I'm working with idea 13 ultimate.

Idea 13 - Problems with svn command line integration

$
0
0

Hi,

 

I am using experiencing some problems with the SVN integration. Even as the credentials for the repository are saved in the svn config dir, quite often a dialog appears asking for credentials when updating the project or any other actions related to svn. This procedure needs to be repeated several times, even ticking the 'save credentials' checkbox seems to have no effect.

Some possibly related lines from idea.log:

 

2014-08-25 13:33:31,876 [18676725]   INFO - vn.commandLine.CommandExecutor - Destroying process by command: svn.exe --config-dir C:\Users\***\AppData\Roaming\Subversion info --depth empty --revision HEAD https://***/trunk --xml
2014-08-25 13:33:31,883 [18676732]   INFO - svn.commandLine.CommandRuntime - Null exit code returned, but not errors detected svn.exe --config-dir C:\Users\***\AppData\Roaming\Subversion info --depth empty --revision HEAD https://***/trunk --xml

 

My environment:

Windows 7

Intellij Idea 13.1.4 (build #IU-135.1230)

SlikSVN: version 1.8.10-SlikSvn-1.8.10-X64 (SlikSvn/1.8.10) X64

 

Did anyone experience something similar?

 

Regards

Michael

AS3 library linkage setting ignored

$
0
0

I seem to have a weird problem trying to achieve inclusive linkage of some AS3 code. The problem is as follows: I have a big actionscript project in IntelliJ with lots of external library dependecies. It started taking to long to compile so I decided to create so-called extension library which simply an aggregation of some rarely changing external libraries compiled together in a single swc. All libraries must be added with 'include' linkage but it looks like IntelliJ ignores this setting. It adds to swc only referenced classes as it was in 'merged' linkage mode. A little bit more info can be foundhereon StackOverflow where I made same question.

 

Please help.

[Flex] Whilst debugging, sometimes editor window will duplicate

$
0
0

Hey,

 

Great effort on bringing 13.1 live!

There seem to be one issue though for me. Whilst I'm debugging my Flex project and stepping through lines of code, very often I notice that editor window duplicates time after time, making the whole thing unusable.

Basically, another editor window pops up with the same file opened as I'm currently debugging.

 

Any suggestions?

Thanks.


No view resolvers found

$
0
0

How do you correctly set up your servlet.xml so that the view resolver is detected by Intellij?

 

in web.xml i have a DispatcherServlet configured named 'spring' that is configured with the config file spring-servlet.xml

 

in spring-servlet.xml there is the following

 

    <context:component-scan base-package="my package"/>

    <mvc:annotation-driven />

 

    <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">

        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>

        <property name="prefix" value="/WEB-INF/htm/"/>

        <property name="suffix" value=".jsp"/>

    </bean>

 

 

Intellij detects that my controller is configured by that component scan, but does not see the view resolver so all of my ' new ModelAndView("foo")' show the message 'No view resolvers found. 

 

Are there any special requirements to configuring the view resolver to cause it to be detected by Intellij?

Xcode beta 6, air and iOS emulator: image not found error

$
0
0

I'm on a Maverick, I'm trying to run and adobe air application via IOS emulator.

I'm getting the following error: Screen Shot 2014-08-25 at 20.49.30.png

 

Seems like it's trying to uninstall an IPA... and there is no IPA.

Before of this, with the same module/configuration I compiled and run my AIR app on an IPAD

 

Xcode 6 beta, Apache Flex/AIR 4

 

Any clues?

 

Thanlks

JavaFX packaging fails

$
0
0

I have a simple JavaFX project that I would like to package as a Windows image, but when I try to build it I get 3 errors:

 

Error:Java FX Packager:

BUILD FAILED

C:\Users\Dave\.IntelliJIdea13\system\compile-server\_temp_\build3433150011334981496.xml:11:


Total time: 0 seconds

Error:Java FX Packager: Buildfile: C:\Users\Dave\.IntelliJIdea13\system\compile-server\_temp_\build3433150011334981496.xml

build artifact:
Error:Java FX Packager: fx:deploy task has failed.
I end up with an executable jar that runs correctly, but no bundled jre and exe.  If I build the project on Linux I can create a Linux image without any problems.
I'm using IntelliJ IDEA 13.1.4 build # IU-135.1230 with an evaluation license on Windows 8.1.

Edit pom.xml template

$
0
0

HI, I use so many lugins in pom and pmost of them are very often used like surfire plugin or war plugin etc.  I want to make those as default in my generated pom. I tried editing default pom template in ide settings, but when project is generated, IDEA rewritten my pom, i dont know what magic they do internally. I just want to have a way where my commonly used plugin go default. And java 7 properties go default.

Please suggest a way.

 

What i tried doing in default template in IDE-SETTINGS  is :

 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

 

    #if (${HAS_PARENT})

    <parent>

        <groupId>${PARENT_GROUP_ID}</groupId>

        <artifactId>${PARENT_ARTIFACT_ID}</artifactId>

        <version>${PARENT_VERSION}</version>

#if (${HAS_RELATIVE_PATH})

        <relativePath>${PARENT_RELATIVE_PATH}</relativePath>

#end

    </parent>

 

#end

 

    <packaging>war</packaging>

<groupId>${GROUP_ID}</groupId>

    <artifactId>${ARTIFACT_ID}</artifactId>

    <version>${VERSION}</version>

 

    ${END}

    <!--<name></name>-->

 

    <properties>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    </properties>

 

    <dependencies>

        <!-- JAVA EE 7 API -->

        <dependency>

            <groupId>javax</groupId>

            <artifactId>javaee-api</artifactId>

            <version>7.0</version>

            <scope>provided</scope>

        </dependency>

    </dependencies>

 

 

    <build>

        <finalName>${project.name}</finalName>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-compiler-plugin</artifactId>

                <version>3.0</version>

                <configuration>

                    <source>1.7</source>

                    <target>1.7</target>

                </configuration>

            </plugin>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-war-plugin</artifactId>

                <version>2.3</version>

                <configuration>

                    <failOnMissingWebXml>false</failOnMissingWebXml>

                </configuration>

            </plugin>

        </plugins>

    </build>

</project>

font used in presentations/screenshots

Scala plugin for IDEA 13

$
0
0

I downloaded and installed the latest stable release of scala, scala 2.10.3, and also installed the Scala plugin for IDEA 13, however, it says it can not find /doc/scala-devel-docs/api. Anyone can help me solve this.

Mocha run configuration with file filter

$
0
0

Hi

Using IDEA  13.0.3

I am running tests from IDEA with a mocha run configuration/

I have dircetory with tests , and I need a way to filter several of the tests in the directory. I dont want to run all of them

I couldnt find a way to filter specific js test . it only allows me to select a Test Directory

 

Can someone please help

Thanks.


Web archives and Gradle "providedCompile"

$
0
0

I have a Gradle project that creates a WAR file that deploys under Wildfly.  Some of the dependencies are marked as "providedCompile" meaning the application server has them and they do not need to be packaged into the WAR file.

 

    providedCompile 'org.jboss.spec:jboss-javaee-6.0:3.0.1.Final'

    providedCompile 'org.jboss.resteasy:resteasy-jaxrs:2.3.1.GA'

    providedCompile 'org.codehaus.jackson:jackson-jaxrs:1.9.2'

 

When I build through Gradle outside of IntelliJ, the WAR file is created correctly and does not include the provided compile libraries.  It deploys on Wildfly correctly.

 

In IntelliJ, I create a project by opening the build.gradle.  The "external libraries" contain the provided compile libraries, which is correct so that I have access to them when writing code.  I then create an artifact for deployment.  That artifact should NOT contain the provided libraries, but by default it does.  The application will not deploy correctly because the duplicated libraries.

 

I can manually remove the extra libraries, but every time I refresh the Gradle project they come back.

 

I found an old closed that looks like the same problem:

 

    http://youtrack.jetbrains.com/issue/IDEA-116974

 

However it is marked as fixed in 13.0.X and I am running 13.1.4. 

 

Am I doing something wrong or is this still a problem?  Does anyone know a workaround?

 

Thanks.

Re: font used in presentations/screenshots

$
0
0

On Tue, 26 Aug 2014 15:54:34 MSK, clamparu clanul

<no_reply@jetbrains.com> wrote, quoted or indirectly quoted someone

who said :

 

>Hi, i would like to know what font do they use when making presentation

movies like this one:   http://www.jetbrains.com/idea/

>or in screenshot like this one.. http://hadihariri.com/images/idea-guide-20.png

>

>---

>Original message URL: http://devnet.jetbrains.net/message/5522265#5522265

 

I asked What the Font to identify the font:

http://www.myfonts.com/WhatTheFont

 

 

The hadhariri font it said might be:

 

Variable Bold

from MADType Variable

 

Konsens Regular

from Hubert Jocham Type Konsens

 

Bureau Grot Book

from Font Bureau Bureau Grot

 

Supria Sans Cond Light

from HVD Fonts Supria Sans Condensed

 

The first sample was not big enough and had not enough distinctive

chars like G Q M 4 to identify a font with Indentifont.

 

You might look at http://mindprod.com/jgloss/programmerfonts.html

for fonts suitable for listings.

--

Roedy Green Canadian Mind Products http://mindprod.com

Errors using inadequate data are much less than those using no data at all.

~ Charles Babbage (born: 1791-12-26 died: 1871-10-18 at age: 79)

 

git unstash missing files

$
0
0

Using IntelliJ 13.1.4, I did a git stash on my project and it saved 4 files. 2 were newly created (green font). When I view the stash, I see all 4, but when I apply the stash, the 2 new files don't get recreated, only the two updated files. I can still see the contents if I view source in the stash popup - they are not gone! But they don't get created and I can't tell why. I'm doing this entirely through IntelliJ, so no outside interference with other git clients.

 

Am I doing something wrong, or could this be a bug? More importantly, is there an easy way to get those files back? I noticed I couldn't even save the files in the source window. I could copy/paste the contents (very kludgy), but I want to avoid this mess in the future.

 

Thank you,

Philip

multi-module gradle support?

$
0
0

Idea 13.1 ubuntu 14.04

 

Trying to add a second gradle module to a project which already has a working gradle module.  When I try to import (via Project Structure -> Module -> +), the import throws up a bunch of progress dialogs and appears to be "working", but in the end, the import fails silently:  no module added to the modules list or showing up in the project navigator.  I also tried creating the second module as a gradle project and then importing the .iml, but that automatically unlinked the gradle integration (for the newly added module).

 

Not exactly, but similar to this:  http://devnet.jetbrains.com/message/5488654#5488654

 

That posts suggested that multi-module support was close at that time, and would be here for 13.x.  Is this a known issue or a bug (or am I doing something compeletely wrong -- I can certainly add a lot more detail about what I'm doing)?

 

Thinking it might just not be ready yet, I checked the EAP the release notes, but only found Support opening Gradle projects in headless mode, which doesn't look like the same thing.

Spring dmserver does not deploy artifacts at startup

$
0
0

Anybody using dmserver here?

 

I configured artifacts but can not get it auto deploy. The strange thing is that the deployment status is always "OK", if I press "Refresh deployment status" button, the state is always "NOT DEPLOYED", even if they were deploed.

Btw the manual deployment is working (pressing "Deploy All" button).

 

Thanks

Ivaylo

Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>