[ http://jira.codehaus.org/browse/MPECLIPSE-57?page=all ]
     
fabrizio giustina closed MPECLIPSE-57:
--------------------------------------

      Assign To: fabrizio giustina
     Resolution: Won't Fix
    Fix Version: 1.10

Java source location now defaults to 
MAVEN_REPO${groupId}/java-sources/${artifactId}-${version}-sources.jar 
(standard location where source artifacts are deployed by the m2 source plugin 
in a legacy/m1 repository layout).

The path ${groupId}/src/${artifactId}-${version}.${maven.eclipse.src.extension} 
is still supported for backward compatibility and it will be used only if a 
file already exists at that location. Since now there is well defined standard 
it doesn't make sense to make the artifact name and location configurable.

> 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
>     Assignee: fabrizio giustina
>      Fix For: 1.10

>
>
> 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
-
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]

Reply via email to