jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JiBX
  • JIBX-85

implement .staleFlag (maven-jibx-plugin)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.0-RC1
  • Fix Version/s: None
  • Component/s: maven plugin
  • Labels:
    None
  • Environment:
    java on linux

Description

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andreas Brenk added a comment - 23/Nov/05 7:44 AM

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

Show
Andreas Brenk added a comment - 23/Nov/05 7:44 AM 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
Hide
Permalink
Don Corley added a comment - 30/Apr/10 1:12 PM

Dan... or anyone,
Do you know where I can find some code to do this.
This functionality must be present in hundreds of maven plugins. There must be a place in the maven plugin library where I can find this code (or most of what I need).
I know this functionality is present in XMLBeans, but I would like to use the standard apache.maven code if at all possible.
Thanks,
Don

Show
Don Corley added a comment - 30/Apr/10 1:12 PM Dan... or anyone, Do you know where I can find some code to do this. This functionality must be present in hundreds of maven plugins. There must be a place in the maven plugin library where I can find this code (or most of what I need). I know this functionality is present in XMLBeans, but I would like to use the standard apache.maven code if at all possible. Thanks, Don

People

  • Assignee:
    Don Corley
    Reporter:
    Dan Allen
Vote (0)
Watch (0)

Dates

  • Created:
    23/Nov/05 12:07 AM
    Updated:
    30/Apr/10 1:12 PM

Time Tracking

Estimated:
1d
Original Estimate - 1 day
Remaining:
1d
Remaining Estimate - 1 day
Logged:
Not Specified
Time Spent - Not Specified
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.