You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "J-C (JIRA)" <ji...@codehaus.org> on 2005/11/26 18:10:06 UTC

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

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
 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


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

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
     [ 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPECLIPSE-108?page=all ]
     
Brett Porter reopened MPECLIPSE-108:
------------------------------------


> 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:
>                                           <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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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:
>                                           <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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org