Giter Site home page Giter Site logo

Comments (16)

oscarlvp avatar oscarlvp commented on June 10, 2024

I'm working on a new release targeting PIT 1.3.0 but at the moment it is on hold.
Putting it in the maven repo would be great but I've never been able to make it work on my side from the pom.xml Is it possible to upload the artifacts directly?

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

Hi @oscarlvp

You should be able to deploy it using mvn deploy. But before that, you must add to your settings your credentials:

<settings>xml
  <servers>
	  <server>
	    <id>github</id>
	    <username>githubUserName</username>
	    <password>githubPassWord</password>
	  </server>
  </servers>
</settings>

On Linux, this file is in ${HOME}/.m2/settings.xml.

Ensure the access of this file is constraint, only should have the access, or remove your sensitive information after the deployment.

from pitest-descartes.

vmassol avatar vmassol commented on June 10, 2024

This issue is really important for us (XWiki) since we cannot use Descartes for real because of this (we need a deployed version in a maven repository). Thanks!

from pitest-descartes.

vmassol avatar vmassol commented on June 10, 2024

Having it work on the latest pitest (1.3.2 as of now) would be great too :)

from pitest-descartes.

Cael35 avatar Cael35 commented on June 10, 2024

Hi @danglotb,

I set my settings.xml file and tried "mvn deploy" (on the Descartes master) but the site goal failed.

It seems I'm facing this issue: github/maven-plugins#85
I tried the work around, but it doesn't work neither.

I compared Descartes pom.xml with DSpot one, and I cannot see the difference (except local directory name to upload in the maven repository)
How did you manage to make it work ? :-)

I attached Descartes pom.xml and traces file.
mvn_deploy.traces.txt
pom.xml.txt

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

Hi @CaelInria

I don't know the problem.

Do you want I try to deploy pitest-descartes?

from pitest-descartes.

Cael35 avatar Cael35 commented on June 10, 2024

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

I discussed with @oscarlvp and he pointed me the fact that I use mvn deploy instead of the combo: mvn release:prepare and mvn release:perform which is a bad practice.

For now, I'm gonna try to mvn deploy and see what happens. The, for further deployment and especially for deployment on maven central we must use mvn release right?

from pitest-descartes.

vmassol avatar vmassol commented on June 10, 2024

Deploy is not a release. It just deploys the snapshot which is not what is needed! :)

See the list of steps done by release:prepare and release:perform here (you'll find it has tens of steps and deploy is just one):

You should really use the release plugin (and it's not hard to use) :)

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

Hi, I just released the test-runner artifact under the groupID eu.stamp-project see this

I suggest you the following actions in order to deploy others artifacts:

  • Configure your pom.xml following this and using the pom.xml of test-runner artifact.
  • Change your groupID to eu.stamp-project
  • Create an account on sonatype/Nexus Repository and ping me to be added to the groupID
  • perform the release with: mvn release:clean release:prepare release:perform

from pitest-descartes.

Cael35 avatar Cael35 commented on June 10, 2024

@danglotb : I created an account (Cael) on https://issues.sonatype.org/
I assume I have to update my settings.xml ? ;-)

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

Hi @CaelInria

I just added you to deploy artifacts to this groupId (c.f. this thread)

You will have to generate user token in oss.sonatype.org (use the same credentials than on issues.sonatype.org).

You should have access to user token in your profile.

then in your setting.xml you add:

 <servers>
   <server>
      <id>ossrh</id>
      <username>user-token</username>
      <password>user-passwd</password>
    </server>
   <server>
      <id>ossrh-snapshots</id>
        <username>user-token</username>
      <password>user-passwd</password>
    </server>
  </servers>

You can have look to this and to the pom.xml of test-runner artifact to set up your own pom.xml.

Finally, perform the release with mvn release:clean release:prepare release:perform.

The prompt will ask you the current release version and the next one.

Also, you will have to sign artifacts, by setting up a pgp key, see this.

Cheers,

from pitest-descartes.

oscarlvp avatar oscarlvp commented on June 10, 2024

@danglotb : Please add oscarlvp to the sonatype group.

from pitest-descartes.

Cael35 avatar Cael35 commented on June 10, 2024

Hi @danglotb and @vmassol,

I deployed pitmp-maven-plugin. :)

@danglotb : Actually I used maven-gpg-plugin for GPG key.
You can update your settings.xml with:

    <server>
      <id>gpg.passphrase</id>
      <passphrase>your gpg passphrase</passphrase>
    </server>

And have a look on pitmp-maven-plugin pom.xml.

@vmassol : Descartes is cooming.. :)

from pitest-descartes.

danglotb avatar danglotb commented on June 10, 2024

Hi @oscarlvp

You have been added to the groupID on sonatype

from pitest-descartes.

Cael35 avatar Cael35 commented on June 10, 2024

Descartes 1.0 is available. :-)

from pitest-descartes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.