Open kathrynkodama opened 2 years ago
Was able to reproduce this with a non-umbrella dependency addition to a single module project on Windows - Maven 3.6.3 - Java 1.8.0
Added the below dependencies...
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>javax.batch</groupId>
<artifactId>javax.batch-api</artifactId>
<version>1.0.1</version>
</dependency>
...to resolve compilation errors with HelloBatch.java
...
/*******************************************************************************
* (c) Copyright IBM Corporation 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package io.openliberty.sample.system;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.batch.api.Batchlet;
import static javax.ws.rs.core.MediaType.TEXT_PLAIN;
@Path("/batchlet")
public class HelloBatch implements Batchlet {
private static final Logger log = LoggerFactory.getLogger(HelloBatch.class);
@GET
@Produces(TEXT_PLAIN)
public String process() {
log.info("Called Batchlet.process()");
return "Batchlet.process()";
}
public void stop() {}
}
...and batch-1.0
was not generated when feature generation ran.
Starting dev mode without all of the correct dependencies (no features generated on startup) add the correct dependencies to pom.xml, no additional features are generated when features should be generated. Workaround is "o" and Enter or saving a source file to trigger feature generation again.
To reproduce
Mac OS Java 1.8 Maven 3.8.4