You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "David C. Hicks" <dh...@i-hicks.org> on 2009/02/10 21:30:29 UTC
Eclipse Plugin - No .classpath file.
How does the maven-eclipse-pluging know to create .classpath for Eclipse?
I've created a custom packaging type for my integration test module to
prevent undesirable activity. So, for now, only the "compile" and
"resources" phases are actually doing anything. Now, when I run
eclipse:eclipse on the project, I get a .project file and .settings
directory, but there is no .classpath. I'd really like for my
integration tests to be in the .classpath file since they are
Java-based, but I don't know what triggers the maven-eclipse-plugin to
generate that file - unless it's the packaging type, in which case I'm
basically hosed. If it's just a matter of having another specific
lifecycle event added to my packaging type, that's an easy fix.
Thanks,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Antwort: Eclipse Plugin - No .classpath file.
Posted by Cl...@raibau.at.
The trigger is
pde || ( Constants.LANGUAGE_JAVA.equals( artifactHandler.getLanguage() )
&& !Constants.PROJECT_PACKAGING_EAR.equals( packaging ) );
Therefore, if you have a custom packaging type, you need to add the
following to META-INF/plexus/components.xml
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>custom-packaging-type</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>custom-packaging-type</type>
<extension>jar</extension>
<language>java</language>
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>
______________________________________
Diese E-Mail kann vertrauliche und geschuetzte Informationen enthalten. Wenn diese E-Mail nicht für Sie bestimmt ist, bitten wir Sie, uns unverzueglich zu informieren und sie zu loeschen.
This e-mail message may contain information, which is confidential and protected. If you are not the intended recipient of this message, we ask you to inform us immediately and delete the message afterwards.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org