[mevenide-dev] [jira] Commented: (MEVENIDE-542) <Badly formed Maven project> when adding profile to pom

"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <4506181.1208521435457.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/MEVENIDE-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131255#action_131255 ] 

Milos Kleint commented on MEVENIDE-542:
---------------------------------------

the correct way of referencing environment variables is to use the ${env.JAVA_1_4_HOME} pattern.
However while that seems to work for build of the project, the loading of the project fails in this case. I suppose that's an issue within maven itself. The env.JAVA_1_4_HOME property cannot only be found in the <system> element. When defined in profile's activation for example, it seems to resolve fine.


> <Badly formed Maven project> when adding profile to pom
> -------------------------------------------------------
>
>                 Key: MEVENIDE-542
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-542
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_2.4, NB_3.0
>         Environment: Windows 2000
>            Reporter: Daniel Mutch
>            Assignee: Milos Kleint
>            Priority: Minor
>             Fix For: NB_3.1
>
>
> Adding the following profile to a pom.xml seems to render the project invalid
> <profiles>
>         <profile>
>             <id>default-tools.jar</id>
>             <activation>
>                 <property>
>                     <name>java.vendor</name>
>                     <value>Sun Microsystems Inc.</value>
>                 </property>
>             </activation>
>             <dependencies>
>                 <dependency>
>                     <groupId>com.sun</groupId>
>                     <artifactId>tools</artifactId>
>                     <version>1.4.2</version>
>                     <scope>system</scope>
>                     <systemPath>${JAVA_1_4_HOME}/lib/tools.jar</systemPath>
>                 </dependency>
>             </dependencies>
>         </profile>
>     </profiles>
> It appears to be the dependencies. Commenting them out solves the problem.

-- 
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 from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.