You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Webber (JIRA)" <ji...@codehaus.org> on 2005/04/13 09:26:45 UTC
[jira] Commented: (MPECLIPSE-57) Make sourcepath more flexible
[ http://jira.codehaus.org/browse/MPECLIPSE-57?page=comments#action_31953 ]
John Webber commented on MPECLIPSE-57:
--------------------------------------
Is this a conflict with the maven artifact plugin? It takes the type of the artifact and deploys to the relative directory type + "s"; if the type is source, it therefore deploys to srcs. I'm fairly new to maven, so I may be missing some subtlety here - does anyone know a workaround for this, other than maybe a symbolic link in my local repository?
> Make sourcepath more flexible
> -----------------------------
>
> Key: MPECLIPSE-57
> URL: http://jira.codehaus.org/browse/MPECLIPSE-57
> Project: maven-eclipse-plugin
> Type: Improvement
> Versions: 1.9
> Reporter: Henri Tremblay
>
>
> At job we are using the following configuration for source zips.
> MAVEN_REPO/myproject/zips/myproject-src-1.0.zip
> Currently the eclipse plugin only support
> MAVEN_REPO/myproject/src/myproject-1.0.zip
> So I modified it a little to put two variables:
> maven.eclipse.src.path
> maven.eclipse.src.suffix
> By default they keep the plugin behavior. If they are defined like that:
> maven.eclipse.src.path=zips
> maven.eclipse.src.suffix=-src
> They work perfectly in my environment. I though you might be interested in it. So here's the cvs diff from head:
> ? diff.txt
> Index: plugin.jelly
> ===================================================================
> RCS file: /home/cvspublic/maven-plugins/eclipse/plugin.jelly,v
> retrieving revision 1.30
> diff -r1.30 plugin.jelly
> 41c41
> < <j:set var="mappedsrc" value="${groupId}/src/${artifactId}-${version}.${maven.eclipse.src.extension}"/>
> ---
> > <j:set var="mappedsrc" value="${groupId}/${maven.eclipse.src.path}/${artifactId}${maven.eclipse.src.suffix}-${version}.${maven.eclipse.src.extension}"/>
> Index: plugin.properties
> ===================================================================
> RCS file: /home/cvspublic/maven-plugins/eclipse/plugin.properties,v
> retrieving revision 1.9
> diff -r1.9 plugin.properties
> 29a30
> > maven.eclipse.src.path=src
--
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
-
If you want more information on JIRA, or have a bug to report 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