[ http://jira.codehaus.org/browse/JIBX-85?page=comments#action_51782 ]
Andreas Brenk commented on JIBX-85:
-----------------------------------
You could use a profile to active the plugin:
<profiles>
<profile>
<id>jibx</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>jibx</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
This would only run the binding compiler if you call Maven like this: mvn
-Djibx=true process-classes
> implement .staleFlag (maven-jibx-plugin)
> ----------------------------------------
>
> Key: JIBX-85
> URL: http://jira.codehaus.org/browse/JIBX-85
> Project: JiBX
> Type: Improvement
> Versions: 1.0-RC1
> Environment: java on linux
> Reporter: Dan Allen
> Priority: Minor
>
> Original Estimate: 1 day
> Remaining: 1 day
>
> XMLBeans implemented a similar feature so that the compiler does not run on
> *every* build, but rather only on clean builds (or perhaps builds where at
> least one file must be recompiled). Right now, even if maven reports that no
> files need to be compiled, the JiBX compiler still executes. Either the
> project object can be consulted (taking a look at the compiler plugin) or a
> .staleFlag can be used that allows the developer to control when the compiler
> runs.
--
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
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs