Skip to content

Commit

Permalink
Revert "Feature/other branch reversioning extension"
Browse files Browse the repository at this point in the history
  • Loading branch information
bvarner committed Jan 14, 2021
1 parent d37a62a commit fa1cccb
Show file tree
Hide file tree
Showing 25 changed files with 205 additions and 800 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -403,16 +403,16 @@ the artifacts built by the first job into a jboss application server.

## To Debug the plugin (replicating a test-case but without being run from jUnit)
You can 'bootstrap' the plugin into your local repository and get the test project stubbed by running:
`mvn -Dmaven.test.skip=true install`

Then, change directories:
`cd target/test-classes/project-stub`

From there, you'll need to supply the required environment variables or commandline arguments to `mvnDebug`:
```
mvn process-test-classes
mvn -Dmaven.test.skip=true install
cd target/test-classes/project-stub`
export GIT_BRANCH=origin/feature/mybranch-foo-bar
mvnDebug -Dstub.project.version=5.0.0-SNAPSHOT -DallowGitflowPluginSnapshot=true deploy
mvnDebug -Dstub.project.version=5.0.0-SNAPSHOT -DotherBranchDeploy=semver -DallowGitflowPluginSnapshot=true deploy
```
This will get the test classes into the target directory and install the plugin into your local repository.
Then you move to the proper stub directory, supply the environment variables and arguments to `mvnDebug`.

You can then connect a remote debugger and step through the plugin code.

## Building with IntelliJ IDEA notes
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -8,7 +8,7 @@

<groupId>com.e-gineering</groupId>
<artifactId>gitflow-helper-maven-plugin</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>3.0.0</version>

<packaging>maven-plugin</packaging>

Expand Down

This file was deleted.

Expand Up @@ -2,13 +2,17 @@

import org.apache.maven.RepositoryUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.InvalidRepositoryException;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.bridge.MavenRepositorySystem;
import org.apache.maven.model.DeploymentRepository;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProjectHelper;
import org.apache.maven.shared.utils.StringUtils;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.util.FileUtils;
import org.eclipse.aether.DefaultRepositorySystemSession;
import org.eclipse.aether.RepositorySystem;
Expand All @@ -34,6 +38,7 @@
import java.io.PrintWriter;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
Expand Down Expand Up @@ -70,7 +75,7 @@ private static PrintWriter newPrintWriter(File catalog) throws FileNotFoundExcep
RepositorySystemSession repositorySystemSession;

@Parameter(defaultValue = "${project.build.directory}", required = true)
File buildDirectory;
private File buildDirectory;

@Component
private RepositorySystem repositorySystem;
Expand Down
@@ -1,5 +1,7 @@
package com.e_gineering.maven.gitflowhelper;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.InvalidRepositoryException;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Execute;
Expand Down

0 comments on commit fa1cccb

Please sign in to comment.