[jira] Closed: (MPECLIPSE-108) Scope system in dependencies not supported

2005-11-26 Thread Brett Porter (JIRA)
 [ http://jira.codehaus.org/browse/MPECLIPSE-108?page=all ]
 
Brett Porter closed MPECLIPSE-108:
--

 Resolution: Duplicate
Fix Version: (was: 1.10)

> 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
>  Attachments: EclipseClasspathWriter.java
>
>
> In my pom.xml, I have a dependency:
>   
>   javax.persistence
>   ejb
>   system
>   3.0
>   
>   
> ${jboss.deploy}/ejb3.deployer/ejb3-persistence.jar
>   
>   
> 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]



[jira] Closed: (MPECLIPSE-108) Scope system in dependencies not supported

2005-11-26 Thread fabrizio giustina (JIRA)
 [ 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:
>   
>   javax.persistence
>   ejb
>   system
>   3.0
>   
>   
> ${jboss.deploy}/ejb3.deployer/ejb3-persistence.jar
>   
>   
> 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]