You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2005/07/31 20:55:57 UTC

[jira] Updated: (MNG-420) JDK not set when generating an IDEA project

     [ http://jira.codehaus.org/browse/MNG-420?page=all ]

Stephane Nicoll updated MNG-420:
--------------------------------

    Attachment: jdk-name.patch

Added jdkName property which allows to plug a project to a IDEA registered JDK. 

To use it, identify your JDK's name (remove the quotes that JDK sets by default). Add the following to your pom:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-idea-plugin</artifactId>
        <configuration>
           <jdkName>java version 1.4.2_06</jdkName>
        </configuration>
      </plugin>
    </plugins>
  </build>  



> JDK not set when generating an IDEA project
> -------------------------------------------
>
>          Key: MNG-420
>          URL: http://jira.codehaus.org/browse/MNG-420
>      Project: Maven 2
>         Type: Bug
>   Components: maven-plugins
>     Versions: 2.0-alpha-2
>     Reporter: Stephane Nicoll
>     Assignee: Stephane Nicoll
>  Attachments: jdk-name.patch
>
>
> Using the m2 IDEA plugin on any project, the target JDK is never set (which leads to failure regarding JDK classes).
> I assume the following is missing:
> <component name="ProjectRootManager" version="2" assert-keyword="false" jdk-15="false" project-jdk-name="java version &quot;1.4.2_02&quot;" />
> If IDEA needs the name of the JDK, what about putting this info in the plugin's properties?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org