Multi module maven project-which version?

31 views
Skip to first unread message

canerkaplica

unread,
Aug 26, 2009, 4:29:48 AM8/26/09
to architecture-rules-users

Hi,

I want to add architecture rules to a multi-module maven(version
2.0.9) project.I tried some versions from the svn repo,but i coudnt be
succesful.I deployed the versions i tried to my local repository,but i
got an error every time.
Either i get;
The plugin descriptor for the plugin [com.seventytwomiles:architecture-
rules] was not found
or
A required plugin was not found.Try downloading the file from the
project website.
Which version should i use and could you hep with the pom.xml?
Thanks in advance,

my pom.xml:
<profile>
<id>profile1</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>info.manandbytes</groupId>
<artifactId>maven-architecture-rules-plugin</artifactId>
<version>0.0-SNAPSHOT</version>
<configuration />
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>assert</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>info.manandbytes</groupId>
<artifactId>maven-architecture-rules-plugin</artifactId>
<version>0.0-SNAPSHOT</version>
</plugin>
</plugins>

Mykola Nikishov

unread,
Aug 27, 2009, 5:28:21 PM8/27/09
to architecture...@googlegroups.com
Hi,

canerkaplica <canerk...@gmail.com> writes:

Latest version of plugin is available at
http://architecturerules.googlecode.com/svn/maven2/org/architecturerules/maven-architecture-rules-plugin/0.1-SNAPSHOT/maven-architecture-rules-plugin-0.1-20090513.225428-3.pom

in order to use it ap

> Which version should i use and could you hep with the pom.xml?

...


> my pom.xml:
> <profile>
> <id>profile1</id>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>info.manandbytes</groupId>

This should be replaced with <groupId>org.architecturerules</groupId>

> <artifactId>maven-architecture-rules-plugin</artifactId>
> <version>0.0-SNAPSHOT</version>

Replace this with <version>0.1-SNAPSHOT</version>

> <configuration />
> <executions>
> <execution>
> <phase>test</phase>
> <goals>
> <goal>assert</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </pluginManagement>
> <plugins>
> <plugin>
> <groupId>info.manandbytes</groupId>
> <artifactId>maven-architecture-rules-plugin</artifactId>
> <version>0.0-SNAPSHOT</version>

And the same changes here should be made

> </plugin>
> </plugins>

--
MAN-UANIC

canerkaplica

unread,
Aug 28, 2009, 4:22:38 AM8/28/09
to architecture-rules-users
Hi,
Thanks for the reply,
I am now using 0.1-SNAPSHOT version.And i have a new question.
I want to show the cyclic dependencies and other violations in maven
site's report section.
The build should be successful even if there are cyclic dependencies
But till now,i get either a build error(because of cyclic dependency)
or a blank architecture rules report page.
What should be the configuration of the plugin?

mvn command
mvn site -P profile1

pom.xml
<profile1>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.architecturerules</groupId>
<artifactId>maven-architecture-rules-plugin</artifactId>
<version>0.1-SNAPSHOT</version>
<configuration />
<executions>
<execution>
<phase>site</phase>
<goals>
<goal>assert</goal>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.architecturerules</groupId>
<artifactId>maven-architecture-rules-plugin</artifactId>
<version>0.1-SNAPSHOT</version>
</plugin>
</plugins>

<reporting>
<plugins>
<plugin>
<groupId>org.architecturerules</groupId>
<artifactId>maven-architecture-rules-plugin</artifactId>
<version>0.1-SNAPSHOT</version>
</plugin>

Thanks in advance,

Mike Nereson

unread,
Aug 28, 2009, 10:54:26 AM8/28/09
to architecture...@googlegroups.com
We don't have a report yet. Sorry.

We have a road map for a report though.

We just setup support for listeners. Using this listener support we will generate an XML file that will look like this (prototype) http://blog.architecturerules.org/xml-report-prototype/

Then using that XML output we can apply an XSLT or digest it to come up with the HTML for the report. The report has also been prototyped http://tinyurl.com/n5bmew

So what you are looking for does not exist yet, but some of the components are in place to make that happen eventually.
--
~ Mike Nereson

canerkaplica

unread,
Aug 31, 2009, 2:17:13 AM8/31/09
to architecture-rules-users
It generated a blank page.So, i thought it has the ability but i was
doing something wrong.Anyway, report will be very useful.I'll be
waiting for it..


On 28 Ağustos, 17:54, Mike Nereson <mikenere...@gmail.com> wrote:
> We don't have a report yet. Sorry.
>
> We have a road map for a report though.
>
> We just setup support for listeners. Using this listener support we will
> generate an XML file that will look like this (prototype)http://blog.architecturerules.org/xml-report-prototype/
>
> Then using that XML output we can apply an XSLT or digest it to come up with
> the HTML for the report. The report has also been prototypedhttp://tinyurl.com/n5bmew
>
> So what you are looking for does not exist yet, but some of the components
> are in place to make that happen eventually.
>
> ~ Mike Nereson- Alıntıyı gizle -
>
> - Alıntıyı göster -
Reply all
Reply to author
Forward
0 new messages