On 6/8/07, Eugene Kuleshov <[EMAIL PROTECTED]> wrote:

Jason Voegele wrote:
>> Try as I might, I cannot find where the schemas are located for three
jars
>> in the "common" project: tcconfigV1.jar, tcconfigV2.jar, and
>> tctest-xmlbeans-generated.jar.
>>
>> If these aren't generated on the fly, can we at least put them in the
Maven
>> repository? Maven doesn't do well with accessing local jars that were
>> checked into svn (actually, that "system scope" ability may eventually
be
>> removed).
>>
> These JARs are generated on demand using the generate_config_classes
target of
> tcbuild.  They are not, however, generated on the fly as part of the
normal
> build process.  I am not sure why it was done this way originally, but I
know
> the topic of generating them on the fly (as opposed to storing in the
> repository) has come up before.
>
  That is not exactly accurate. Unless there are some hidden parameters,
generate_config_classes only generates tcconfig-xmlbeans-generated.jar
  I think that both tcconfigV1.jar and tcconfigV2.jar are just saved
versions generated from previous incarnations of tc-config schema and
they are used by conversion tool to migrate old configs to new format.
Gary K probably knows more about that.
  I am not sure where tctest-xmlbeans-generated.jar came from.
> I rather think that if we continue to use XMLBeans we should make the
Maven
> build system responsible for generating these on the fly.  Does anyone
else
> have any thoughts?
>
  +1 to that (if we'll continue to use XMLBeans)


Yes, the tcconfig-xmlbeans-generated.jar is currently generated by Maven via
XMLBeans plugin - that's not a problem. The configV1 and V2, however, don't
look to be generated (talking with some guys in IRC, I'm fairly certain they
are not) - in which case they need to be added to the TC Maven repo as Maven
projects. That can be done via:

mvn deploy:deploy-file -DgroupId=org.terracotta -DartifactId=tcconfigV1
-Dpackaging=jar -Dversion=V1 -DgeneratePom=true
-Dfile=tcconfigV1.jar-DrepositoryId=<REPO ID> -Durl=<REPO UPLOAD
PROCESS>

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

However, what about the corresponding tctest-xmlbeans-generated.jar? I don't
see any mirroring "test" schemas, and it's also not generated by the script.
Was is a manual thing?

Thanks;
Eric

 regards,
  Eugene


_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev




--
Eric Redmond
http://www.sonatype.com
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to