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