[
https://issues.jboss.org/browse/SHRINKRES-115?page=com.atlassian.jira.plu...
]
Bernard Labno commented on SHRINKRES-115:
-----------------------------------------
John, I do not understand #1.
Maven is very extensible tool. People use filters, customize plugins, etc. I.e. RichFaces
use maven plugin to pack together and compress all css and js files. So sometimes we
actually need to some maven goals or phases to get artifacts that should be used and
tested.
Here is output of some options of mvn --help.
{code}
usage: mvn [options] [<goal(s)>] [<phase(s)>]
Options:
-am,--also-make If project list is specified, also
build projects required by the
list
-amd,--also-make-dependents If project list is specified, also
build projects that depend on
projects on the list
-B,--batch-mode Run in non-interactive (batch)
mode
-C,--strict-checksums Fail the build if checksums don't
match
-c,--lax-checksums Warn if checksums don't match
-D,--define <arg> Define a system property
-f,--file <arg> Force the use of an alternate POM
file.
-gs,--global-settings <arg> Alternate path for the global
settings file
-N,--non-recursive Do not recurse into sub-projects
-npu,--no-plugin-updates Ineffective, only kept for
backward compatibility
-nsu,--no-snapshot-updates Suppress SNAPSHOT updates
-o,--offline Work offline
-P,--activate-profiles <arg> Comma-delimited list of profiles
to activate
-pl,--projects <arg> Comma-delimited list of specified
reactor projects to build instead
of all projects. A project can be
specified by [groupId]:artifactId
or by its relative path.
-s,--settings <arg> Alternate path for the user
settings file
{code}
I think that the API should allow:
1) setting profiles and properties ("like mvn -DskipTests=true ...").
2) toggle online/offline
3) invoke phase or goalsetting phase
4) select pom file
Optional stuff I'm not sure of is:
5) select settings file
6) select global settings file
7) strict/lax checksums
8) am/amd
9) non-recursive
10) global-settings file
11) settings file
12) npu/nsu
13) --projects
Create Importer API bridge to SW
--------------------------------
Key: SHRINKRES-115
URL:
https://issues.jboss.org/browse/SHRINKRES-115
Project: ShrinkWrap Resolvers
Issue Type: Feature Request
Reporter: Andrew Rubinger
Assignee: Bernard Labno
Use case as prototyped by [~blabno]:
{code}
final JavaArchive archive = ShrinkWrap.create(EmbeddedMavenImporter.class,
"jar-with-excludes.jar").loadPomFromFile(
"src/it/jar-sample/pom.xml").importBuildOutput().as(JavaArchive.class);
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira