-
1. Re: Maven follow-up: building from repository source
ruel.loehr Feb 21, 2006 6:46 PM (in response to ruel.loehr)I can see two requirements for source in the http repository. First off, is the case of debugging with an IDE. A developer may run across the need to step into the source of a thirdparty component. The src zip or jar which would be attached to the binary would only contain the src files in the packaged format.
e.g. org/jboss/...
This functionality is handled out of the box by use of the eclipse plugin:
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html
Sources can be downloaded when the .classpath and .project files are created. however, you cannot modify the src and then build against it.
This leads to the second item, a way to build against sources of dependencies. I'm limiting the scope here to the http repository. First off, a source jar would be required which contained not only the source, but the build file and this would need to have a reasonable file structure present within. It is possible to retrieve these jars, and expand them into the build src structure.
At this point, as previously stated the user could manually build the dependency, and then rebuild the entire project. The con to this is that an additional step is involved.
To make the dependency's src a standard part of the build, some type of persistence would have to take place in the modules description. This is easier on the user, but we run the risk of somebody checking in these changes.
The only flaw I see here is that you wouldn't be able to commit changes made to dependency src as they are not associated with cvs. -
2. Re: Maven follow-up: building from repository source
starksm64 Feb 21, 2006 7:19 PM (in response to ruel.loehr)"rloehr@jboss.com" wrote:
To make the dependency's src a standard part of the build, some type of persistence would have to take place in the modules description. This is easier on the user, but we run the risk of somebody checking in these changes.
The only flaw I see here is that you wouldn't be able to commit changes made to dependency src as they are not associated with cvs.
I don't understand this statement. What is the persistent aspect in question here?
How I would like to see this implemented is that the source in the repository was broken into the raw source tree for the classes in the artifacts, and a build src tree into which the raw source tree would be expanded to create a buildable project structure.
The exisiting maven notion would remain intact. We would just be expanding this.