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

write-active-profile-properties configuration param outputFile not allowed #30

Closed
VinShurikk opened this issue May 18, 2016 · 5 comments

Comments

@VinShurikk
Copy link

VinShurikk commented May 18, 2016

maven throws error while processing

<execution>
  <id>write-properties</id>
  <phase>generate-resources</phase>
  <goals>
    <goal>write-active-profile-properties</goal>
  </goals>
  <configuration>
    <outputFile>
     src/main/resources/maven.properties
    </outputFile>
  </configuration>
</execution>

With error message
Execution write-properties of goal org.codehaus.mojo:properties-maven-plugin:1.0.0:write-active-profile-properties failed. NullPointerException

Intellij IDEA shows that Element "outputFile" is not allowed here.

write-project-properties goal works as expected

mykelalvis added a commit to cotiviti/properties-maven-plugin that referenced this issue Mar 2, 2017
mykelalvis added a commit to cotiviti/properties-maven-plugin that referenced this issue Mar 2, 2017
Retrying this fix after borking one last year
@TurekBot
Copy link

TurekBot commented Oct 9, 2017

Is this fix (that @mykelavis added) published on some Maven Repository?

@HackerTheMonkey
Copy link

HackerTheMonkey commented Jan 6, 2020

This does not seem to exist anywhere on maven central. Can anyone help releasing a new version that contains this fix?

@fasseg
Copy link

fasseg commented Oct 26, 2020

We're still having this issue in 2020. It would be nice if this feature could be merged and published. Thank you.

@mykelalvis
Copy link
Contributor

I lost access to the PR's codebase several years ago. I'm reworking the PR.

mykelalvis added a commit to infrastructurebuilder/archived-properties-maven-plugin that referenced this issue Mar 6, 2021
Swapped to @mojo from javadoc processed value
Added integration test
mykelalvis added a commit to infrastructurebuilder/archived-properties-maven-plugin that referenced this issue Sep 19, 2023
Swapped to @mojo from javadoc processed value
Added integration test
@slawekjaranowski
Copy link
Member

parameter outputFile are supported - https://www.mojohaus.org/properties-maven-plugin/write-active-profile-properties-mojo.html

please try with the latest version of plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants