[ http://jira.codehaus.org/browse/MPECLIPSE-108?page=all ]
     
fabrizio giustina closed MPECLIPSE-108:
---------------------------------------

      Assign To: fabrizio giustina
     Resolution: Duplicate
    Fix Version: 1.10

this is related to the M2 eclipse plugin and it has already been fixed in SVN 
time ago. The patched EclipseClasspathWriter.java is pretty old, be sure to 
checkout the code from trunk when posting patches.

> Scope system in dependencies not supported
> ------------------------------------------
>
>          Key: MPECLIPSE-108
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-108
>      Project: maven-eclipse-plugin
>         Type: Bug
>  Environment: Maven2-maven-eclipse-plugin 2.0-beta-2 + Windows XP 
>     Reporter: J-C
>     Assignee: fabrizio giustina
>      Fix For: 1.10
>  Attachments: EclipseClasspathWriter.java
>
>
> In my pom.xml, I have a dependency:
>                                           <dependency>
>                       <groupId>javax.persistence</groupId>
>                       <artifactId>ejb</artifactId>
>                       <scope>system</scope>
>                       <version>3.0</version>
>                       <systemPath>
>                               
> ${jboss.deploy}/ejb3.deployer/ejb3-persistence.jar
>                       </systemPath>
>               </dependency>
> With scope sytem, in .classpath file, a lib shoud be generated insted of a 
> var.
> To fix that see EclipseClasspathWriter.addDependency in attachment.
> //////////////////////////////////////////////////////////
>                       //path = "M2_REPO/" //$NON-NLS-1$
>                       //+ EclipseUtils.toRelativeAndFixSeparator(
>                       //              localRepositoryFile, fullPath, false);
> //////////MODIF///////////////                        
>                       if 
> (Artifact.SCOPE_SYSTEM.equalsIgnoreCase(artifact.getScope())) {
>                               path = EclipseUtils.toRelativeAndFixSeparator(
>                                               localRepositoryFile, fullPath, 
> false);
>                               kind = "lib"; //$NON-NLS-1$
>                       } else {
>                               path = "M2_REPO/" //$NON-NLS-1$
>                                               + 
> EclipseUtils.toRelativeAndFixSeparator(
>                                                               
> localRepositoryFile, fullPath, false);
>                               kind = "var"; //$NON-NLS-1$
>                       }
> //////////////////////////////////////////////////////////
> //////////    END MODIF///////////////
> .....
> /////////// REMOVED
>                       /////////// kind = "var"; //$NON-NLS-1$

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to