I used a workaround similar to yours for now. At the beginning of the build I disable workspace resolution and if it was enabled, create temporary artifacts that point to the swc files in the workspace. Then at the end of the build I restore workspace resolution and set the project artifacts back to what they were.
If I have some extra time I might try my hand at writing a patch. I'm not sure I understand the design of m2e well enough at this point to write something that integrates well though. Thanks for the help! On Fri, Jun 24, 2011 at 4:08 AM, Fred Bricon <[email protected]> wrote: > I had the same issue in the ManifestConfigurator. Project artifacts don't > appear in the generated classpath, because the archiver checks if the file > exists. > I worked around it by creating temporary files for projects. See > > https://github.com/sonatype/m2eclipse-wtp/blob/master/org.maven.ide.eclipse.wtp/src/org/maven/ide/eclipse/wtp/manifest/AbstractManifestConfigurator.java#L295 > and > > https://github.com/sonatype/m2eclipse-wtp/blob/master/org.maven.ide.eclipse.wtp/src/org/maven/ide/eclipse/wtp/manifest/AbstractManifestConfigurator.java#L436 > > It's clearly a bad hack, so fixing it upstream is a really good idea :-) > > > > 2011/6/24 Igor Fedorenko <[email protected]> > >> No, this is not possible in 1.0 but looks like a reasonably enhancement >> request. Are you interested to provide a patch? >> >> -- >> Regards, >> Igor >> >> >> On 11-06-24 2:13 AM, Spencer Van Hoose wrote: >> >>> Is there currently a way to customize the path that m2e returns for >>> workspace artifacts when workspace resolution is enabled? I'm running >>> into problems with flexmojos because m2e is returning >>> projectName/target/classes for the artifact path of projects in the >>> workspace instead of the path to the swc. >>> >>> My initial idea was to write a configurator to change the path of >>> workspace artifacts before running flexmojos:compile-swc but I can't see >>> any way to accomplish this. It looks like m2e is setting the file on >>> each artifact to match the project's output location. I tried changing >>> each project's output location in the configurator but m2e is still >>> sending the wrong path to flexmojos and I can't find any way to affect >>> this. Is it possible to provide my own class as the "workspace reader" >>> so I can resolve workspace artifacts to the correct path? Does anyone >>> have any other ideas? >>> >>> Thanks, >>> Spencer >>> >> ______________________________**_________________ >> m2e-users mailing list >> [email protected] >> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users> >> > > > > -- > "Have you tried turning it off and on again" - The IT Crowd > > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users > >
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
