Ok. I've attached a potential patch for the json-dependency pom that
would download that zip and use it as a source. The ant task portion
could be changed to call the ant task and point to a separate
build.xml as an alternative.
-Stephen
On 11/20/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
Maybe... I'll try to get Maven to call some Ant script to download
and extract the sources prior to compiling. I'll let everyone know
how the experiment goes...
-Stephen
On 11/20/06, James M Snell <[EMAIL PROTECTED]> wrote:
> Hmm... is there a "not quite 'right' but will still work" solution we
> can shoot for in the near term?
>
> - James
>
> Stephen Duncan wrote:
> > The "right" solution, I think, is to get a binary release under the
> > Apache license published to the central Maven repository, and then it
> > could be downloaded for use by Ant or by Maven.
> >
> > -Stephen
> >
> > On 11/18/06, Garrett Rooney <[EMAIL PROTECTED]> wrote:
> >> On 11/18/06, James M Snell <[EMAIL PROTECTED]> wrote:
> >> > You know, I'm actually wondering if it makes sense for us to have the
> >> > json code in our svn. The source we are using can be downloaded from
> >> > http://json.org/java/apache.zip. Like the other dependencies, we
> >> can go
> >> > out and grab that as needed during the build. We can also make it
> >> > optional to build. I also don't think we should be shipping the source
> >> > code for it in our source zip. This will make it just another
> >> > dependency rather than such a special case. It should also make it
> >> > possible for us to proceed without having to worry about if/when we can
> >> > get the license headers added to these three files.
> >> >
> >> > thoughts?
> >>
> >> Well, for the ant build we can certainly download it and build it on
> >> the fly, but for maven builds it'll go out and download whatever's in
> >> the maven repositories, which wouldn't be under the proper license...
> >> Not sure what the "right" solution is to that.
> >>
> >> -garrett
> >>
> >
> >
>
--
Stephen Duncan Jr
www.stephenduncanjr.com
--
Stephen Duncan Jr
www.stephenduncanjr.com
Index: dependencies/json/pom.xml
===================================================================
--- dependencies/json/pom.xml (revision 475049)
+++ dependencies/json/pom.xml (working copy)
@@ -34,4 +34,29 @@
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/abdera/java/trunk/dependencies/json/</developerConnection>
<url>http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/dependencies/json/</url>
</scm>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="${basedir}/target" />
+ <get src="http://json.org/java/apache.zip"
dest="${basedir}/target/apache.zip" usetimestamp="true"/>
+ <unzip src="${basedir}/target/apache.zip"
dest="${basedir}/target/generated-sources/main/java" />
+ <move
file="${basedir}/target/generated-sources/main/java/apache"
tofile="${basedir}/target/generated-sources/main/java/json" />
+ </tasks>
+
<sourceRoot>${project.build.directory}/generated-sources/main/java</sourceRoot>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>