Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few maven generation regressions #682

Conversation

cescoffier
Copy link
Member

@cescoffier cescoffier commented Jan 30, 2019

Fix issues #670, #671, #672, #673, #675 and #706

stalep and others added 18 commits January 28, 2019 04:52
* Supports only read-only, read-write and nonstrict-read-write access
for entity, collection and natural id caches.
* Supports query caching.
* Supports extended cache statistics.
* Contains functional and stress tests.
* Supports configurable maximum region size (in terms of number of
entries), and maximum idle time for cache eviction.
* #670 - improve the decision about the project location
* #671 - when the user does not specify a package, a package name is generated either from the passed groupId or using the default value
* #672 - use the Prompter to get user values, this is disabled in batch mode
* #673 - if the user modifies an existing project, the user is not allowed to pass GAV. Now this case it detected and the build is failed
* #675 - if the user modifies an existing project the GAV are retrieved from the existing project.
@cescoffier cescoffier added this to the 0.8.0 milestone Jan 30, 2019
@cescoffier cescoffier added the kind/bug Something isn't working label Jan 30, 2019
cescoffier and others added 2 commits January 30, 2019 12:23
* use {project-name} instead of Protean
* rephrase the part on junit 5 and surefire
- log a warning message when an extension template attempts to use a
removed bean
- resolves #658
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added one question inline.

Let's wait for CI to check that.

@Component
private Prompter prompter;

@Override
public void execute() throws MojoExecutionException {
File projectRoot = new File(".");
File pom = new File(projectRoot, "pom.xml");

if (pom.isFile()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we decide to remove the ability to do that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened an issue about it. Waiting for the discussion to happen.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I believe we can schedule the removal for the next release (0.9.0).

galderz and others added 4 commits January 30, 2019 12:40
* Fixed nonstrict test case so that it can be executed manually.
* Changed default log4j2 logging levels to error.
The file should eventually be removed.
Gracefully stop rather than hang when there are no steps
@cescoffier cescoffier requested a review from gsmet January 30, 2019 15:57
@cescoffier
Copy link
Member Author

@gsmet can you have a look, CI passed.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some more comments about the latest commits.

-DprojectGroupId=my-groupId \
-DprojectArtifactId=my-artifactId \
-DprojectVersion=my-version \
-DclassName="org.my.group.MyResource"
----

NOTE: If you just launch `mvn org.jboss.shamrock:shamrock-maven-plugin:{shamrock-version}:create` the Maven plugin ask
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ask/asks/

gsmet and others added 19 commits February 1, 2019 16:25
Create a JAX-RS - JSON extension relying on JSON-B and JSON-P
* interactive mode
* made groupId optional (and changed the default)
* #670 - improve the decision about the project location
* #671 - when the user does not specify a package, a package name is generated either from the passed groupId or using the default value
* #672 - use the Prompter to get user values, this is disabled in batch mode
* #673 - if the user modifies an existing project, the user is not allowed to pass GAV. Now this case it detected and the build is failed
* #675 - if the user modifies an existing project the GAV are retrieved from the existing project.
When no classname is passed, it indicates that the resource class and the associated test must not be created.
Now, not passing className disable the resource generation
* interactive mode
* made groupId optional (and changed the default)
With the log location change, most of the test fails because the project is not created in the current directory but in a directory named $artifactId.
…m:cescoffier/protean-shamrock into features/fix-maven-generation-regressions
@cescoffier cescoffier merged commit 96c7966 into quarkusio:master Feb 2, 2019
@cescoffier
Copy link
Member Author

Rebased and merged.

@cescoffier cescoffier deleted the features/fix-maven-generation-regressions branch March 1, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet