|
10 | 10 | <artifactId>LBJavaExamples</artifactId> |
11 | 11 |
|
12 | 12 | <properties> |
13 | | - <lbjava.mavenplugin.allFilesList> |
14 | | - ${project.basedir}/src/main/lbj/BadgesClassifier.lbj, |
15 | | - ${project.basedir}/src/main/lbj/SentimentClassifier.lbj, |
16 | | - ${project.basedir}/src/main/lbj/SetCover.lbj, |
17 | | - ${project.basedir}/src/main/lbj/EntityRelation.lbj, |
18 | | - ${project.basedir}/src/main/lbj/NewsGroupClassifier.lbj, |
19 | | - ${project.basedir}/src/main/lbj/SpamClassifier.lbj, |
20 | | - ${project.basedir}/src/main/lbj/RegressionClassifier.lbj |
21 | | - </lbjava.mavenplugin.allFilesList> |
| 13 | + <lbjava.mavenplugin.defaultgoal>generate</lbjava.mavenplugin.defaultgoal> |
22 | 14 | <!--The compile list is populated during profile selection--> |
23 | | - <lbjava.mavenplugin.lbjCompileList></lbjava.mavenplugin.lbjCompileList> |
| 15 | + <lbjava.mavenplugin.lbjCompileFile></lbjava.mavenplugin.lbjCompileFile> |
24 | 16 | </properties> |
25 | 17 |
|
26 | 18 | <repositories> |
|
86 | 78 | <phase>generate-sources</phase> |
87 | 79 | <goals> |
88 | 80 | <goal>clean</goal> |
89 | | - <goal>generate</goal> |
| 81 | + <goal>${lbjava.mavenplugin.defaultgoal}</goal> |
90 | 82 | </goals> |
91 | 83 | <configuration> |
92 | | - <lbjavaInputFileList>${lbjava.mavenplugin.allFilesList}</lbjavaInputFileList> |
| 84 | + <lbjavaInputFileList> |
| 85 | + <param>${project.basedir}/src/main/lbj/BadgesClassifier.lbj</param> |
| 86 | + <param>${project.basedir}/src/main/lbj/SentimentClassifier.lbj</param> |
| 87 | + <param>${project.basedir}/src/main/lbj/SetCover.lbj</param> |
| 88 | + <param>${project.basedir}/src/main/lbj/EntityRelation.lbj</param> |
| 89 | + <param>${project.basedir}/src/main/lbj/NewsGroupClassifier.lbj</param> |
| 90 | + <param>${project.basedir}/src/main/lbj/SpamClassifier.lbj</param> |
| 91 | + <param>${project.basedir}/src/main/lbj/RegressionClassifier.lbj</param> |
| 92 | + </lbjavaInputFileList> |
93 | 93 | </configuration> |
94 | 94 | </execution> |
95 | 95 | <execution> |
96 | | - <id>lbjava-compile-examples</id> |
| 96 | + <id>optional-compile-step</id> |
97 | 97 | <phase>generate-sources</phase> |
98 | 98 | <goals> |
| 99 | + <goal>clean</goal> |
99 | 100 | <goal>compile</goal> |
100 | 101 | </goals> |
101 | 102 | <configuration> |
102 | | - <lbjavaInputFileList>${lbjava.mavenplugin.lbjCompileList}</lbjavaInputFileList> |
| 103 | + <lbjavaInputFileList> |
| 104 | + <param>${lbjava.mavenplugin.lbjCompileFile}</param> |
| 105 | + </lbjavaInputFileList> |
103 | 106 | </configuration> |
104 | 107 | </execution> |
105 | 108 | </executions> |
|
109 | 112 |
|
110 | 113 | <profiles> |
111 | 114 | <profile> |
112 | | - <id>generate-train-examples</id> |
| 115 | + <id>train-all-examples</id> |
113 | 116 | <properties> |
114 | | - <lbjava.mavenplugin.lbjCompileList>${lbjava.mavenplugin.allFilesList}</lbjava.mavenplugin.lbjCompileList> |
| 117 | + <lbjava.mavenplugin.defaultgoal>compile</lbjava.mavenplugin.defaultgoal> |
| 118 | + <lbjava.mavenplugin.lbjCompileFile></lbjava.mavenplugin.lbjCompileFile> |
115 | 119 | </properties> |
116 | 120 | </profile> |
117 | 121 | <!--example specific profile definitions follow--> |
118 | 122 | <profile> |
119 | | - <id>badges</id> |
| 123 | + <id>train-badges</id> |
120 | 124 | <properties> |
121 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/BadgesClassifier.lbj</lbjava.mavenplugin.lbjCompileList> |
| 125 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/BadgesClassifier.lbj</lbjava.mavenplugin.lbjCompileFile> |
122 | 126 | </properties> |
123 | 127 | </profile> |
124 | 128 | <profile> |
125 | | - <id>entity</id> |
| 129 | + <id>train-entity</id> |
126 | 130 | <properties> |
127 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/EntityRelation.lbj</lbjava.mavenplugin.lbjCompileList> |
| 131 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/EntityRelation.lbj</lbjava.mavenplugin.lbjCompileFile> |
128 | 132 | </properties> |
129 | 133 | </profile> |
130 | 134 | <profile> |
131 | | - <id>newsgroup</id> |
| 135 | + <id>train-newsgroup</id> |
132 | 136 | <properties> |
133 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/NewsGroupClassifier.lbj</lbjava.mavenplugin.lbjCompileList> |
| 137 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/NewsGroupClassifier.lbj</lbjava.mavenplugin.lbjCompileFile> |
134 | 138 | </properties> |
135 | 139 | </profile> |
136 | 140 | <profile> |
137 | | - <id>sentiment</id> |
| 141 | + <id>train-sentiment</id> |
138 | 142 | <properties> |
139 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/SentimentClassifier.lbj</lbjava.mavenplugin.lbjCompileList> |
| 143 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/SentimentClassifier.lbj</lbjava.mavenplugin.lbjCompileFile> |
140 | 144 | </properties> |
141 | 145 | </profile> |
142 | 146 | <profile> |
143 | | - <id>setcover</id> |
| 147 | + <id>train-setcover</id> |
144 | 148 | <properties> |
145 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/SetCover.lbj</lbjava.mavenplugin.lbjCompileList> |
| 149 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/SetCover.lbj</lbjava.mavenplugin.lbjCompileFile> |
146 | 150 | </properties> |
147 | 151 | </profile> |
148 | 152 | <profile> |
149 | | - <id>spam</id> |
| 153 | + <id>train-spam</id> |
150 | 154 | <properties> |
151 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/SpamClassifier.lbj</lbjava.mavenplugin.lbjCompileList> |
| 155 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/SpamClassifier.lbj</lbjava.mavenplugin.lbjCompileFile> |
152 | 156 | </properties> |
153 | 157 | </profile> |
154 | 158 | <profile> |
155 | | - <id>regression</id> |
| 159 | + <id>train-regression</id> |
156 | 160 | <properties> |
157 | | - <lbjava.mavenplugin.lbjCompileList>${project.basedir}/src/main/lbj/RegressionClassifier.lbj</lbjava.mavenplugin.lbjCompileList> |
| 161 | + <lbjava.mavenplugin.lbjCompileFile>${project.basedir}/src/main/lbj/RegressionClassifier.lbj</lbjava.mavenplugin.lbjCompileFile> |
158 | 162 | </properties> |
159 | 163 | </profile> |
160 | 164 | </profiles> |
|
0 commit comments